| # GUI Commands User Guide ## Version 2.1 |
| # Custom Properties GUI 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 `foo` for example, you'd use the following syntax: `my-command@properties[foo]`. You can acces properties using the `getProperty(String)` methods. ## Custom Property Examples
       command@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}`. |