Class CTreeComboColumn

java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Item
org.eclipse.nebula.widgets.ctreecombo.CTreeComboColumn

public class CTreeComboColumn
extends org.eclipse.swt.widgets.Item
Instances of this class represent a column in a ctreecombo widget.

Styles:
LEFT, RIGHT, CENTER
Events:
Move, Resize, Selection

Note: Only one of the styles LEFT, RIGHT and CENTER may be specified.

IMPORTANT: This class is not intended to be subclassed.

  • Constructor Summary

    Constructors 
    Constructor Description
    CTreeComboColumn​(CTreeCombo parent, int style)
    Constructs a new instance of this class given its parent (which must be a Tree) and a style value describing its behavior and appearance.
    CTreeComboColumn​(CTreeCombo parent, int style, int index)
    Constructs a new instance of this class given its parent (which must be a Tree), a style value describing its behavior and appearance, and the index at which to place it in the items maintained by its parent.
  • Method Summary

    Modifier and Type Method Description
    (package private) org.eclipse.swt.widgets.TreeColumn getRealTreeColumn()  
    int getWidth()
    Gets the width of the receiver.
    (package private) void setRealTreeColumn​(org.eclipse.swt.widgets.TreeColumn realTreeColumn)  
    void setText​(java.lang.String string)
    Sets the receiver's text.
    void setWidth​(int width)
    Sets the width of the receiver.

    Methods inherited from class org.eclipse.swt.widgets.Item

    checkSubclass, getImage, getText, setImage

    Methods inherited from class org.eclipse.swt.widgets.Widget

    addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CTreeComboColumn

      public CTreeComboColumn​(CTreeCombo parent, int style)
      Constructs a new instance of this class given its parent (which must be a Tree) and a style value describing its behavior and appearance. The item is added to the end of the items maintained by its parent.

      The style value is either one of the style constants defined in class SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.

      Parameters:
      parent - a composite control which will be the parent of the new instance (cannot be null)
      style - the style of control to construct
      Throws:
      java.lang.IllegalArgumentException -
      • ERROR_NULL_ARGUMENT - if the parent is null
      org.eclipse.swt.SWTException -
      • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
      • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
      See Also:
      SWT.LEFT, SWT.RIGHT, SWT.CENTER, Widget.checkSubclass(), Widget.getStyle()
    • CTreeComboColumn

      public CTreeComboColumn​(CTreeCombo parent, int style, int index)
      Constructs a new instance of this class given its parent (which must be a Tree), a style value describing its behavior and appearance, and the index at which to place it in the items maintained by its parent.

      The style value is either one of the style constants defined in class SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.

      Note that due to a restriction on some platforms, the first column is always left aligned.

      Parameters:
      parent - a composite control which will be the parent of the new instance (cannot be null)
      style - the style of control to construct
      index - the zero-relative index to store the receiver in its parent
      Throws:
      java.lang.IllegalArgumentException -
      • ERROR_NULL_ARGUMENT - if the parent is null
      • ERROR_INVALID_RANGE - if the index is not between 0 and the number of elements in the parent (inclusive)
      org.eclipse.swt.SWTException -
      • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
      • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
      See Also:
      SWT.LEFT, SWT.RIGHT, SWT.CENTER, Widget.checkSubclass(), Widget.getStyle()
  • Method Details

    • setRealTreeColumn

      void setRealTreeColumn​(org.eclipse.swt.widgets.TreeColumn realTreeColumn)
    • getRealTreeColumn

      org.eclipse.swt.widgets.TreeColumn getRealTreeColumn()
    • getWidth

      public int getWidth()
      Gets the width of the receiver.
      Returns:
      the width
      Throws:
      org.eclipse.swt.SWTException -
      • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
      • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
    • setWidth

      public void setWidth​(int width)
      Sets the width of the receiver.
      Parameters:
      width - the new width
      Throws:
      org.eclipse.swt.SWTException -
      • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
      • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
    • setText

      public void setText​(java.lang.String string)
      Sets the receiver's text.

      Note: If control characters like '\n', '\t' etc. are used in the string, then the behavior is platform dependent.

      Overrides:
      setText in class org.eclipse.swt.widgets.Item
      Parameters:
      string - the new text
      Throws:
      java.lang.IllegalArgumentException -
      • ERROR_NULL_ARGUMENT - if the text is null
      org.eclipse.swt.SWTException -
      • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
      • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver