public interface SWTToolkitComponent extends ToolkitComponent
ToolkitComponent that implements a set of default methods. SWT toolkit components
should make use of these implementations.| Modifier and Type | Method and Description |
|---|---|
default void |
assignSize()
Adopts the current size provided by the parent TIC component to this GUI toolkit component.
|
default java.awt.Point |
getLocationInParent()
Returns the coordinates of this component relative to its parent component.
|
org.eclipse.swt.widgets.Control |
getSWTComponent() |
default TargetToolkit |
getTargetToolkit()
Returns the toolkit type this instance can be used with.
|
default java.awt.Dimension |
getToolkitSize()
Returns the current size of this component.
|
default boolean |
isFocusOwner()
Determines whether this component currently has the user-interface focus.
|
default void |
repaint()
Repaints the contents of this instance.
|
default void |
requestFocus()
Requests the focus for the toolkit component to receive keyboard events.
|
getIndependentComponentorg.eclipse.swt.widgets.Control getSWTComponent()
default TargetToolkit getTargetToolkit()
ToolkitComponentgetTargetToolkit in interface ToolkitComponentdefault void repaint()
ToolkitComponentrepaint in interface ToolkitComponentdefault java.awt.Dimension getToolkitSize()
ToolkitComponentgetToolkitSize in interface ToolkitComponentdefault void assignSize()
ToolkitComponentassignSize in interface ToolkitComponentdefault java.awt.Point getLocationInParent()
ToolkitComponentgetLocationInParent in interface ToolkitComponentdefault boolean isFocusOwner()
ToolkitComponentisFocusOwner in interface ToolkitComponenttrue if this component currently has the user-interface focus, false otherwisedefault void requestFocus()
ToolkitComponentrequestFocus in interface ToolkitComponent