public abstract class IlrDateValueEditor extends IlrAWTValueEditor
| Constructor and Description |
|---|
IlrDateValueEditor(IlrValueDescriptor valueDescriptor)
Constructs an abstract date value editor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureCalendar()
This method is called when creating a Date Value Editor to configure the calendar panel.
|
java.lang.Object |
getEditorComponent(IlrBRLRuleEditingContext context)
Returns a component (must be an instance of
java.awt.Component or an implementation of the following interfaces
ilog.rules.brl.value.editor.IlrSWTValueEditorComposite or
ilog.rules.brl.value.editor.IlrSWTValueEditorDialog). |
java.lang.Object |
getValue()
Returns the value edited in this editor.
|
void |
prepare(IlrSyntaxTree.Node node)
The method
prepare is invoked just before the editing of a value during rule editing. |
void |
setValue(java.lang.Object value)
Sets the value to edit.
|
supportsCustomEditoraddValueEditorListener, dispose, fireEditionCanceled, fireEditionStopped, getValueDescriptor, removeValueEditorListenerpublic IlrDateValueEditor(IlrValueDescriptor valueDescriptor)
createControl() method is invoked
to initialize the calendar panel.valueDescriptor - The associated value descriptor.public 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 IlrValueEditorExtensionprepare in class IlrAbstractValueEditornode - The node under which a value can be edited.public java.lang.Object getValue()
IlrValueEditorpublic void setValue(java.lang.Object value)
IlrValueEditorvalue - The value.protected void configureCalendar()
public java.lang.Object getEditorComponent(IlrBRLRuleEditingContext context)
IlrValueEditorComponentjava.awt.Component or an implementation of the following interfaces
ilog.rules.brl.value.editor.IlrSWTValueEditorComposite or
ilog.rules.brl.value.editor.IlrSWTValueEditorDialog).
This component will be popped up when a value needs to be edited.context - The context of the editing rule.© Copyright IBM Corp. 1987, 2017