Class AbstractSimpleInputConditionUIEditor
- java.lang.Object
-
- de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
-
- de.hybris.platform.cockpit.model.editor.search.impl.AbstractConditionUIEditor
-
- de.hybris.platform.cockpit.model.editor.search.impl.AbstractExtensibleConditionUIEditor
-
- de.hybris.platform.cockpit.model.editor.search.impl.AbstractSimpleInputConditionUIEditor
-
- All Implemented Interfaces:
ConditionUIEditor,UIEditor
- Direct Known Subclasses:
DefaultDateConditionUIEditor,DefaultDecimalConditionUIEditor,DefaultFeatureConditionUIEditor,DefaultFloatConditionUIEditor,DefaultIntConditionUIEditor,DefaultLongConditionUIEditor,DefaultTextConditionUIEditor
public abstract class AbstractSimpleInputConditionUIEditor extends AbstractExtensibleConditionUIEditor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.cockpit.model.editor.search.impl.AbstractExtensibleConditionUIEditor
AbstractExtensibleConditionUIEditor.ClearConditionEntry, AbstractExtensibleConditionUIEditor.ComboDiv
-
Nested classes/interfaces inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
ATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAM
-
Fields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description AbstractSimpleInputConditionUIEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zul.PopupcreateConditionPopup(AbstractExtensibleConditionUIEditor.ComboDiv parent, EditorListener listener)protected org.zkoss.zhtml.impl.AbstractTagcreateConditionRow(EditorConditionEntry editorConditionEntry, EditorListener listener, AbstractExtensibleConditionUIEditor.ComboDiv mainDiv)protected org.zkoss.zul.CheckboxcreateFocusComponent(org.zkoss.zhtml.impl.AbstractTag parent)protected org.zkoss.zul.impl.InputElementcreateInputViewItem(java.lang.String componentCode)protected org.zkoss.zul.LabelcreateLabelViewItem(java.lang.String componentCode)org.zkoss.zk.ui.HtmlBasedComponentcreateViewComponent(java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)Creates a new editor component and attaches it to the specifiedPagepage.ConditionValueContainergetValue()Returns the value held by this editor.voidsetFocus(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent, boolean selectAll)Sets the focus on the given input component which can be the rootEditorComponent or a child of itprotected voidsetFocusedCondition(org.zkoss.zul.Popup conditionPopup, int index, boolean updateFocusComponent)protected voidsetFocusInternal(org.zkoss.zhtml.impl.AbstractTag parent, boolean focus, boolean updateFocusComponent)protected voidsetSelectedEntry(AbstractExtensibleConditionUIEditor.ComboDiv mainDiv, EditorConditionEntry entry, java.util.List<java.lang.Object> values)protected voidupdateComboDisplay(AbstractExtensibleConditionUIEditor.ComboDiv mainDiv, EditorConditionEntry condEntry, java.util.List<java.lang.Object> values)-
Methods inherited from class de.hybris.platform.cockpit.model.editor.search.impl.AbstractExtensibleConditionUIEditor
filterConditionEntries, filterConditionEntries, getConditionEntries, getConditionEntry, getDisplayLabel, getEditorConditionConfiguration
-
Methods inherited from class de.hybris.platform.cockpit.model.editor.search.impl.AbstractConditionUIEditor
getEditorType, getParameters, getValueType, isInline, setParameters
-
Methods inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
applyReferenceRelatedAttributes, createEditor, createEditor, createEditor, createEditor, filterValues, fireValueChanged, getRootSearchType, getUIEditor, isEditable, isEditable, isOptional, isSearchMode, parseInitialInputString, parseTemplateCodes, persistValues, persistValues, setEditable, setOptional, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
isEditable, isOptional, setEditable, setOptional, setValue
-
-
-
-
Method Detail
-
getValue
public ConditionValueContainer getValue()
Description copied from interface:UIEditorReturns the value held by this editor.- Specified by:
getValuein interfaceConditionUIEditor- Specified by:
getValuein interfaceUIEditor- Specified by:
getValuein classAbstractConditionUIEditor- Returns:
- this editor's value
-
createViewComponent
public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent(java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)Description copied from interface:UIEditorCreates a new editor component and attaches it to the specifiedPagepage.- Parameters:
initialValue- editor's initial valueparameters- parameters passed via configuration for particular editorlistener- theEditorListenerthat 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, java.util.List<java.lang.Object> values)
-
updateComboDisplay
protected void updateComboDisplay(AbstractExtensibleConditionUIEditor.ComboDiv mainDiv, EditorConditionEntry condEntry, java.util.List<java.lang.Object> values)
-
createLabelViewItem
protected org.zkoss.zul.Label createLabelViewItem(java.lang.String componentCode)
-
createInputViewItem
protected org.zkoss.zul.impl.InputElement createInputViewItem(java.lang.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:UIEditorSets the focus on the given input component which can be the rootEditorComponent or a child of it- Specified by:
setFocusin interfaceUIEditor- Overrides:
setFocusin classAbstractUIEditor- Parameters:
rootEditorComponent- the rootEditorComponent which is returned on method createViewComponentselectAll- if true, select the whole input field after focus. It is not guaranteed that the editor supports selection.
-
-