Class AbstractSimpleInputConditionUIEditor

All Implemented Interfaces:
ConditionUIEditor, UIEditor
Direct Known Subclasses:
DefaultDateConditionUIEditor, DefaultDecimalConditionUIEditor, DefaultFeatureConditionUIEditor, DefaultFloatConditionUIEditor, DefaultIntConditionUIEditor, DefaultLongConditionUIEditor, DefaultTextConditionUIEditor

public abstract class AbstractSimpleInputConditionUIEditor extends AbstractExtensibleConditionUIEditor
  • Constructor Details

    • AbstractSimpleInputConditionUIEditor

      public AbstractSimpleInputConditionUIEditor()
  • Method Details

    • getValue

      public ConditionValueContainer getValue()
      Description copied from interface: UIEditor
      Returns the value held by this editor.
      Specified by:
      getValue in interface ConditionUIEditor
      Specified by:
      getValue in interface UIEditor
      Specified by:
      getValue in class AbstractConditionUIEditor
      Returns:
      this editor's value
    • createViewComponent

      public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent(Object initialValue, Map<String,? extends Object> parameters, EditorListener listener)
      Description copied from interface: UIEditor
      Creates a new editor component and attaches it to the specified Page page.
      Parameters:
      initialValue - editor's initial value
      parameters - parameters passed via configuration for particular editor
      listener - the EditorListener that will receive events when the editor's value is changed
      Returns:
      the editor component
    • createConditionPopup

      protected org.zkoss.zul.Popup createConditionPopup(AbstractExtensibleConditionUIEditor.ComboDiv parent, EditorListener listener)
    • createConditionRow

      protected org.zkoss.zhtml.impl.AbstractTag createConditionRow(EditorConditionEntry editorConditionEntry, EditorListener listener, AbstractExtensibleConditionUIEditor.ComboDiv mainDiv)
    • setSelectedEntry

      protected void setSelectedEntry(AbstractExtensibleConditionUIEditor.ComboDiv mainDiv, EditorConditionEntry entry, List<Object> values)
    • updateComboDisplay

      protected void updateComboDisplay(AbstractExtensibleConditionUIEditor.ComboDiv mainDiv, EditorConditionEntry condEntry, List<Object> values)
    • createLabelViewItem

      protected org.zkoss.zul.Label createLabelViewItem(String componentCode)
    • createInputViewItem

      protected org.zkoss.zul.impl.InputElement createInputViewItem(String componentCode)
    • setFocusedCondition

      protected void setFocusedCondition(org.zkoss.zul.Popup conditionPopup, int index, boolean updateFocusComponent)
    • createFocusComponent

      protected org.zkoss.zul.Checkbox createFocusComponent(org.zkoss.zhtml.impl.AbstractTag parent)
    • setFocusInternal

      protected void setFocusInternal(org.zkoss.zhtml.impl.AbstractTag parent, boolean focus, boolean updateFocusComponent)
    • setFocus

      public void setFocus(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent, boolean selectAll)
      Description copied from interface: UIEditor
      Sets the focus on the given input component which can be the rootEditorComponent or a child of it
      Specified by:
      setFocus in interface UIEditor
      Overrides:
      setFocus in class AbstractUIEditor
      Parameters:
      rootEditorComponent - the rootEditorComponent which is returned on method createViewComponent
      selectAll - if true, select the whole input field after focus. It is not guaranteed that the editor supports selection.