GUI Commands User GuideVersion 2.1 |
||
Custom PropertiesGUI Commands allows you to define custom properties within the command
configuration files. Custom properties are defined using a simple map style syntax.
To define the client property Custom Property Examplescommand@face.text=_Export command@face.icon=classpath:images/export.png command@face.description=Exports the current document ($accelerator) # set a custom property command@properties[defaultExportPath]=${user.home} // now get the property at runtime... String defaultExportPath = command.getProperty("defaultExportPath");
NOTE: GUI Commands doesn't interpret custom property values. The example above will
return the literal string
${user.home}.
|
||