|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface ICustomParameterControl
Interface for custom parameter controls.
Clients should implement this interface and include the name of their class
in a custom parameter control contributed to the custom parameter controls extension
point "com.ibm.carma.ui.customParameterControls". For example, the
markup in the contributing plugin.xml might contain:
<extension point="com.ibm.carma.ui.customParameterControls">
<customParameterControl
parameterId="042"
actionId="21"
ramId="42"
class="com.example.MyCustomParameterControl"/>
</extension>
| Method Summary | |
|---|---|
void |
addParameterValueChangedListener(IParameterValueChangedListener listener)
Adds a IParameterValueChangedListener to the custom control. |
org.eclipse.swt.widgets.Control |
createControl(org.eclipse.swt.widgets.Composite parent,
com.ibm.carma.model.RepositoryManager repositoryManager,
com.ibm.carma.model.Parameter parameter,
com.ibm.carma.model.Action action,
com.ibm.carma.model.CustomActionAccepter customActionAccepter,
java.lang.Object defaultValue)
This method is invoked when CARMA user interface is building the dialog for the relevant custom action. |
java.lang.Object |
getValue()
This method returns the value of the parameter for which a custom control has been created. |
boolean |
isUsingDefaultLabel()
If this method returns true, the CARMA user interface will create a label for the control in the input dialog's left column, like it does for default controls. |
void |
removeParameterValueChangedListener(IParameterValueChangedListener listener)
Removes a IParameterValueChangedListener from the custom control. |
| Method Detail |
|---|
org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent,
com.ibm.carma.model.RepositoryManager repositoryManager,
com.ibm.carma.model.Parameter parameter,
com.ibm.carma.model.Action action,
com.ibm.carma.model.CustomActionAccepter customActionAccepter,
java.lang.Object defaultValue)
parent - the parent compositerepositoryManager - the repository managerparameter - the parameteraction - the actioncustomActionAccepter - the resource that is being acted upondefaultValue - the default value of the parameter
java.lang.Object getValue()
boolean isUsingDefaultLabel()
void addParameterValueChangedListener(IParameterValueChangedListener listener)
listener - the listenervoid removeParameterValueChangedListener(IParameterValueChangedListener listener)
listener - the listener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||