public abstract class SelectLayoutChip extends AbstractAttributeEditorChip
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HIDE_NULL |
protected java.lang.String |
noSelectionKey |
static java.lang.String |
SET_VALUE |
protected java.util.List |
theValues |
CUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
SelectLayoutChip(DisplayState displayState,
Chip parent)
Constructor for creating a new select attribute chip.
|
SelectLayoutChip(DisplayState displayState,
Chip parent,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.List |
getAllValues()
When implementing this method, make sure that you use reasonable local caching for your values.
|
int |
getCount() |
int |
getHeight()
Overrides
AbstractAttributeEditorChip.getHeight() to return a different height than the default editor
height. |
java.lang.String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
java.lang.String |
getNoSelectionText() |
int |
getSize() |
java.lang.String |
getStringValue(int pos) |
boolean |
isAjaxUpdatable()
Returns true if this editor chip is ajax updatable.
|
boolean |
isHideNull() |
boolean |
isLocalized() |
boolean |
isSelected(int pos) |
void |
processEvents(java.util.Map events)
Handles all incoming requests for this chip.
|
void |
setHideNull(boolean hideNull) |
void |
setLocalized(boolean value) |
void |
setNoSelectionKey(java.lang.String key) |
void |
setParameters(java.util.Map parameters)
Sets the parameters which where provided by the xml configuration.
|
void |
setSize(int size) |
void |
setSubmitForm(boolean submitForm) |
void |
setValue(int pos) |
boolean |
submitForm() |
protected abstract java.lang.String |
toString(java.lang.Object value)
Returns the given value as String.
|
addAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, convertValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getEditorType, getFieldID, getInitialValue, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getProposedUniqueName, getValue, getWidth, isChanged, isEditable, isInitialized, isOptional, notifyAttributeValueChangeListeners, removeAttributeValueChangeListener, setAttributeDescriptor, setEditable, setError, setFieldID, setHeight, setInitialValue, setMaxLength, setOptional, setValidValue, setValue, setWidth, 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, translateFormFieldToEventValuepublic static final java.lang.String SET_VALUE
public static final java.lang.String HIDE_NULL
protected java.util.List theValues
protected java.lang.String noSelectionKey
public SelectLayoutChip(DisplayState displayState, Chip parent)
displayState - The current displaystate this chip belongs to.parent - The parent chip.public SelectLayoutChip(DisplayState displayState, Chip parent, java.lang.Object value)
public void processEvents(java.util.Map events)
Chipprotected abstract java.util.List getAllValues()
public void setValue(int pos)
public java.lang.String getJSPURI()
Chippublic void setSubmitForm(boolean submitForm)
public boolean submitForm()
public void setSize(int size)
public int getSize()
public void setLocalized(boolean value)
public boolean isLocalized()
protected abstract java.lang.String toString(java.lang.Object value)
public java.lang.String getStringValue(int pos)
public int getCount()
public boolean isSelected(int pos)
public void setNoSelectionKey(java.lang.String key)
public java.lang.String getNoSelectionText()
public int getHeight()
AbstractAttributeEditorChip.getHeight() to return a different height than the default editor
height.getHeight in class AbstractAttributeEditorChippublic void setParameters(java.util.Map parameters)
AbstractAttributeEditorChipsetParameters in class AbstractAttributeEditorChipparameters - the parameters which where provided by the xml configuration.public boolean isHideNull()
public void setHideNull(boolean hideNull)
public boolean isAjaxUpdatable()
AbstractAttributeEditorChipLocalizableAttributeChip to indicate
that the editorchip's jsp only uses the usual form input elements and no other special functionality to update its
values (like the wysiwyg editor which uses the 'onsubmit' handler to update its value).isAjaxUpdatable in class AbstractAttributeEditorChipCopyright © 2017 SAP SE. All Rights Reserved.