public abstract class IlrAbstractValueEditor extends java.lang.Object implements IlrValueEditor, IlrValueEditorExtension, IlrValueEditorComponent
IlrAbstractValueEditor provides a part of the implementation
of the IlrValueEditor interface.
| Modifier | Constructor and Description |
|---|---|
protected |
IlrAbstractValueEditor(IlrValueDescriptor valueDescriptor)
Initialize an abstract value descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValueEditorListener(IlrValueEditorListener l)
Adds an
IlrValueEditorListener. |
void |
dispose()
Disposes of the value editor after an edit.
|
protected void |
fireEditionCanceled()
Fire the event on all the listeners that edition is canceled.
|
protected void |
fireEditionStopped()
Fire the event on all the listeners that edition is stopped.
|
IlrValueDescriptor |
getValueDescriptor()
Returns the value descriptor attached to this value editor.
|
void |
prepare(IlrSyntaxTree.Node node)
The method
prepare is invoked just before the editing of a value during rule editing. |
void |
removeValueEditorListener(IlrValueEditorListener l)
Removes an
IlrValueEditorListener. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEditorComponentgetValue, setValue, supportsCustomEditorprotected IlrAbstractValueEditor(IlrValueDescriptor valueDescriptor)
valueDescriptor - The value descriptor associated with this value editorpublic final IlrValueDescriptor getValueDescriptor()
IlrValueEditorgetValueDescriptor in interface IlrValueEditorpublic void prepare(IlrSyntaxTree.Node node)
IlrValueEditorExtensionprepare is invoked just before the editing of a value during rule editing.
The argument passed to the method is the node representing the value being edited.
It is possible to navigate up and down the Abstract Syntax Tree from this node.
Note that the branch can be a branch in error recovery if the rule has syntactic errors.prepare in interface IlrValueEditorExtensionnode - The node under which a value can be edited.public void addValueEditorListener(IlrValueEditorListener l)
IlrValueEditorIlrValueEditorListener.
A value editor event is generated when the edited item changes.
addValueEditorListener in interface IlrValueEditorpublic void removeValueEditorListener(IlrValueEditorListener l)
IlrValueEditorIlrValueEditorListener.removeValueEditorListener in interface IlrValueEditorprotected void fireEditionStopped()
protected void fireEditionCanceled()
public void dispose()
IlrValueEditorExtensiondispose in interface IlrValueEditorExtension© Copyright IBM Corp. 1987, 2017