Class AbstractPaginableEditorRenderer<T>
- java.lang.Object
-
- com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<T>
-
- com.hybris.cockpitng.editors.impl.AbstractPaginableEditorRenderer<T>
-
- All Implemented Interfaces:
CockpitEditorRenderer<T>
- Direct Known Subclasses:
DefaultListEditorRenderer,DefaultMapEditorRenderer
public abstract class AbstractPaginableEditorRenderer<T> extends AbstractCockpitEditorRenderer<T>
Implements the common mechanisms for the pagination-enabled editors.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCLEAR_EDITOR_IMGprotected static java.lang.StringCONFIRM_DELETE_PARAMprotected static java.lang.StringITEM_INDEX_TO_CUTprotected static java.lang.StringLAST_EDITED_INDEXprotected static java.lang.StringLAST_EDITED_VALUEprotected static java.lang.StringNULLprotected static java.lang.StringON_EDIT_EVENTprotected static java.lang.StringON_INIT_EVENTprotected static java.lang.StringON_UPDATE_EVENTprotected static java.lang.StringTRUEprotected static java.lang.StringYE_LIST_CONTAINERprotected static java.lang.StringYE_LIST_CONTENTprotected static java.lang.StringYE_LIST_INLINEprotected static java.lang.StringYE_LIST_INLINE_CANCELprotected static java.lang.StringYE_LIST_INLINE_EDITORprotected static java.lang.StringYE_LIST_INLINE_SAVEprotected static java.lang.StringYE_LIST_LINE_EDITORprotected static java.lang.StringYE_LIST_LISTBOXprotected static java.lang.StringYE_LIST_TITLEBARprotected static java.lang.StringYE_LIST_TITLEBAR_LABELprotected static java.lang.StringYE_LIST_TITLEBAR_SPANprotected static java.lang.StringYE_LIST_TITLEBAR_VALUEprotected static java.lang.StringYE_LIST_TOOLBARprotected static java.lang.StringYE_LIST_TOOLBAR_ADDPOPUPprotected static java.lang.StringYE_LIST_TOOLBAR_ADDPOPUP_CHECKBOXprotected static java.lang.StringYE_LIST_TOOLBAR_BUTTON_EDITprotected static java.lang.StringYE_LIST_Y_BTB_PRIMARY-
Fields inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT, YW_EDITOR_AREA_LABEL_CONTAINER
-
Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description AbstractPaginableEditorRenderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidconfigurePaging(org.zkoss.zul.Listbox editorView, EditorContext<T> context)Configure the innerPagingobject of the list editor.protected org.zkoss.zul.ButtoncreateAddButton(org.zkoss.zul.Listbox listbox, EditorContext<T> context)Creates button for adding new entry.protected abstract org.zkoss.zul.PopupcreateAddPopup(org.zkoss.zul.Listbox listbox, EditorListener<T> listener, EditorContext<T> context)protected org.zkoss.zul.ButtoncreateDeleteButton(org.zkoss.zul.Listbox listbox, EditorContext<T> context)Creates button for removing selected entry.protected EditorcreateEditor(EditorContext<T> context, java.lang.String editorType)Creates single editor cell according to theeditorType.protected intgetPageSize(EditorContext<T> context)protected booleanselectionNotEmpty(org.zkoss.zul.Listbox listbox)-
Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
render
-
-
-
-
Field Detail
-
LAST_EDITED_INDEX
protected static final java.lang.String LAST_EDITED_INDEX
- See Also:
- Constant Field Values
-
LAST_EDITED_VALUE
protected static final java.lang.String LAST_EDITED_VALUE
- See Also:
- Constant Field Values
-
NULL
protected static final java.lang.String NULL
- See Also:
- Constant Field Values
-
TRUE
protected static final java.lang.String TRUE
- See Also:
- Constant Field Values
-
CLEAR_EDITOR_IMG
protected static final java.lang.String CLEAR_EDITOR_IMG
- See Also:
- Constant Field Values
-
YE_LIST_LINE_EDITOR
protected static final java.lang.String YE_LIST_LINE_EDITOR
- See Also:
- Constant Field Values
-
YE_LIST_INLINE_SAVE
protected static final java.lang.String YE_LIST_INLINE_SAVE
- See Also:
- Constant Field Values
-
YE_LIST_INLINE_EDITOR
protected static final java.lang.String YE_LIST_INLINE_EDITOR
- See Also:
- Constant Field Values
-
YE_LIST_INLINE_CANCEL
protected static final java.lang.String YE_LIST_INLINE_CANCEL
- See Also:
- Constant Field Values
-
YE_LIST_INLINE
protected static final java.lang.String YE_LIST_INLINE
- See Also:
- Constant Field Values
-
YE_LIST_TOOLBAR_ADDPOPUP
protected static final java.lang.String YE_LIST_TOOLBAR_ADDPOPUP
- See Also:
- Constant Field Values
-
YE_LIST_TOOLBAR_ADDPOPUP_CHECKBOX
protected static final java.lang.String YE_LIST_TOOLBAR_ADDPOPUP_CHECKBOX
- See Also:
- Constant Field Values
-
YE_LIST_TOOLBAR_BUTTON_EDIT
protected static final java.lang.String YE_LIST_TOOLBAR_BUTTON_EDIT
- See Also:
- Constant Field Values
-
YE_LIST_TOOLBAR
protected static final java.lang.String YE_LIST_TOOLBAR
- See Also:
- Constant Field Values
-
YE_LIST_TITLEBAR_LABEL
protected static final java.lang.String YE_LIST_TITLEBAR_LABEL
- See Also:
- Constant Field Values
-
YE_LIST_TITLEBAR_VALUE
protected static final java.lang.String YE_LIST_TITLEBAR_VALUE
- See Also:
- Constant Field Values
-
YE_LIST_CONTENT
protected static final java.lang.String YE_LIST_CONTENT
- See Also:
- Constant Field Values
-
YE_LIST_LISTBOX
protected static final java.lang.String YE_LIST_LISTBOX
- See Also:
- Constant Field Values
-
YE_LIST_TITLEBAR_SPAN
protected static final java.lang.String YE_LIST_TITLEBAR_SPAN
- See Also:
- Constant Field Values
-
YE_LIST_TITLEBAR
protected static final java.lang.String YE_LIST_TITLEBAR
- See Also:
- Constant Field Values
-
YE_LIST_CONTAINER
protected static final java.lang.String YE_LIST_CONTAINER
- See Also:
- Constant Field Values
-
CONFIRM_DELETE_PARAM
protected static final java.lang.String CONFIRM_DELETE_PARAM
- See Also:
- Constant Field Values
-
ITEM_INDEX_TO_CUT
protected static final java.lang.String ITEM_INDEX_TO_CUT
- See Also:
- Constant Field Values
-
ON_INIT_EVENT
protected static final java.lang.String ON_INIT_EVENT
- See Also:
- Constant Field Values
-
ON_UPDATE_EVENT
protected static final java.lang.String ON_UPDATE_EVENT
- See Also:
- Constant Field Values
-
ON_EDIT_EVENT
protected static final java.lang.String ON_EDIT_EVENT
- See Also:
- Constant Field Values
-
YE_LIST_Y_BTB_PRIMARY
protected static final java.lang.String YE_LIST_Y_BTB_PRIMARY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createEditor
protected Editor createEditor(EditorContext<T> context, java.lang.String editorType)
Creates single editor cell according to theeditorType.- Parameters:
editorType- the type of the serializable Editor element- Returns:
- a serializable Editor to display
-
selectionNotEmpty
protected boolean selectionNotEmpty(org.zkoss.zul.Listbox listbox)
-
createDeleteButton
protected org.zkoss.zul.Button createDeleteButton(org.zkoss.zul.Listbox listbox, EditorContext<T> context)Creates button for removing selected entry.- Parameters:
context- to get some properties from
-
createAddButton
protected org.zkoss.zul.Button createAddButton(org.zkoss.zul.Listbox listbox, EditorContext<T> context)Creates button for adding new entry.- Parameters:
context- to get some properties from
-
createAddPopup
protected abstract org.zkoss.zul.Popup createAddPopup(org.zkoss.zul.Listbox listbox, EditorListener<T> listener, EditorContext<T> context)
-
getPageSize
protected int getPageSize(EditorContext<T> context)
-
configurePaging
protected void configurePaging(org.zkoss.zul.Listbox editorView, EditorContext<T> context)Configure the innerPagingobject of the list editor.- Parameters:
editorView- The editor to create paging for.context- defines editor's environment
-
-