public class UIMultiValueEditor extends UIInput
Modifier and Type | Class and Description |
---|---|
static class |
UIMultiValueEditor.MultiValueEditorEvent
Class representing an action relevant to the ChildAssociationEditor component.
|
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_ADD |
static int |
ACTION_NONE |
static int |
ACTION_REMOVE |
static int |
ACTION_SELECT |
static String |
ACTION_SEPARATOR |
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
Constructor and Description |
---|
UIMultiValueEditor()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
broadcast(FacesEvent event) |
void |
encodeChildren(FacesContext context) |
boolean |
getAddingNewItem()
Determines whether the component is adding a new item
|
String |
getFamily() |
Object |
getLastItemAdded()
Returns the last item added by the user
|
String |
getNoSelectedItemsMsg()
Returns the message to display when no items have been selected, if one hasn't been
set it defaults to the message in the bundle under key 'no_selected_items'.
|
boolean |
getReadOnly()
Determines whether the component is in read only mode
|
boolean |
getRendersChildren() |
String |
getSelectedItemsMsg()
Returns the message to display for the selected items, if one hasn't been
set it defaults to the message in the bundle under key 'selected_items'.
|
String |
getSelectItemMsg()
Returns the message to display for select an item, if one hasn't been
set it defaults to the message in the bundle under key 'select_an_item'.
|
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setLastItemAdded(Object lastItemAdded)
Sets the last item to be added by the user
|
void |
setNoSelectedItemsMsg(String noSelectedItemsMsg)
Sets the no selected items message to display in the UI
|
void |
setReadOnly(boolean readOnly)
Sets the read only mode for the component
|
void |
setSelectedItemsMsg(String selectedItemsMsg)
Sets the selected items message to display in the UI
|
void |
setSelectItemMsg(String selectItemMsg)
Sets the select an item message to display in the UI
|
addValidator, addValueChangeListener, compareValues, decode, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate, validateValue
getConverter, getLocalValue, setConverter
addFacesListener, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConverter, getLocalValue, setConverter
public static final String ACTION_SEPARATOR
public static final int ACTION_NONE
public static final int ACTION_REMOVE
public static final int ACTION_SELECT
public static final int ACTION_ADD
public String getFamily()
getFamily
in class UIInput
UIComponent.getFamily()
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIInput
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIInput
StateHolder.saveState(javax.faces.context.FacesContext)
public Object getLastItemAdded()
public void setLastItemAdded(Object lastItemAdded)
lastItemAdded
- The last item addedpublic String getSelectedItemsMsg()
public void setSelectedItemsMsg(String selectedItemsMsg)
selectedItemsMsg
- The messagepublic String getNoSelectedItemsMsg()
public void setNoSelectedItemsMsg(String noSelectedItemsMsg)
noSelectedItemsMsg
- The messagepublic String getSelectItemMsg()
public void setSelectItemMsg(String selectItemMsg)
selectItemMsg
- The messagepublic boolean getReadOnly()
public void setReadOnly(boolean readOnly)
readOnly
- true to set read only modepublic boolean getAddingNewItem()
public void broadcast(FacesEvent event) throws AbortProcessingException
broadcast
in class UIInput
AbortProcessingException
UIComponent.broadcast(javax.faces.event.FacesEvent)
public void encodeChildren(FacesContext context) throws IOException
encodeChildren
in class UIComponentBase
IOException
public boolean getRendersChildren()
getRendersChildren
in class UIComponentBase
UIComponent.getRendersChildren()
Copyright © 2005–2017 Alfresco Software. All rights reserved.