public abstract class SelectLayoutChip extends AbstractAttributeEditorChip
| Modifier and Type | Field and Description |
|---|---|
static String |
HIDE_NULL |
protected String |
noSelectionKey |
static String |
SET_VALUE |
protected 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,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract 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. |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getNoSelectionText() |
int |
getSize() |
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(Map events)
Handles all incoming requests for this chip.
|
void |
setHideNull(boolean hideNull) |
void |
setLocalized(boolean value) |
void |
setNoSelectionKey(String key) |
void |
setParameters(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 String |
toString(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 String SET_VALUE
public static final String HIDE_NULL
protected List theValues
protected 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, Object value)
public void processEvents(Map events)
Chipprotected abstract List getAllValues()
public void setValue(int pos)
public 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 String toString(Object value)
public String getStringValue(int pos)
public int getCount()
public boolean isSelected(int pos)
public void setNoSelectionKey(String key)
public String getNoSelectionText()
public int getHeight()
AbstractAttributeEditorChip.getHeight() to return a different height than the default editor
height.getHeight in class AbstractAttributeEditorChippublic void setParameters(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.