ilog.rules.brl.ui.value.editor

Class IlrDateValueEditor

    • Constructor Detail

      • IlrDateValueEditor

        public IlrDateValueEditor(IlrValueDescriptor valueDescriptor)
        Constructs an abstract date value editor. When the abstract date value editor is instantiated, the createControl() method is invoked to initialize the calendar panel.
        Parameters:
        valueDescriptor - The associated value descriptor.
    • Method Detail

      • 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
        Overrides:
        prepare in class IlrAbstractValueEditor
        Parameters:
        node - The node under which a value can be edited.
      • getValue

        public java.lang.Object getValue()
        Description copied from interface: IlrValueEditor
        Returns the value edited in this editor.
        Returns:
        The edited value.
      • setValue

        public void setValue(java.lang.Object value)
        Description copied from interface: IlrValueEditor
        Sets the value to edit.
        Parameters:
        value - The value.
      • configureCalendar

        protected void configureCalendar()
        This method is called when creating a Date Value Editor to configure the calendar panel. If overriden, the super method must be called.
      • getEditorComponent

        public java.lang.Object getEditorComponent(IlrBRLRuleEditingContext context)
        Description copied from interface: IlrValueEditorComponent
        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). This component will be popped up when a value needs to be edited.
        Parameters:
        context - The context of the editing rule.
        Returns:
        The component.

© Copyright IBM Corp. 1987, 2017