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.ComboDivNested 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_PARAMFields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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(String componentCode) protected org.zkoss.zul.LabelcreateLabelViewItem(String componentCode) org.zkoss.zk.ui.HtmlBasedComponentcreateViewComponent(Object initialValue, Map<String, ? extends Object> parameters, EditorListener listener) Creates a new editor component and attaches it to the specifiedPagepage.getValue()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, List<Object> values) protected voidupdateComboDisplay(AbstractExtensibleConditionUIEditor.ComboDiv mainDiv, EditorConditionEntry condEntry, List<Object> values) Methods inherited from class de.hybris.platform.cockpit.model.editor.search.impl.AbstractExtensibleConditionUIEditor
filterConditionEntries, filterConditionEntries, getConditionEntries, getConditionEntry, getDisplayLabel, getEditorConditionConfigurationMethods inherited from class de.hybris.platform.cockpit.model.editor.search.impl.AbstractConditionUIEditor
getEditorType, getParameters, getValueType, isInline, setParametersMethods 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, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
isEditable, isOptional, setEditable, setOptional, setValue
-
Constructor Details
-
AbstractSimpleInputConditionUIEditor
public AbstractSimpleInputConditionUIEditor()
-
-
Method Details
-
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(Object initialValue, Map<String, ? extends 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, List<Object> values) -
updateComboDisplay
protected void updateComboDisplay(AbstractExtensibleConditionUIEditor.ComboDiv mainDiv, EditorConditionEntry condEntry, List<Object> values) -
createLabelViewItem
-
createInputViewItem
-
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.
-