| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | |
| pack-priv Image | |
| pack-priv String | |
| pack-priv static final int | TEXT_LIMIT
Maximum number of characters Windows can reliably display in one line. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Item(Widget
a widget which will be the parent of the new instance (cannot be null) parent, int the style of item to construct style, int the zero-relative index at which to store the receiver in its parent index)Constructs a new instance of this class given its parent and a style value describing its behavior and appearance, and the index at which to place it in the items maintained by its parent. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | checkSubclass()
Overrides org. |
| public Image | Returns: the receiver's imageReturns the receiver's image if it has one, or null if it does not. |
| pack-priv String | |
| public String | Returns: the receiver's textReturns the receiver's text, which will be an empty string if it has never been set. |
| pack-priv void | |
| public void | |
| public void | |
| pack-priv boolean |
| ELLIPSIS | back to summary |
|---|---|
| pack-priv static final String ELLIPSIS | |
| image | back to summary |
|---|---|
| pack-priv Image image | |
| text | back to summary |
|---|---|
| pack-priv String text | |
| TEXT_LIMIT | back to summary |
|---|---|
| pack-priv static final int TEXT_LIMIT Maximum number of characters Windows can reliably display in one line. Mac and Linux can display more but we are limited by windows here. | |
| Item | back to summary |
|---|---|
| public Item(Widget parent, int style) Constructs a new instance of this class given its parent 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
| |
| Item | back to summary |
|---|---|
| public Item(Widget parent, int style, int index) Constructs a new instance of this class given its parent and 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
| |
| 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.
| |
| getImage | back to summary |
|---|---|
| public Image getImage() Returns the receiver's image if it has one, or null if it does not.
| |
| getNameText | back to summary |
|---|---|
| pack-priv String getNameText() Overrides org.
| |
| getText | back to summary |
|---|---|
| public String getText() Returns the receiver's text, which will be an empty string if it has never been set.
| |
| releaseWidget | back to summary |
|---|---|
| pack-priv void releaseWidget() Overrides org.
| |
| setImage | back to summary |
|---|---|
| public void setImage(Image image) Sets the receiver's image to the argument, which may be null indicating that no image should be displayed.
| |
| setText | back to summary |
|---|---|
| public void setText(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.
| |
| updateTextDirection | back to summary |
|---|---|
| pack-priv boolean updateTextDirection(int textDirection) | |