|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConfigurationLoader
Defines the methods for loading configuration files and applying that configuration
to newly created commands. The default implementation is defined by
Defaults.getConfigurationLoader().
During construction each command retrieves the current loader and invokes
configure(Command) on itself. The loader must then read the appropriate configuration
items and configure the command faces and properties.
| Method Summary | |
|---|---|
void |
configure(Command command)
Configures the faces and properties of the specified command based on the information loaded via load(ResourceBundle). |
java.lang.String |
getGroupClassName(java.lang.String id)
Checks if the group has got an explicit class name specified. |
boolean |
isAutoCreate(java.lang.String id)
Checks if a CommandGroup has been specified as autoCreate. |
boolean |
isGroup(java.lang.String id)
Checks if the configuration of the specified id is for a CommandGroup. |
boolean |
isToggleGroup(java.lang.String id)
Checks if the configuration of the specified id is for a ToggleGroup. |
void |
load(java.util.ResourceBundle bundle)
Loads the configuration defined in the specified resource bundle. |
| Method Detail |
|---|
void configure(Command command)
throws ConfigurationException
load(ResourceBundle).
command - the command to configure
ConfigurationException - if there was an error configuring the command. An example error
would be if the command was a CommandGroup, but
the configuration was for an ActionCommand.boolean isGroup(java.lang.String id)
CommandGroup.
id - the command id to check.
true if the coniguration is for a CommandGroup, false otherwise.boolean isToggleGroup(java.lang.String id)
ToggleGroup.
id - the command id to check.
true if the coniguration is for a ToggleGroup, false otherwise.boolean isAutoCreate(java.lang.String id)
CommandGroup has been specified as autoCreate.
id - the command id to check.
true if the CommandGroup has been specified to be auto created.java.lang.String getGroupClassName(java.lang.String id)
isAutoCreate(String) is true.
id - the command id to check.
CommandGroup or null if none
was specified.
void load(java.util.ResourceBundle bundle)
throws ParseException
bundle - the bundle to load.
ParseException - if there was an error loading the configuration.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||