Note
Only one of the styles LEFT, RIGHT and CENTER may be specified.
Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv long | |
| pack-priv boolean | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv Tree | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| public | TreeColumn(Tree
a composite control which will be the parent of the new instance (cannot be null) parent, int the style of control to construct style)Constructs a new instance of this class given its parent
(which must be a |
| public | TreeColumn(Tree
a composite control which will be the parent of the new instance (cannot be null) parent, int the style of control to construct style, int the zero-relative index to store the receiver in its parent index)Constructs a new instance of this class given its parent
(which must be a |
| Modifier and Type | Method and Description |
|---|---|
| public void | addControlListener(ControlListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the control is moved or resized, by sending
it one of the messages defined in the |
| public void | addSelectionListener(SelectionListener
the listener which should be notified when the control is selected by the user listener)Adds the listener to the collection of listeners who will
be notified when the control is selected by the user, by sending
it one of the messages defined in the |
| pack-priv static int | |
| protected void | checkSubclass()
Overrides org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | dispose()
Overrides org. |
| pack-priv long | |
| public int | Returns: the alignmentReturns a value which describes the position of the text or image in the receiver. |
| public boolean | |
| public Tree | |
| public boolean | |
| public String | Returns: the receiver's tool tip textReturns the receiver's tool tip text, or null if it has not been set. |
| public int | |
| pack-priv int | |
| pack-priv long | |
| pack-priv long | gtk_event_after(long widget, long gdkEvent)
|
| pack-priv void | gtk_gesture_press_event(long
the corresponding controller responsible for capturing the event gesture, int how many touch/button presses happened with this one n_press, double the x coordinate, in widget allocation coordinates x, double the y coordinate, in widget allocation coordinates y, long the GdkEvent captured event)Overrides org. |
| pack-priv long | gtk_mnemonic_activate(long widget, long arg1)
Overrides org. |
| pack-priv long | gtk_size_allocate(long widget, long allocation)
|
| pack-priv void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | removeControlListener(ControlListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the control is moved or resized. |
| public void | removeSelectionListener(SelectionListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the control is selected by the user. |
| public void | setAlignment(int
the new alignment alignment)Controls how text and images will be displayed in the receiver. |
| pack-priv void | |
| pack-priv void | |
| public void | setImage(Image
the image to display on the receiver (may be null) image)Overrides org. |
| public void | |
| pack-priv void | |
| public void | |
| public void | setText(String
the new text string)Overrides org. |
| public void | setToolTipText(String
the new tool tip text (or null) string)Sets the receiver's tool tip text to the argument, which may be null indicating that the default tool tip for the control will be shown. |
| public void | |
| pack-priv void |
| buttonHandle | back to summary |
|---|---|
| pack-priv long buttonHandle | |
| customDraw | back to summary |
|---|---|
| pack-priv boolean customDraw | |
| headerButtonCSSProvider | back to summary |
|---|---|
| pack-priv long headerButtonCSSProvider | |
| imageHandle | back to summary |
|---|---|
| pack-priv long imageHandle | |
| labelHandle | back to summary |
|---|---|
| pack-priv long labelHandle | |
| lastTime | back to summary |
|---|---|
| pack-priv int lastTime | |
| lastWidth | back to summary |
|---|---|
| pack-priv int lastWidth | |
| lastX | back to summary |
|---|---|
| pack-priv int lastX | |
| modelIndex | back to summary |
|---|---|
| pack-priv int modelIndex | |
| parent | back to summary |
|---|---|
| pack-priv Tree parent | |
| toolTipText | back to summary |
|---|---|
| pack-priv String toolTipText | |
| TreeColumn | back to summary |
|---|---|
| public TreeColumn(Tree parent, int style) Constructs a new instance of this class given its parent
(which must be a
The style value is either one of the style constants defined in
class
| |
| TreeColumn | back to summary |
|---|---|
| public TreeColumn(Tree parent, int style, int index) Constructs a new instance of this class given its parent
(which must be a
The style value is either one of the style constants defined in
class Note that due to a restriction on some platforms, the first column is always left aligned.
| |
| addControlListener | back to summary |
|---|---|
| public void addControlListener(ControlListener listener) Adds the listener to the collection of listeners who will
be notified when the control is moved or resized, by sending
it one of the messages defined in the
| |
| addSelectionListener | back to summary |
|---|---|
| public void addSelectionListener(SelectionListener listener) Adds the listener to the collection of listeners who will
be notified when the control is selected by the user, by sending
it one of the messages defined in the
| |
| checkStyle | back to summary |
|---|---|
| pack-priv static int checkStyle(int style) | |
| checkSubclass | back to summary |
|---|---|
| protected void checkSubclass() Overrides org. Doc from org. Checks that this class can be subclassed.
The SWT class library is intended to be subclassed
only at specific, controlled points (most notably,
Important Note By providing an implementation of this method that allows a subclass of a class which does not normally allow subclassing to be created, the implementer agrees to be fully responsible for the fact that any such subclass will likely fail between SWT releases and will be strongly platform specific. No support is provided for user-written classes which are implemented in this fashion. The ability to subclass outside of the allowed SWT classes is intended purely to enable those not on the SWT development team to implement patches in order to get around specific limitations in advance of when those limitations can be addressed by the team. Subclassing should not be attempted without an intimate and detailed understanding of the hierarchy.
| |
| createWidget | back to summary |
|---|---|
| pack-priv void createWidget(int index) Overrides org.
| |
| deregister | back to summary |
|---|---|
| pack-priv void deregister() Overrides org.
| |
| destroyWidget | back to summary |
|---|---|
| pack-priv void destroyWidget() Overrides org.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides org. Doc from org. Disposes of the operating system resources associated with
the receiver and all its descendants. After this method has
been invoked, the receiver and all descendants will answer
Note This method is not called recursively on the descendants
of the receiver. This means that, widget implementers can not
detect when a widget is being disposed of by re-implementing
this method, but should instead listen for the
| |
| dpiChanged | back to summary |
|---|---|
| pack-priv long dpiChanged(long object, long arg0) Overrides org.
| |
| getAlignment | back to summary |
|---|---|
| public int getAlignment() Returns a value which describes the position of the
text or image in the receiver. The value will be one of
| |
| getMoveable | back to summary |
|---|---|
| public boolean getMoveable() Gets the moveable attribute. A column that is not moveable cannot be reordered by the user by dragging the header but may be reordered by the programmer.
| |
| getParent | back to summary |
|---|---|
| public Tree getParent() Returns the receiver's parent, which must be a
| |
| getResizable | back to summary |
|---|---|
| public boolean getResizable() Gets the resizable attribute. A column that is not resizable cannot be dragged by the user but may be resized by the programmer.
| |
| getToolTipText | back to summary |
|---|---|
| public String getToolTipText() Returns the receiver's tool tip text, or null if it has not been set.
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Gets the width of the receiver.
| |
| getWidthInPixels | back to summary |
|---|---|
| pack-priv int getWidthInPixels() | |
| gtk_clicked | back to summary |
|---|---|
| pack-priv long gtk_clicked(long widget) Overrides org.
| |
| gtk_event_after | back to summary |
|---|---|
| pack-priv long gtk_event_after(long widget, long gdkEvent) Overrides org.
| |
| gtk_gesture_press_event | back to summary |
|---|---|
| pack-priv void gtk_gesture_press_event(long gesture, int n_press, double x, double y, long event) Overrides org.
| |
| gtk_mnemonic_activate | back to summary |
|---|---|
| pack-priv long gtk_mnemonic_activate(long widget, long arg1) Overrides org.
| |
| gtk_size_allocate | back to summary |
|---|---|
| pack-priv long gtk_size_allocate(long widget, long allocation) Overrides org.
| |
| hookEvents | back to summary |
|---|---|
| pack-priv void hookEvents() Overrides org.
| |
| pack | back to summary |
|---|---|
| public void pack() Causes the receiver to be resized to its preferred size. For a composite, this involves computing the preferred size from its layout, if there is one.
| |
| register | back to summary |
|---|---|
| pack-priv void register() Overrides org.
| |
| releaseHandle | back to summary |
|---|---|
| pack-priv void releaseHandle() Overrides org.
| |
| releaseParent | back to summary |
|---|---|
| pack-priv void releaseParent() Overrides org.
| |
| removeControlListener | back to summary |
|---|---|
| public void removeControlListener(ControlListener listener) Removes the listener from the collection of listeners who will be notified when the control is moved or resized.
| |
| removeSelectionListener | back to summary |
|---|---|
| public void removeSelectionListener(SelectionListener listener) Removes the listener from the collection of listeners who will be notified when the control is selected by the user.
| |
| setAlignment | back to summary |
|---|---|
| public void setAlignment(int alignment) Controls how text and images will be displayed in the receiver.
The argument should be one of Note that due to a restriction on some platforms, the first column is always left aligned.
| |
| setFontDescription | back to summary |
|---|---|
| pack-priv void setFontDescription(long font) | |
| setHeaderCSS | back to summary |
|---|---|
| pack-priv void setHeaderCSS(String css) | |
| setImage | back to summary |
|---|---|
| public void setImage(Image image) Overrides org. Doc from org. Sets the receiver's image to the argument, which may be null indicating that no image should be displayed. | |
| setMoveable | back to summary |
|---|---|
| public void setMoveable(boolean moveable) Sets the moveable attribute. A column that is moveable can be reordered by the user by dragging the header. A column that is not moveable cannot be dragged by the user but may be reordered by the programmer.
| |
| setOrientation | back to summary |
|---|---|
| pack-priv void setOrientation(boolean create) Overrides org.
| |
| setResizable | back to summary |
|---|---|
| public void setResizable(boolean resizable) Sets the resizable attribute. A column that is not resizable cannot be dragged by the user but may be resized by the programmer.
| |
| setText | back to summary |
|---|---|
| public void setText(String string) Overrides org. Doc from org. Sets the receiver's text. Note If control characters like '\n', '\t' etc. are used in the string, then the behavior is platform dependent. | |
| setToolTipText | back to summary |
|---|---|
| public void setToolTipText(String string) Sets the receiver's tool tip text to the argument, which may be null indicating that the default tool tip for the control will be shown. For a control that has a default tool tip, such as the Tree control on Windows, setting the tool tip text to an empty string replaces the default, causing no tool tip text to be shown. The mnemonic indicator (character '&') is not displayed in a tool tip. To display a single '&' in the tool tip, the character '&' can be escaped by doubling it in the string. Note This operation is a hint and behavior is platform specific, on Windows for CJK-style mnemonics of the form " (&C)" at the end of the tooltip text are not shown in tooltip.
| |
| setWidth | back to summary |
|---|---|
| public void setWidth(int width) Sets the width of the receiver.
| |
| setWidthInPixels | back to summary |
|---|---|
| pack-priv void setWidthInPixels(int width) | |