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.
|
getIndependentComponent
org.eclipse.swt.widgets.Control getSWTComponent()
default TargetToolkit getTargetToolkit()
ToolkitComponent
getTargetToolkit
in interface ToolkitComponent
default void repaint()
ToolkitComponent
repaint
in interface ToolkitComponent
default java.awt.Dimension getToolkitSize()
ToolkitComponent
getToolkitSize
in interface ToolkitComponent
default void assignSize()
ToolkitComponent
assignSize
in interface ToolkitComponent
default java.awt.Point getLocationInParent()
ToolkitComponent
getLocationInParent
in interface ToolkitComponent
default boolean isFocusOwner()
ToolkitComponent
isFocusOwner
in interface ToolkitComponent
true
if this component currently has the user-interface focus, false
otherwisedefault void requestFocus()
ToolkitComponent
requestFocus
in interface ToolkitComponent