|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.geeboss.model.editors.EditorHandler
public abstract class EditorHandler
Base handler class for Editors
| Field Summary | |
|---|---|
protected GeebossContainer |
mContainer
Reference to the container |
| Constructor Summary | |
|---|---|
EditorHandler(org.apache.avalon.framework.configuration.Configuration configuration,
GeebossContainer container)
Create an new EditorHandler given an editor's configuration |
|
| Method Summary | |
|---|---|
void |
activate()
Activate the editor associated to this handler |
void |
addParameterChangeListener(ParameterChangeListener listener)
Register a parameter change listener |
abstract Parameter |
createParameterInstance(org.apache.avalon.framework.configuration.Configuration configuration,
GeebossContainer container)
Create a parameter instance for this handler given the parameter name |
void |
fireParameterChanged(Parameter parameter)
Fire a parameter change event for the provided parameter |
void |
fireParameterChanged(java.lang.String parameterName)
Fire a parameter change event for the named parameter |
Editor |
getEditor()
Returns the editor instance associated to this handler |
java.lang.String |
getName()
Returns this editor's name |
Parameter |
getParameter(java.lang.String parameterName)
Get a parameter given it's name |
Parameter[] |
getParameters()
Returns the parameters of this editor |
void |
loadConfiguration(org.apache.avalon.framework.configuration.Configuration configuration,
GeebossContainer container)
Load this EditorHandler's configuration |
void |
removeParameterChangeListener(ParameterChangeListener listener)
Remove a parameter change listener |
abstract void |
requestUpdate()
Request an update for this editor's values |
Editor |
setupEditor(org.eclipse.swt.widgets.Composite parent,
int style,
org.eclipse.swt.graphics.Image background)
Instanciate the editor for this handler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GeebossContainer mContainer
| Constructor Detail |
|---|
public EditorHandler(org.apache.avalon.framework.configuration.Configuration configuration,
GeebossContainer container)
throws org.apache.avalon.framework.configuration.ConfigurationException
configuration - the editor's configurationcontainer - the geeboss container
org.apache.avalon.framework.configuration.ConfigurationException| Method Detail |
|---|
public abstract Parameter createParameterInstance(org.apache.avalon.framework.configuration.Configuration configuration,
GeebossContainer container)
throws org.apache.avalon.framework.configuration.ConfigurationException
configuration - the parameter configuraioncontainer - the geeboss container
org.apache.avalon.framework.configuration.ConfigurationExceptionpublic Editor getEditor()
public java.lang.String getName()
public Editor setupEditor(org.eclipse.swt.widgets.Composite parent,
int style,
org.eclipse.swt.graphics.Image background)
parent - the parent componentstyle - the style flagbackground - the background the pedal will be displayed on
public void loadConfiguration(org.apache.avalon.framework.configuration.Configuration configuration,
GeebossContainer container)
throws org.apache.avalon.framework.configuration.ConfigurationException
loadConfiguration in interface LoadConfigurationSupportconfiguration - the configuration objectcontainer - the geeboss container
org.apache.avalon.framework.configuration.ConfigurationExceptionpublic Parameter getParameter(java.lang.String parameterName)
parameterName - the name of the paramter
public Parameter[] getParameters()
public void addParameterChangeListener(ParameterChangeListener listener)
listener - the parameter change listener to registerpublic void removeParameterChangeListener(ParameterChangeListener listener)
listener - the parameter change listener to removepublic void fireParameterChanged(java.lang.String parameterName)
parameterName - the name of the parameterpublic void fireParameterChanged(Parameter parameter)
parameter - the parameterpublic void activate()
public abstract void requestUpdate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||