|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--simkin.ExecutableRoot | +--simkin.XMLElementObject | +--simkin.XMLExecutable | +--simkin.examples.applet.ScriptedDialog
This class shows how you can use Simkin to show dialogs described in an XML script
Constructor Summary | |
ScriptedDialog(java.io.InputStream in,
Interpreter interp)
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
this method catches button clicks and calls methods |
void |
close()
This method closes the dialog - because it is public it can be called from Simkin scripts |
java.lang.String |
getText(java.lang.String name)
This method returns the text in a text control - because it is public it can be called from Simkin scripts |
void |
msgBox(java.lang.String str)
This method shows a message box - because it is public it can be called from Simkin scripts |
void |
reload(java.io.InputStream in)
this method makes the dialog reload itself from the XML stream |
void |
setFocus(java.lang.String name)
This method sets the focus to a particular control - because it is public it can be called from Simkin scripts |
Methods inherited from class simkin.XMLExecutable |
load, load, save, save |
Methods inherited from class simkin.XMLElementObject |
addElement, containsElement, copyAttributesInto, copyItemsInto, createIterator, createIterator, createXMLElementObject, dump, enumerate, enumerate, equals, findChild, findChild, findChild, getAddIfNotPresent, getAttribute, getAttributes, getData, getElement, getInstanceVariables, getLocation, getSource, getValue, getValueAt, method, setAddIfNotPresent, setAttribute, setData, setElement, setValue, setValueAt, tagName, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ScriptedDialog(java.io.InputStream in, Interpreter interp) throws java.io.FileNotFoundException, org.xml.sax.SAXException, java.io.IOException
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void msgBox(java.lang.String str)
public void reload(java.io.InputStream in)
public void close()
public void setFocus(java.lang.String name)
name
- the control namepublic java.lang.String getText(java.lang.String name)
name
- the control name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |