| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Provides methods for getting the IdeConfig instances and working with ConfigEditors.
All configs have a so-called "level" which defines a set of the properties and their values:
IdeConfigLevel interface.
IdeConfig object corresponding to the configuration at the specific level can be obtained
via getConfig method.
getConfigEditor method returns IdeConfigEditor object for the specific level,
allowing to add custom pages to config dialog, set visibility of pages in it etc.
Current IdeConfigManager can be obtained via
IdeConfigManagerAccess.getConfigManager method.
| Fields inherited from interface com.togethersoft.openapi.util.properties.IPropertiesRO |
NULL |
| Method Summary | |
IdeModuleConfig | createModuleConfig(Class moduleClass, String configPath)Returns previously existing module config or creates new one. |
IdeConfig | getConfig(String level)Returns the IdeConfig instance for the specified level. |
IdeConfigEditor | getConfigEditor(String level, String selectedPage, boolean onePage)Returns IdeConfigEditor instance with the specific content and configuration. |
IdeModuleConfig | getModuleConfig(Class moduleClass)Returns previously existing module config file or null. |
StringEnumeration | levelNames()Returns an enumeration of the strings with the names of all configuration levels. |
Enumeration | moduleConfigs()Returns enumeration of all existing module configs. |
boolean | showConfigEditor(Component parent, String level, String selectedPage, boolean onePage)Shows the IdeConfigEditor in the specified component. |
boolean | showConfigEditor(Component parent, String level, String selectedPage, boolean onePage, String initialLevel, int mode)Shows the IdeConfigEditor in the specified component. |
boolean | showConfigEditor(Component parent, IdeConfigEditor editor, String initialLevel, int mode)Shows the specified IdeConfigEditor. |
| Methods inherited from interface com.togethersoft.openapi.util.properties.IPropertiesRO |
addPropertyChangeListener, getProperty, propertyNames, removePropertyChangeListener |
| Method Detail |
public IdeModuleConfig createModuleConfig(Class moduleClass, String configPath)
public IdeConfig getConfig(String level)
IdeConfig instance for the specified level. The
returned IdeConfig object can be used for inquiring the values of properties at this level.String name of the level of the required config. The
predefined values are stored in the IdeConfigLevel interface.IdeConfig instancepublic IdeConfigEditor getConfigEditor(String level, String selectedPage, boolean onePage)
IdeConfigEditor instance with the specific content and configuration.String name of the level of the required config. The
predefined values are stored in the IdeConfigLevel interfaceString name of the page in this configboolean flag. If true then returned IdeConfigEditor will
contain specified page only; if false then returns all pages defined in the config.IdeConfigEditor instance with the specific content and configurationpublic IdeModuleConfig getModuleConfig(Class moduleClass)
IdeModuleConfig is associated with the package of the passed class.Class of the associated modulepublic StringEnumeration levelNames()
public Enumeration moduleConfigs()
public boolean showConfigEditor(Component parent, String level, String selectedPage, boolean onePage)
IdeConfigEditor in the specified component.Component where this config editor will be shownString name of the level of the required config. The
predefined values are in the IdeConfigLevel interfaceString with the name of the config pageboolean flag. If true then returned IdeConfigEditor will
contain specified page only, otherwise returns all pages defined in the config.true if the user clicked "Okay" button, false otherwisepublic boolean showConfigEditor(Component parent, String level, String selectedPage, boolean onePage, String initialLevel, int mode)
IdeConfigEditor in the specified component.Component where this config editor will be shownstring name of the level of the required config. The
predefined values are in the IdeConfigLevel interfaceString name of the page in this configboolean flag. If true then returned IdeConfigEditor will
contain specified page only, otherwise returns all pages defined in the config.String name of the level which should be initially selected for editing.
The predefined values are stored in the IdeConfigLevel interfaceinteger type of update for the values of changed properties. The constants
for this parameter are defined in the IdeConfigEditorMode interface.
Apply button needs non-blocking call.true if the user clicked "Okay" button, false otherwisepublic boolean showConfigEditor(Component parent, IdeConfigEditor editor, String initialLevel, int mode)
IdeConfigEditor.Component objectIdeConfigEditor object. See getConfigEditor method.String name of the level which should be initially selected for editing. The
predefined values are stored in the IdeConfigLevel interfaceinteger type of update for the values of changed properties. The constants
for this parameter are defined in the IdeConfigEditorMode interface.
Apply button needs non-blocking call.
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||