Class SimpleReferenceUIEditor
- java.lang.Object
-
- de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
-
- de.hybris.platform.cockpit.model.referenceeditor.impl.AbstractReferenceUIEditor
-
- de.hybris.platform.cockpit.model.referenceeditor.impl.SimpleReferenceUIEditor
-
- All Implemented Interfaces:
ReferenceUIEditor
,UIEditor
- Direct Known Subclasses:
UnitReferenceUIEditor
public class SimpleReferenceUIEditor extends AbstractReferenceUIEditor
-
-
Nested Class Summary
-
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.ReferenceUIEditor
ALLOW_CREATE_PARAM_KEY
-
Fields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description SimpleReferenceUIEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.zkoss.zk.ui.HtmlBasedComponent
createViewComponent(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 specifiedPage
page
.protected void
fillComboBox(org.zkoss.zul.Combobox combobox, TypedObject selected)
protected java.util.List<TypedObject>
getAvailableValues()
ObjectType
getRootSearchType()
Returns the type for which this reference collection editor should search for.ObjectType
getRootType()
Returns the root type of this reference collection editor i.e.protected TypeService
getTypeService()
boolean
isInline()
Returns whether this editor is an inline editor or not.protected void
parseParams(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
void
setAvailableValues(java.util.List<TypedObject> availableValues)
void
setRootSearchType(ObjectType rootSearchType)
Sets the type for which this reference selector should search for.void
setRootType(ObjectType rootType)
Sets the root type of this reference editor i.e.protected boolean
updateAvailableValues()
Deprecated.since 6.3, useupdateAvailableValues(Map)
instead.protected boolean
updateAvailableValues(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
-
Methods inherited from class de.hybris.platform.cockpit.model.referenceeditor.impl.AbstractReferenceUIEditor
findMaxAutocompleteSearchResults, getBooleanParameter, getEditorType, isAllowCreate, setAllowCreate
-
Methods inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
applyReferenceRelatedAttributes, createEditor, createEditor, createEditor, createEditor, filterValues, fireValueChanged, getRootSearchType, getUIEditor, getValue, isEditable, isEditable, isOptional, isSearchMode, parseInitialInputString, parseTemplateCodes, persistValues, persistValues, setEditable, setFocus, 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
getValue, isEditable, isOptional, setEditable, setFocus, setOptional, setValue
-
-
-
-
Method Detail
-
updateAvailableValues
@Deprecated protected boolean updateAvailableValues()
Deprecated.since 6.3, useupdateAvailableValues(Map)
instead.
-
updateAvailableValues
protected boolean updateAvailableValues(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
-
setAvailableValues
public void setAvailableValues(java.util.List<TypedObject> availableValues)
-
getAvailableValues
protected java.util.List<TypedObject> getAvailableValues()
-
fillComboBox
protected void fillComboBox(org.zkoss.zul.Combobox combobox, TypedObject selected)
-
parseParams
protected void parseParams(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
-
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:UIEditor
Creates a new editor component and attaches it to the specifiedPage
page
.- Parameters:
initialValue
- editor's initial valueparameters
- parameters passed via configuration for particular editorlistener
- theEditorListener
that will receive events when the editor's value is changed- Returns:
- the editor component
-
getRootSearchType
public ObjectType getRootSearchType()
Description copied from interface:ReferenceUIEditor
Returns the type for which this reference collection editor should search for. Generally, if no root search type has been explicitly set, this method returns the same type asReferenceUIEditor.getRootType()
. Note: The root search type is actually the type of the items held by this editor, whereas root type is the type which should be used for persisting values.- Returns:
- the type for which this reference collection editor should search for
- See Also:
ReferenceUIEditor.getRootType()
-
getRootType
public ObjectType getRootType()
Description copied from interface:ReferenceUIEditor
Returns the root type of this reference collection editor i.e. the type of the items which this editor should hold references to. Note: If the root search type differs from the root type, this editor will actually hold items of the type returned byReferenceUIEditor.getRootSearchType()
. In this case information about the root type is generally needed for value handling.- Returns:
- the root type of this editor
- See Also:
ReferenceUIEditor.getRootSearchType()
-
setRootSearchType
public void setRootSearchType(ObjectType rootSearchType)
Description copied from interface:ReferenceUIEditor
Sets the type for which this reference selector should search for. Note: Generally, ifrootSearchType
isnull
, the set root type will be used.
-
setRootType
public void setRootType(ObjectType rootType)
Description copied from interface:ReferenceUIEditor
Sets the root type of this reference editor i.e. the root type of the references which this editor holds.- Parameters:
rootType
- the root type
-
isInline
public boolean isInline()
Description copied from interface:UIEditor
Returns whether this editor is an inline editor or not.- Returns:
- true, if inline
-
getTypeService
protected TypeService getTypeService()
-
-