|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--harmonic.mz.data.ModelNode
|
+--harmonic.mz.function.Module
This is the base class for module intializers. Extension modules extend this class to override functions to add the module to the user interface and the database. The extension of this class is started via Class.forName(""), so it needs a public constructor with no arguments.
| Field Summary | |
boolean |
bBigImageBad
|
java.awt.image.BufferedImage |
bigToolbarImage
|
boolean |
bInterfaceSettingsInvalid
|
boolean |
bPythonDone
|
java.lang.String |
className
|
ModelNode |
functionRoot
|
java.util.Hashtable |
functionTable
|
java.lang.String |
initFile
|
HWM_GroupData |
menu
|
ModelNode |
menuRoot
|
java.lang.String |
publicName
|
java.lang.String |
pyRef
|
FileNode |
settings
|
java.lang.String |
startCheck
|
ModelNode |
toolbarRoot
|
ModelNode |
vptoolRoot
|
java.lang.String |
workingDir
|
| Fields inherited from class harmonic.mz.data.ModelNode |
_fileRoot_, _thread_, ATTRIB_CONTROL_WIDGET, ATTRIB_LISTABLE, ATTRIB_PRESENTABLE, ATTRIB_PRIVATE, ATTRIB_REMOVEABLE, ATTRIB_RENAMEABLE, ATTRIB_SHOW_CONTEXT_MENU, ATTRIB_TYPE_FILTER, ATTRIB_USERGROUP, ATTRIB_VALUE_GROUP, ATTRIB_VE_LISTENER, bCustomCS, bDebug, bValid, name |
| Constructor Summary | |
Module()
The base constructor. |
|
| Method Summary | |
FunctionStarter |
addFSFunction(java.lang.String functionName,
ModelNode field,
java.lang.String catagory)
This is a convenience function for addFunction(FunctionStarter) Adds a user function to invoke the setting of a field. |
void |
addFunction(FunctionStarter action,
java.lang.String catagory)
Registers the given user function. |
FunctionStarter |
addFunction(java.lang.Object listener,
java.lang.String callback,
java.lang.String catagory)
This is a convenience function for addFunction(FunctionStarter) |
void |
createStandardLists(FileNode file)
Override to create lists for new model. |
void |
execute()
Run as a macro. |
FunctionStarter |
getFunction(java.lang.String functionName)
Returns the registered function |
java.util.Hashtable |
getFunctionTable()
|
java.lang.String |
getHelpDir()
Override to change the help directoy. |
java.lang.String |
getHelpFile(Documentable helpMe)
Some documentable objects defer this task to the module by default. |
java.lang.String |
getInstallDir()
|
java.lang.String |
getResourceDir()
Override to change the resource directoy. |
java.lang.String |
getWorkingDir()
Override to append on module specific directory, like getInstallDir() + dir Default is getInstallDir(). |
boolean |
hasStandardLists(FileNode file)
Override to to return whether standard lists exsist for a model. |
void |
installInFramework()
Module should override this to install itself in the framework. |
java.awt.Component |
macroGUI()
Return a non null component to produce a gui for the macro. |
void |
modelLoaded(FileNode file)
Called when a model is opened. |
void |
modelUnloaded(FileNode file)
Called when a model is closed. |
void |
readSettings()
Override to read this modules user settings from disk. |
void |
removeGUI()
Override this to remove modules user interface. |
void |
writeSettings()
Override to read this modules user settings to disk. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String className
public java.lang.String pyRef
public java.lang.String publicName
public java.lang.String initFile
public java.lang.String startCheck
public java.lang.String workingDir
public FileNode settings
public ModelNode functionRoot
public ModelNode toolbarRoot
public ModelNode vptoolRoot
public ModelNode menuRoot
public HWM_GroupData menu
public boolean bPythonDone
public java.awt.image.BufferedImage bigToolbarImage
public boolean bBigImageBad
public boolean bInterfaceSettingsInvalid
public java.util.Hashtable functionTable
| Constructor Detail |
public Module()
| Method Detail |
public void execute()
public java.awt.Component macroGUI()
public java.util.Hashtable getFunctionTable()
public void installInFramework()
public void removeGUI()
public void readSettings()
public void writeSettings()
public void modelLoaded(FileNode file)
public void modelUnloaded(FileNode file)
public void createStandardLists(FileNode file)
public boolean hasStandardLists(FileNode file)
public FunctionStarter addFunction(java.lang.Object listener,
java.lang.String callback,
java.lang.String catagory)
listener - Object owning callback functioncallback - Callback function, also name of user function
public FunctionStarter addFSFunction(java.lang.String functionName,
ModelNode field,
java.lang.String catagory)
Note on this: when the menu or toolbar invokes a field function, if it is a boolean they will change the fields value directly, and if the field has listeners that will be called.
functionName - Name of user functionfield - Field set by the function
public void addFunction(FunctionStarter action,
java.lang.String catagory)
public FunctionStarter getFunction(java.lang.String functionName)
public java.lang.String getResourceDir()
public java.lang.String getHelpDir()
public java.lang.String getWorkingDir()
public java.lang.String getInstallDir()
public java.lang.String getHelpFile(Documentable helpMe)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||