class SignatureDriverWidget extends WebDriverWidget<SignatureConfig,SignatureWidgetCommands>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SignatureDriverWidget.ImageFileFormat
The image file format for image files.
|
Modifier and Type | Field and Description |
---|---|
private org.eclipse.jetty.server.handler.ContextHandler |
handler
The custom handler for hooking up navigation events
|
private SignatureDriverWidget.ImageFileFormat |
imageFileFormat
The image file format.
|
private boolean |
loaded
The flag indicating that the js signature web driver has been loaded successfully meaning
also that the Topaz SigPlus and SigWeb drivers are installed properly on the client.
|
websock, widgetId, window
Constructor and Description |
---|
SignatureDriverWidget(int widgetId,
GuiWebSocket websock)
Initialize the web component.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the driver-specific widget.
|
java.lang.Object |
invokeWidgetCommand(SignatureWidgetCommands 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 |
processSetImageFileFormat(java.lang.Object[] args)
Process NET API call to SetImageFileFomat.
|
boolean |
setWidgetAttribute(java.lang.String attr,
java.lang.String val)
Set an attribute for a widget implemented at the driver level.
|
config, getWindow, setEnabled, setVisible, setWindow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invokeWidgetCommand
private org.eclipse.jetty.server.handler.ContextHandler handler
private boolean loaded
private SignatureDriverWidget.ImageFileFormat imageFileFormat
public SignatureDriverWidget(int widgetId, GuiWebSocket websock)
widgetId
- The widget's ID.websock
- The web socket.public 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.public java.lang.Object invokeWidgetCommand(SignatureWidgetCommands command, java.lang.Object[] args)
command
- The command to invoke.args
- The command arguments.public void processSetImageFileFormat(java.lang.Object[] args)
args
- The command arguments array.public void placeWidget(NativeRectangle bounds)
placeWidget
in interface DriverWidget<SignatureWidgetCommands>
placeWidget
in class WebDriverWidget<SignatureConfig,SignatureWidgetCommands>
bounds
- The widget boundspublic void destroy()
destroy
in interface DriverWidget<SignatureWidgetCommands>
destroy
in class WebDriverWidget<SignatureConfig,SignatureWidgetCommands>