ILOG JRules

ilog.rules.brl.value.editor
Class IlrAbstractValueEditor

java.lang.Object
  extended by ilog.rules.brl.value.editor.IlrAbstractValueEditor
All Implemented Interfaces:
IlrValueEditor, IlrValueEditorComponent, IlrValueEditorExtension
Direct Known Subclasses:
IlrAWTValueEditor

public abstract class IlrAbstractValueEditor
extends Object
implements IlrValueEditor, IlrValueEditorExtension, IlrValueEditorComponent

Provides a part of the implementation of the interface IlrValueEditor.


Constructor Summary
protected IlrAbstractValueEditor(IlrValueDescriptor valueDescriptor)
          Initialize an abstract value descriptor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.rules.brl.value.editor.IlrValueEditorComponent
getEditorComponent
 

Constructor Detail

IlrAbstractValueEditor

protected IlrAbstractValueEditor(IlrValueDescriptor valueDescriptor)
Initialize an abstract value descriptor.

Parameters:
valueDescriptor - The value descriptor associated with this value editor
Method Detail

getValueDescriptor

public final IlrValueDescriptor getValueDescriptor()
Description copied from interface: IlrValueEditor
Returns the value descriptor attached to this value editor.

Specified by:
getValueDescriptor in interface IlrValueEditor
Returns:
The value descriptor attached to this value editor.

prepare

public void prepare(IlrSyntaxTree.Node node)
Description copied from interface: IlrValueEditorExtension
The method prepare 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.

Specified by:
prepare in interface IlrValueEditorExtension
Parameters:
node - The node under which a value can be edited.

addValueEditorListener

public void addValueEditorListener(IlrValueEditorListener l)
Description copied from interface: IlrValueEditor
Adds an IlrValueEditorListener.

A value editor event is generated when the edited item changes.

Specified by:
addValueEditorListener in interface IlrValueEditor

removeValueEditorListener

public void removeValueEditorListener(IlrValueEditorListener l)
Description copied from interface: IlrValueEditor
Removes an IlrValueEditorListener.

Specified by:
removeValueEditorListener in interface IlrValueEditor

fireEditionStopped

protected void fireEditionStopped()
Fire the event on all the listeners that edition is stopped.


fireEditionCanceled

protected void fireEditionCanceled()
Fire the event on all the listeners that edition is canceled.


dispose

public void dispose()
Description copied from interface: IlrValueEditorExtension
Disposes of the value editor after an edit.

Specified by:
dispose in interface IlrValueEditorExtension

ILOG JRules