public interface DriverWidget<C extends java.lang.Enum>
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the driver-specific widget.
|
EmulatedWindowState |
getWindow()
Get the widget's window.
|
default java.lang.Object |
invokeWidgetCommand(C command,
java.lang.Object[] args)
Invokes a command on this widget.
|
default java.lang.Object |
invokeWidgetCommand(java.lang.String command,
java.lang.Object[] args)
Invokes a command on this widget.
|
void |
placeWidget(NativeRectangle bounds)
Place the driver-specific widget at the specified bounds, using the currently selected
window.
|
void |
setEnabled(boolean enabled)
Change the sensitivity of a driver-implemented widget.
|
void |
setVisible(boolean visible)
Change the visibility of a driver-implemented widget.
|
default boolean |
setWidgetAttribute(java.lang.String attr,
java.lang.String val)
Set an attribute for a widget implemented at the driver level.
|
void |
setWindow(EmulatedWindowState ews)
Set the widget's window.
|
void destroy()
void setVisible(boolean visible)
visible
- The visibility state.void setEnabled(boolean enabled)
enabled
- The enabled state.default boolean setWidgetAttribute(java.lang.String attr, java.lang.String val)
This works only for GUI drivers.
attr
- The attribute name.val
- The attribute's value.true
if setting this attribute completed.default java.lang.Object invokeWidgetCommand(java.lang.String command, java.lang.Object[] args)
command
- The command to invoke.args
- Optional event arguments.default java.lang.Object invokeWidgetCommand(C command, java.lang.Object[] args)
command
- The command to invoke.args
- void placeWidget(NativeRectangle bounds)
void setWindow(EmulatedWindowState ews)
ews
- The window where to attach. May be null
(it will remain detached).EmulatedWindowState getWindow()