Interface MultiReferenceEditorLogic<D extends AbstractEditorData,V>
-
- All Superinterfaces:
EditorLogic<java.util.Collection<V>>
- All Known Implementing Classes:
ConfigurableMultiReferenceEditor
public interface MultiReferenceEditorLogic<D extends AbstractEditorData,V> extends EditorLogic<java.util.Collection<V>>
Logic for multi reference editor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.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.java.util.Collection<java.lang.String>getColumns()Returns the columns.java.lang.StringgetContext()Returns the editor context.DataHandler<D,V>getDataHandler()Returns the data handler.java.util.Collection<java.lang.String>getEditableColumns()Returns the editable columns.EditorRenderergetItemDetailRenderer()Returns the renderer for the item detail section.EditorRenderergetItemMasterRenderer()Returns the renderer for the item master section.org.zkoss.zul.ListModel<D>getListModel()Returns the list model.booleanisOpen(org.zkoss.zk.ui.Component component)Returns whether the given component is open.booleanisSortable()Returns whether the editor items can be sorted.voidsetOpen(org.zkoss.zk.ui.Component component, boolean open)Changes the open status of a component.voidtriggerCreateReference()Triggers the creation of a new item.voidtriggerUpdateReference(D data)Triggers the update of an existing item.voidupdateAttributeValue(D data, java.lang.String attributeName, java.lang.Object attributeValue)Updates the value of an item attribute.voidupdateValue(java.util.Collection<V> value)Updates the value of the editor.-
Methods inherited from interface de.hybris.platform.adaptivesearchbackoffice.editors.EditorLogic
getEditorContext, getEditorListener, getWidgetInstanceManager
-
-
-
-
Method Detail
-
getContext
java.lang.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
java.util.Collection<java.lang.String> getColumns()
Returns the columns.- Returns:
- the columns
-
getEditableColumns
java.util.Collection<java.lang.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
void updateValue(java.util.Collection<V> value)
Updates the value of the editor.- Parameters:
value- - the value
-
updateAttributeValue
void updateAttributeValue(D data, java.lang.String attributeName, java.lang.Object attributeValue)
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
void triggerUpdateReference(D data)
Triggers the update of an existing item.- Parameters:
data- - the item data
-
-