Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Color | |
| pack-priv int | focusIndex
Index of the currently focused link in the text. |
| pack-priv String[] | |
| pack-priv TextLayout | |
| pack-priv static final RGB | |
| pack-priv Color | |
| pack-priv int[] | |
| pack-priv Point[] | |
| pack-priv Point | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSelectionListener(SelectionListener
the listener which should be notified 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 Point | computeSizeInPixels(int wHint, int hHint, boolean changed)
Overrides org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public Color | |
| pack-priv String | |
| pack-priv Rectangle[] | |
| 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 boolean | gtk4_key_press_event(long
the corresponding controller responsible for capturing the event controller, int the pressed key keyval, int raw code of the pressed key keycode, int the bitmask, representing the state of the modifier keys and pointer buttons state, long the GdkEvent captured event)Overrides org. |
| pack-priv long | gtk_button_press_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_button_release_event(long widget, long event)
Overrides org. |
| pack-priv long | |
| pack-priv long | gtk_event_after(long widget, long gdkEvent)
|
| pack-priv long | gtk_key_press_event(long widget, long eventPtr)
Overrides org. |
| pack-priv long | gtk_motion_notify_event(long widget, long event)
Overrides org. |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv String | |
| pack-priv int | |
| pack-priv void | |
| 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. |
| pack-priv int | setBounds(int x, int y, int width, int height, boolean move, boolean resize)
Overrides org. |
| pack-priv void | |
| public void | setLinkForeground(Color
the new color (or null) color)Sets the link foreground color to the color specified by the argument, or to the default system color for the link if the argument is null. |
| pack-priv void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv int |
| disabledColor | back to summary |
|---|---|
| pack-priv Color disabledColor | |
| focusIndex | back to summary |
|---|---|
| pack-priv int focusIndex Index of the currently focused link in the text. Equals -1, if the text has not been set through setText | |
| ids | back to summary |
|---|---|
| pack-priv String[] ids | |
| layout | back to summary |
|---|---|
| pack-priv TextLayout layout | |
| LINK_DISABLED_FOREGROUND | back to summary |
|---|---|
| pack-priv static final RGB LINK_DISABLED_FOREGROUND | |
| linkColor | back to summary |
|---|---|
| pack-priv Color linkColor | |
| mnemonics | back to summary |
|---|---|
| pack-priv int[] mnemonics | |
| offsets | back to summary |
|---|---|
| pack-priv Point[] offsets | |
| selection | back to summary |
|---|---|
| pack-priv Point selection | |
| text | back to summary |
|---|---|
| pack-priv String text | |
| Link | back to summary |
|---|---|
| public Link(Composite parent, int style) Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class
| |
| 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
| |
| computeSizeInPixels | back to summary |
|---|---|
| pack-priv Point computeSizeInPixels(int wHint, int hHint, boolean changed) Overrides org.
| |
| createHandle | back to summary |
|---|---|
| pack-priv void createHandle(int index) Overrides org.
| |
| createWidget | back to summary |
|---|---|
| pack-priv void createWidget(int index) Overrides org.
| |
| drawWidget | back to summary |
|---|---|
| pack-priv void drawWidget(GC gc) Overrides org.
| |
| enableWidget | back to summary |
|---|---|
| pack-priv void enableWidget(boolean enabled) Overrides org.
| |
| fixStyle | back to summary |
|---|---|
| pack-priv void fixStyle() Overrides org.
| |
| getLinkForeground | back to summary |
|---|---|
| public Color getLinkForeground() Returns the link foreground color.
| |
| getNameText | back to summary |
|---|---|
| pack-priv String getNameText() Overrides org.
| |
| getRectanglesInPixels | back to summary |
|---|---|
| pack-priv Rectangle[] getRectanglesInPixels(int linkIndex) | |
| getText | back to summary |
|---|---|
| public String getText() Returns the receiver's text, which will be an empty string if it has never been set.
| |
| gtk4_key_press_event | back to summary |
|---|---|
| pack-priv boolean gtk4_key_press_event(long controller, int keyval, int keycode, int state, long event) Overrides org.
| |
| gtk_button_press_event | back to summary |
|---|---|
| pack-priv long gtk_button_press_event(long widget, long event) Overrides org.
| |
| gtk_button_release_event | back to summary |
|---|---|
| pack-priv long gtk_button_release_event(long widget, long event) Overrides org.
| |
| gtk_draw | back to summary |
|---|---|
| pack-priv long gtk_draw(long widget, long cairo) Overrides org.
| |
| gtk_event_after | back to summary |
|---|---|
| pack-priv long gtk_event_after(long widget, long gdkEvent) Overrides org.
| |
| gtk_key_press_event | back to summary |
|---|---|
| pack-priv long gtk_key_press_event(long widget, long eventPtr) Overrides org.
| |
| gtk_motion_notify_event | back to summary |
|---|---|
| pack-priv long gtk_motion_notify_event(long widget, long event) Overrides org.
| |
| hooksPaint | back to summary |
|---|---|
| pack-priv boolean hooksPaint() Overrides org.
| |
| initAccessible | back to summary |
|---|---|
| pack-priv void initAccessible() | |
| mnemonicHit | back to summary |
|---|---|
| pack-priv boolean mnemonicHit(char key) Overrides org.
| |
| mnemonicMatch | back to summary |
|---|---|
| pack-priv boolean mnemonicMatch(char key) Overrides org.
| |
| parse | back to summary |
|---|---|
| pack-priv String parse(String string) | |
| parseMnemonics | back to summary |
|---|---|
| pack-priv int parseMnemonics(char[] buffer, int start, int end, StringBuilder result) | |
| releaseWidget | back to summary |
|---|---|
| pack-priv void releaseWidget() Overrides org.
| |
| 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.
| |
| setBounds | back to summary |
|---|---|
| pack-priv int setBounds(int x, int y, int width, int height, boolean move, boolean resize) Overrides org.
| |
| setFontDescription | back to summary |
|---|---|
| pack-priv void setFontDescription(long font) Overrides org.
| |
| setLinkForeground | back to summary |
|---|---|
| public void setLinkForeground(Color color) Sets the link foreground color to the color specified by the argument, or to the default system color for the link if the argument is null. Note This operation is a hint and may be overridden by the platform.
| |
| setOrientation | back to summary |
|---|---|
| pack-priv void setOrientation(boolean create) Overrides org.
| |
| setText | back to summary |
|---|---|
| public void setText(String string) Sets the receiver's text. The string can contain both regular text and hyperlinks. A hyperlink is delimited by an anchor tag, <a> and </a>. Within an anchor, a single HREF attribute is supported. When a hyperlink is selected, the text field of the selection event contains either the text of the hyperlink or the value of its HREF, if one was specified. In the rare case of identical hyperlinks within the same string, the HREF attribute can be used to distinguish between them. The string may include the mnemonic character and line delimiters. The only delimiter the HREF attribute supports is the quotation mark ("). Text containing angle-bracket characters < or > may be escaped using \\, however this operation is a hint and varies from platform to platform. Mnemonics are indicated by an '&' that causes the next character to be the mnemonic. The receiver can have a mnemonic in the text preceding each link. When the user presses a key sequence that matches the mnemonic, focus is assigned to the link that follows the text. Mnemonics in links and in the trailing text are ignored. On most platforms, the mnemonic appears underlined but may be emphasised in a platform specific manner. The mnemonic indicator character '&' can be escaped by doubling it in the string, causing a single '&' to be displayed.
| |
| showWidget | back to summary |
|---|---|
| pack-priv void showWidget() Overrides org.
| |
| styleLinkParts | back to summary |
|---|---|
| pack-priv void styleLinkParts() | |
| traversalCode | back to summary |
|---|---|
| pack-priv int traversalCode(int key, long event) Overrides org.
| |