public interface SwingController
Modifier and Type | Method and Description |
---|---|
void |
click(HTMLElement element,
HTMLWindowEvent event)
Fired from clicking an element such as a button or
check box or table entry, or from entering text in a text box.
|
void |
dispose(Component dialog)
Remove this component's HTML5 equivalent and clear references to it.
|
void |
getScreenDimensions(Dimension d)
Return the width and height of the window in d.
|
void |
register(Component c,
java.lang.String type)
Set c's id to a unique identifier
and add it to an associative array that will
associate that id with c.
|
void |
setDialog(Component dialog)
The HTML for this dialog has been generated.
|
void |
setSelected(Component chk)
Convey to the HTML object that this check box's selection
has been changed.
|
void |
setSelectedIndex(Component cmb)
Convey to the HTML object that this combo box's selected item
has been changed.
|
void |
setText(java.lang.String text)
Convey to the HTML object that this component's text
has been changed.
|
void |
setVisible(Component c)
Convey to the HTML object that this component's text
has been changed.
|
void |
windowClosing(HTMLElement element)
Called by clicking the [x] in the corner of the dialog;
send a notification back to the manager via processWindowClosing(key)
var id = $("div.JDialog:has(#" + element.id + ")")[0].id
var dialog = Jmol.Swing.htDialogs[id];
dialog.manager.processWindowClosing(dialog.registryKey);
|
void click(HTMLElement element, HTMLWindowEvent event)
element
- event
- void dispose(Component dialog)
dialog
- void getScreenDimensions(Dimension d)
d
- void register(Component c, java.lang.String type)
c
- type
- void setDialog(Component dialog)
dialog
- void setSelected(Component chk)
chk
- void setSelectedIndex(Component cmb)
cmb
- void setText(java.lang.String text)
text
- void setVisible(Component c)
c
- void windowClosing(HTMLElement element)
element
-