public abstract class ItemChip extends AbstractChip implements ComposedChip, ToolbarProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
CLOSE |
static String |
COPY |
static String |
DELETE_AND_CLOSE |
protected EditorNode |
editorNode |
static String |
REMOVE_FAILEDACCESS |
static String |
SAVE |
static String |
SAVE_AND_CLOSE |
protected Item |
theItem |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
ItemChip(EditorNode node,
DisplayState displayState,
Chip parent,
Item item) |
|
ItemChip(EditorNode node,
DisplayState displayState,
Item item) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkValid()
Gives the chip the possibility to check if its objects are still valid
|
void |
close() |
void |
copyItemToClipboard() |
protected abstract AbstractEditorMenuChip |
createEditor() |
AbstractToolbarChip |
createFooter() |
abstract AbstractToolbarChip |
createToolbar() |
List |
getChildren() |
AbstractEditorMenuChip |
getEditor() |
abstract ItemEditorContext |
getEditorContext() |
EditorNode |
getEditorNode() |
GenericEssentialsEditorChip |
getEssentials() |
AbstractToolbarChip |
getFooter() |
Item |
getItem() |
ComposedType |
getItemType()
In case of an ItemCreatorChip override this method and return the desired type of the new item.
|
String |
getItemTypeCode() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
Map |
getLockedAttributes() |
String |
getModalAttribute() |
Language |
getModalLanguage()
Returns the modal opener language, if one was set.
|
ItemChip |
getModalOpener() |
String |
getPresetAttributeName() |
AbstractToolbarChip |
getToolbar() |
boolean |
hasEssentials() |
boolean |
hasFooter() |
void |
initialize() |
boolean |
isLocked(String attributeQualifier) |
boolean |
isPartOf() |
abstract void |
performSave() |
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
protected void |
readInitialValues() |
void |
reload() |
void |
save() |
void |
setEssentials(GenericEssentialsEditorChip chip) |
protected void |
setItem(Item item) |
void |
setItemType(ComposedType itemType) |
void |
setLockedAttributes(Map attributes) |
void |
setModalReference(ItemChip openerItemChip,
String openerAttributeQualifier)
Sets the ItemChip which opened this creator and the attributequalifier of the item.
|
void |
setModalReference(ItemChip openerItemChip,
String openerAttributeQualifier,
Language openerLanguage)
Sets the ItemChip which opened this creator, the attributequalifier of the item and the language, if it is a
localized attribute.
|
void |
setPartOf(boolean partOf) |
void |
setPresetAttributeName(String presetAttributeName) |
void |
setToolbar(AbstractToolbarChip toolbarChip) |
abstract void |
showEditor()
Shows the editor for the item.
|
addEventListener, 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, refresh, 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 String CLOSE
public static final String SAVE
public static final String SAVE_AND_CLOSE
public static final String DELETE_AND_CLOSE
public static final String REMOVE_FAILEDACCESS
public static final String COPY
protected Item theItem
protected final EditorNode editorNode
public ItemChip(EditorNode node, DisplayState displayState, Item item)
protected ItemChip(EditorNode node, DisplayState displayState, Chip parent, Item item)
public abstract ItemEditorContext getEditorContext()
public Item getItem()
protected void setItem(Item item)
public ComposedType getItemType()
public String getItemTypeCode()
public void setItemType(ComposedType itemType)
public final AbstractToolbarChip getToolbar()
getToolbar in interface ToolbarProviderpublic final void setToolbar(AbstractToolbarChip toolbarChip)
public final AbstractToolbarChip getFooter()
public boolean hasFooter()
public final AbstractEditorMenuChip getEditor()
public final void setEssentials(GenericEssentialsEditorChip chip)
public final boolean hasEssentials()
public final GenericEssentialsEditorChip getEssentials()
public abstract void showEditor()
createToolbar(), createEditor(), {link #setEssentials(SpecialSaveChip)}. Here the window to get
via (@link #getWindow()} has to be configured and opened too.public abstract void performSave()
public final void save()
public void close()
public void copyItemToClipboard()
public void initialize()
public void reload()
protected void readInitialValues()
public List getChildren()
getChildren in interface ComposedChippublic String getJSPURI()
Chippublic void processEvents(Map events)
ChipprocessEvents in interface Chippublic void checkValid()
checkValid in interface ChipcheckValid in class AbstractChippublic void setLockedAttributes(Map attributes)
public Map getLockedAttributes()
public boolean isLocked(String attributeQualifier)
public void setPresetAttributeName(String presetAttributeName)
presetAttributeName - public String getPresetAttributeName()
public boolean isPartOf()
public void setPartOf(boolean partOf)
partOf - public ItemChip getModalOpener()
public Language getModalLanguage()
public void setModalReference(ItemChip openerItemChip, String openerAttributeQualifier)
openerItemChip - the ItemChip from which this create chip has been openedopenerAttributeQualifier - the qualifier of the attribute for which a new item is to be createdpublic void setModalReference(ItemChip openerItemChip, String openerAttributeQualifier, Language openerLanguage)
openerItemChip - the ItemChip from which this create chip has been openedopenerAttributeQualifier - the qualifier of the attribute for which a new item is to be createdopenerLanguage - the Language for which to create the item (if the attribute is localizable, may be null if not)public String getModalAttribute()
public AbstractToolbarChip createFooter()
public abstract AbstractToolbarChip createToolbar()
createToolbar in interface ToolbarProviderprotected abstract AbstractEditorMenuChip createEditor()
public EditorNode getEditorNode()
Copyright © 2017 SAP SE. All Rights Reserved.