|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface Configuration<E extends ServerEnvironment>
Interface for configurable components.
| Method Summary | |
|---|---|
E |
getEnvironment()
Returns ComponentEnvironment |
JComponent |
getGui(Frame masterFrame)
Returns the configuration gui. |
String |
getParameter(String name)
Returns a specific parameter or null if it's not available. |
Set<String> |
getParameterNames()
Returns all parameter names. |
boolean |
hasGui()
Returns true if this component has a gui to show and change it's configuration. |
void |
init(String moduleName,
String componentName,
E env)
Initializes this component with the given environment. |
void |
load()
Loads the current configuration from appropriate conf directory. |
void |
store()
Stores the current configuration. |
| Method Detail |
|---|
boolean hasGui()
true if this component has a gui to show and change it's configuration.
true if this component has a gui to show and change it's configuration.@Nullable JComponent getGui(Frame masterFrame)
masterFrame - basic frame component, for creating new windows
null.void load()
conf directory.
void store()
Set<String> getParameterNames()
@Nullable String getParameter(String name)
null if it's not available.
name - parameter name.
null.
void init(String moduleName,
String componentName,
E env)
environment. This method is called before the
instance is used.
moduleName - module namecomponentName - component nameenv - useful environment information for this component.E getEnvironment()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||