public class GenericItemChip extends ItemChip
| Modifier and Type | Class and Description |
|---|---|
protected class |
GenericItemChip.GenericItemEditorContext
The editor context implementation for non-wizard items.
|
protected class |
GenericItemChip.GenericWizardEditorContext
The editor context implementation for wizard items.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OPEN_ORGANIZER |
static java.lang.String |
REFRESH |
static java.lang.String |
VALIDATE |
CLOSE, COPY, DELETE_AND_CLOSE, editorNode, REMOVE_FAILEDACCESS, SAVE, SAVE_AND_CLOSE, theItemCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
GenericItemChip(EditorNode node,
DisplayState displayState,
Chip parent,
Item item,
boolean asWizard) |
GenericItemChip(EditorNode node,
DisplayState displayState,
ComposedType type,
Item item,
boolean asWizard)
Creates a new item editor chip.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addItemActionToToolbar(ItemActionChip actionChip) |
protected void |
addWizardButton(java.lang.String buttonName,
AbstractToolbarActionChip actionChip) |
protected void |
clearAllErrors() |
boolean |
computeChanges() |
protected void |
configureItemToolbar(AbstractToolbarChip toolBar,
DisplayState displayState) |
protected void |
configureSingletonToolbar(AbstractToolbarChip toolBar,
DisplayState displayState) |
protected void |
configureWizardToolbar(AbstractToolbarChip toolBar,
DisplayState displayState) |
protected AbstractEditorMenuChip |
createEditor() |
AbstractToolbarChip |
createFooter()
Creates footer for wizard items.
|
AbstractToolbarChip |
createToolbar() |
java.util.List |
getActionChips() |
protected java.util.Map |
getAllAttributeValues() |
AttributeChip |
getAttributeChip(java.lang.String qualifier) |
protected java.util.Map |
getAttributeChips() |
protected java.util.Map |
getAttributeValues() |
protected java.util.Collection |
getChangeIndicatorChips()
Collects all children of this chip which are
ChangeIndicators and returns them.. |
java.lang.String |
getCloseErrorMessage() |
ItemEditorContext |
getEditorContext() |
protected ProgressToolbarActionChip |
getProgressBar() |
protected RefreshIntervalToolbarActionChip |
getRefreshChip() |
SpecialEditor |
getSpecialEditor(java.lang.String qualifier) |
protected java.util.Map |
getSpecialSaveChips()
Collects all children of this chip which are
SpecialSaveChips and
returns them in a Map [attributequalifier -> chip]. |
WizardBusinessItem |
getWizardBusinessItem() |
protected AbstractToolbarActionChip |
getWizardButton(java.lang.String buttonName) |
protected java.util.Map |
getWizardButtons() |
void |
initialize()
Superclass method override to initialize wizard business item after this item chip has been initialized.
|
protected boolean |
isShownExternally() |
boolean |
isSingleton() |
boolean |
isWizard() |
void |
openOrganizer() |
void |
performSave() |
protected void |
performSave(java.util.Map currentValues,
java.util.Map initialValues,
java.util.Map specialEditors) |
void |
refresh()
Superclass method override to call
WizardBusinessItem.pollStatus(WizardEditorContext). |
void |
registerActionChip(ItemActionChip actionChip) |
void |
reload() |
protected void |
reload(java.util.Collection attributeNames) |
protected void |
reload(java.lang.String attributeName) |
protected void |
setProgressBar(ProgressToolbarActionChip chip) |
void |
showEditor()
Shows the editor for the item.
|
void |
showEditor(boolean calledFromMainWindow) |
void |
validateAndSave(java.lang.String fromTab,
java.lang.String toTab) |
checkValid, close, copyItemToClipboard, getChildren, getEditor, getEditorNode, getEssentials, getFooter, getItem, getItemType, getItemTypeCode, getJSPURI, getLockedAttributes, getModalAttribute, getModalLanguage, getModalOpener, getPresetAttributeName, getToolbar, hasEssentials, hasFooter, isLocked, isPartOf, processEvents, readInitialValues, save, setEssentials, setItem, setItemType, setLockedAttributes, setModalReference, setModalReference, setPartOf, setPresetAttributeName, setToolbaraddEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueName, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, dispose, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getID, getJaloSession, getMenuEntries, getParent, getUniqueName, goFullScreen, isValid, leaveFullScreen, registerUniqueName, removeEventListener, render, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final java.lang.String REFRESH
public static final java.lang.String OPEN_ORGANIZER
public static final java.lang.String VALIDATE
public GenericItemChip(EditorNode node, DisplayState displayState, ComposedType type, Item item, boolean asWizard)
public GenericItemChip(EditorNode node, DisplayState displayState, Chip parent, Item item, boolean asWizard)
public void initialize()
initialize in class ItemChipprotected AbstractEditorMenuChip createEditor()
createEditor in class ItemChippublic boolean isWizard()
public WizardBusinessItem getWizardBusinessItem()
public boolean isSingleton()
public ItemEditorContext getEditorContext()
getEditorContext in class ItemChippublic java.util.List getActionChips()
public void registerActionChip(ItemActionChip actionChip)
protected void addItemActionToToolbar(ItemActionChip actionChip)
protected void configureSingletonToolbar(AbstractToolbarChip toolBar, DisplayState displayState)
protected void configureItemToolbar(AbstractToolbarChip toolBar, DisplayState displayState)
protected void configureWizardToolbar(AbstractToolbarChip toolBar, DisplayState displayState)
protected RefreshIntervalToolbarActionChip getRefreshChip()
protected boolean isShownExternally()
public AbstractToolbarChip createFooter()
createFooter in class ItemChippublic AbstractToolbarChip createToolbar()
createToolbar in interface ToolbarProvidercreateToolbar in class ItemChippublic void showEditor()
ItemChipItemChip.createToolbar(), ItemChip.createEditor(), {link #setEssentials(SpecialSaveChip)}. Here the window to get
via (@link #getWindow()} has to be configured and opened too.showEditor in class ItemChippublic void showEditor(boolean calledFromMainWindow)
protected java.util.Map getAttributeValues()
throws JaloBusinessException
de.hybris.platform.util.collections.CaseInsensitiveMap or other
caseinsensitive implementations.JaloBusinessExceptionprotected java.util.Map getAllAttributeValues()
throws JaloBusinessException
de.hybris.platform.util.collections.CaseInsensitiveMap or other
caseinsensitive implementations.JaloBusinessExceptionpublic void performSave()
performSave in class ItemChipprotected void performSave(java.util.Map currentValues,
java.util.Map initialValues,
java.util.Map specialEditors)
protected java.util.Map getSpecialSaveChips()
SpecialSaveChips and
returns them in a Map [attributequalifier -> chip].protected java.util.Collection getChangeIndicatorChips()
ChangeIndicators and returns them..public SpecialEditor getSpecialEditor(java.lang.String qualifier)
protected java.util.Map getAttributeChips()
public AttributeChip getAttributeChip(java.lang.String qualifier)
public void validateAndSave(java.lang.String fromTab,
java.lang.String toTab)
public void refresh()
WizardBusinessItem.pollStatus(WizardEditorContext).refresh in class AbstractChipprotected void reload(java.lang.String attributeName)
protected void reload(java.util.Collection attributeNames)
protected void clearAllErrors()
public void openOrganizer()
protected ProgressToolbarActionChip getProgressBar()
protected void setProgressBar(ProgressToolbarActionChip chip)
protected java.util.Map getWizardButtons()
protected void addWizardButton(java.lang.String buttonName,
AbstractToolbarActionChip actionChip)
protected AbstractToolbarActionChip getWizardButton(java.lang.String buttonName)
public java.lang.String getCloseErrorMessage()
public boolean computeChanges()
Copyright © 2017 SAP SE. All Rights Reserved.