public class MapTypeEditorChip extends AbstractAttributeEditorChip implements SpecialSaveChip
CUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
MapTypeEditorChip(DisplayState displayState,
Chip parent,
MapType type) |
MapTypeEditorChip(DisplayState displayState,
Chip parent,
MapType type,
Map value) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkValid()
Gives the chip the possibility to check if its objects are still valid.
|
protected GenericMapTypeListChip |
createListChip()
Is called by
initialize(MapType) to create the internally used GenericMapTypeListChip. |
static String |
getEditorType() |
Object |
getInitialValue() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
GenericMapTypeListChip |
getListChip() |
int |
getListEntryCount() |
protected MapType |
getType() |
Object |
getValue()
Returns the content of this chip as a map type.
|
protected void |
initialize(MapType mapType)
Initializes the editor.
|
boolean |
isAllSelected() |
boolean |
isEmpty() |
boolean |
isMultipleSelectionAllowed() |
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
void |
save() |
void |
setAdd(boolean canAdd) |
void |
setKeyName(String name) |
void |
setKeyWidth(int width) |
protected void |
setListChip(GenericMapTypeListChip listChip) |
void |
setRemove(boolean canRemove) |
void |
setValue(Object object)
Sets the content of this chip.
|
void |
setValueName(String name) |
void |
setWidth(int width) |
addAttributeValueChangeListener, clearError, containsValidValue, convertAndSetValue, convertValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getFieldID, getHeight, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getProposedUniqueName, getWidth, isAjaxUpdatable, isChanged, isEditable, isInitialized, isOptional, notifyAttributeValueChangeListeners, removeAttributeValueChangeListener, setAttributeDescriptor, setEditable, setError, setFieldID, setHeight, setInitialValue, setMaxLength, setOptional, setParameters, setValidValue, valuesAreDifferentaddEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, 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 MapTypeEditorChip(DisplayState displayState, Chip parent, MapType type, Map value)
public MapTypeEditorChip(DisplayState displayState, Chip parent, MapType type)
protected void initialize(MapType mapType)
createListChip to create the internal GenericMapTypeListChip instance
GenericMapTypeListChip to the value of getWidth()
mapType - the MapType the editor will displayprotected GenericMapTypeListChip createListChip()
initialize(MapType) to create the internally used GenericMapTypeListChip.
Should be overriden in subclasses, if you want to use an subclass of GenericMapTypeListChip.GenericMapTypeListChip used by this editorprotected MapType getType()
public void checkValid()
AbstractChipcheckValid in interface ChipcheckValid in class AbstractAttributeEditorChippublic void processEvents(Map events)
ChipprocessEvents in interface Chippublic String getJSPURI()
Chippublic GenericMapTypeListChip getListChip()
protected void setListChip(GenericMapTypeListChip listChip)
public void setWidth(int width)
setWidth in class AbstractAttributeEditorChippublic Object getValue()
getValue in class AbstractAttributeEditorChippublic void setValue(Object object)
setValue in class AbstractAttributeEditorChippublic boolean isEmpty()
public boolean isAllSelected()
public int getListEntryCount()
public boolean isMultipleSelectionAllowed()
public static String getEditorType()
public Object getInitialValue()
getInitialValue in class AbstractAttributeEditorChippublic void setAdd(boolean canAdd)
public void setRemove(boolean canRemove)
public void setKeyWidth(int width)
public void setKeyName(String name)
public void setValueName(String name)
public void save()
save in interface SpecialSaveChipCopyright © 2017 SAP SE. All Rights Reserved.