Interface MultiReferenceEditorLogic<D extends AbstractEditorData,V>
- All Superinterfaces:
EditorLogic<Collection<V>>
- All Known Implementing Classes:
ConfigurableMultiReferenceEditor
public interface MultiReferenceEditorLogic<D extends AbstractEditorData,V>
extends EditorLogic<Collection<V>>
Logic for multi reference editor.
-
Method Summary
Modifier and TypeMethodDescriptioncom.hybris.cockpitng.components.EditorfindEditor(org.zkoss.zk.ui.Component component) Finds the nearest editor component.org.zkoss.zk.ui.ComponentfindEditorItem(org.zkoss.zk.ui.Component component) Finds the nearest editor item component.Returns the columns.Returns the editor context.Returns the data handler.Returns the editable columns.Returns the renderer for the item detail section.Returns the renderer for the item master section.org.zkoss.zul.ListModel<D>Returns the list model.booleanisOpen(org.zkoss.zk.ui.Component component) Returns whether the given component is open.booleanReturns whether the editor items can be sorted.voidsetOpen(org.zkoss.zk.ui.Component component, boolean open) Changes the open status of a component.voidTriggers the creation of a new item.voidtriggerUpdateReference(D data) Triggers the update of an existing item.voidupdateAttributeValue(D data, String attributeName, Object attributeValue) Updates the value of an item attribute.voidupdateValue(Collection<V> value) Updates the value of the editor.Methods inherited from interface de.hybris.platform.adaptivesearchbackoffice.editors.EditorLogic
getEditorContext, getEditorListener, getWidgetInstanceManager
-
Method Details
-
getContext
String getContext()Returns the editor context.- Returns:
- the editor context
-
isSortable
boolean isSortable()Returns whether the editor items can be sorted.- Returns:
trueif the editor items can be sorted,falseotherwise
-
getColumns
Collection<String> getColumns()Returns the columns.- Returns:
- the columns
-
getEditableColumns
Collection<String> getEditableColumns()Returns the editable columns.- Returns:
- the editable columns
-
getDataHandler
DataHandler<D,V> getDataHandler()Returns the data handler.- Returns:
- the data handler
-
getListModel
org.zkoss.zul.ListModel<D> getListModel()Returns the list model.- Returns:
- the list model
-
getItemMasterRenderer
EditorRenderer getItemMasterRenderer()Returns the renderer for the item master section.- Returns:
- the renderer for the item master section
-
getItemDetailRenderer
EditorRenderer getItemDetailRenderer()Returns the renderer for the item detail section.- Returns:
- the renderer for the item detail section
-
isOpen
boolean isOpen(org.zkoss.zk.ui.Component component) Returns whether the given component is open. This can be used, for example, to check if an editor item is open.- Parameters:
component- - the component- Returns:
trueif the component is open,falseotherwise
-
setOpen
void setOpen(org.zkoss.zk.ui.Component component, boolean open) Changes the open status of a component.- Parameters:
component- - the componentopen- - the new open status
-
findEditor
com.hybris.cockpitng.components.Editor findEditor(org.zkoss.zk.ui.Component component) Finds the nearest editor component.- Returns:
- the nearest editor component or
nullif it could not be found
-
findEditorItem
org.zkoss.zk.ui.Component findEditorItem(org.zkoss.zk.ui.Component component) Finds the nearest editor item component.- Returns:
- the nearest editor item component or
nullif it could not be found
-
updateValue
Updates the value of the editor.- Parameters:
value- - the value
-
updateAttributeValue
Updates the value of an item attribute.- Parameters:
data- - the item dataattributeName- - the attribute nameattributeValue- - the attribute value
-
triggerCreateReference
void triggerCreateReference()Triggers the creation of a new item. -
triggerUpdateReference
Triggers the update of an existing item.- Parameters:
data- - the item data
-