public class XdevTwinColSelect<T> extends AbstractBeanTwinColSelect<T> implements XdevField
AbstractSelect.AbstractSelectTargetDetails, AbstractSelect.AcceptItem, AbstractSelect.DefaultNewItemHandler, AbstractSelect.Filtering, AbstractSelect.ItemCaptionMode, AbstractSelect.ItemDescriptionGenerator, AbstractSelect.NewItemHandler, AbstractSelect.TargetItemIs, AbstractSelect.VerticalLocationIs
AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEvent
ExtendableObject.Extensions
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
Sizeable.Unit
Container.Editor, Container.Filter, Container.Filterable, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.SimpleFilterable, Container.Sortable, Container.Viewer
Field.ValueChangeEvent
Buffered.SourceException
Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer
ITEM_CAPTION_MODE_EXPLICIT, ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID, ITEM_CAPTION_MODE_ICON_ONLY, ITEM_CAPTION_MODE_ID, ITEM_CAPTION_MODE_INDEX, ITEM_CAPTION_MODE_ITEM, ITEM_CAPTION_MODE_PROPERTY
PERSIST_VALUE_DEFAULT
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
Constructor and Description |
---|
XdevTwinColSelect() |
XdevTwinColSelect(String caption) |
Modifier and Type | Method and Description |
---|---|
<E> E |
addExtension(Class<? super E> type,
E extension)
Adds an extension to this component.
|
<E> E |
getExtension(Class<E> type)
Gets the registered extension for the specified type.
|
String |
getItemCaption(Object itemId) |
String |
getItemCaptionValue()
Returns the user defined caption value for the items to display
|
boolean |
isItemCaptionFromAnnotation() |
boolean |
isPersistValue() |
void |
setContainerDataSource(Class<T> beanClass,
boolean autoQueryData,
KeyValueType<?,?>... nestedProperties) |
void |
setContainerDataSource(Class<T> beanClass,
Collection<T> data,
KeyValueType<?,?>... nestedProperties) |
void |
setContainerDataSource(Class<T> beanClass,
KeyValueType<?,?>... nestedProperties) |
void |
setItemCaptionFromAnnotation(boolean itemCaptionFromAnnotation)
Sets if the item's caption should be derived from its
Caption
annotation. |
void |
setItemCaptionValue(String itemCaptionValue)
Sets a user defined caption value for the items to display.
|
void |
setMultiSelect(boolean multiSelect) |
void |
setPersistValue(boolean persistValue) |
getContainerDataSource, getItem, getSelectedItem, getSelectedItems, isAutoQueryData, setAutoQueryData, setContainerDataSource
getColumns, getLeftColumnCaption, getRightColumnCaption, getRows, paintContent, setColumns, setLeftColumnCaption, setRightColumnCaption, setRows
addContainerProperty, addItem, addItem, addItems, addItems, addItemSetChangeListener, addListener, addListener, addPropertySetChangeListener, attach, changeVariables, containerItemSetChange, containerPropertySetChange, containsId, detach, getContainerProperty, getContainerPropertyIds, getItemCaptionMode, getItemCaptionPropertyId, getItemIcon, getItemIconPropertyId, getItemIds, getListeners, getNewItemHandler, getNullSelectionItemId, getType, getType, getValue, getVisibleItemIds, isEmpty, isMultiSelect, isNewItemsAllowed, isNullSelectionAllowed, isSelected, readDesign, removeAllItems, removeContainerProperty, removeItem, removeItemSetChangeListener, removeListener, removeListener, removePropertySetChangeListener, sanitizeSelection, select, setItemCaption, setItemCaptionMode, setItemCaptionPropertyId, setItemIcon, setItemIconPropertyId, setNewItemHandler, setNewItemsAllowed, setNullSelectionAllowed, setNullSelectionItemId, setValue, size, unselect, writeDesign
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, discard, focus, getConversionError, getConvertedValue, getConverter, getErrorMessage, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, isBuffered, isImmediate, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, toString, validate, valueChange
addContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, getCaption, getComponentError, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addListener, addListener, encodeState, equals, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, hashCode, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
isEnabled, isReadOnly, isVisible, setEnabled, setReadOnly, setVisible
addValueChangeListener, select
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
markAsDirty
isEnabled, isImmediate
addShortcutListener, removeShortcutListener
public XdevTwinColSelect()
public XdevTwinColSelect(String caption)
caption
- public <E> E addExtension(Class<? super E> type, E extension)
addExtension
in interface ExtendableObject
type
- the type to register the extension forextension
- the extensionnull
ExtendableObject.getExtension(Class)
public <E> E getExtension(Class<E> type)
getExtension
in interface ExtendableObject
type
- the type the extension was registered withnull
if none was added before for
this typeExtendableObject.addExtension(Class, Object)
public boolean isPersistValue()
isPersistValue
in interface XdevField
public void setPersistValue(boolean persistValue)
setPersistValue
in interface XdevField
@SafeVarargs public final void setContainerDataSource(Class<T> beanClass, boolean autoQueryData, KeyValueType<?,?>... nestedProperties)
setContainerDataSource
in interface BeanComponent<T>
@SafeVarargs public final void setContainerDataSource(Class<T> beanClass, KeyValueType<?,?>... nestedProperties)
setContainerDataSource
in interface BeanComponent<T>
@SafeVarargs public final void setContainerDataSource(Class<T> beanClass, Collection<T> data, KeyValueType<?,?>... nestedProperties)
setContainerDataSource
in interface BeanComponent<T>
public void setMultiSelect(boolean multiSelect)
setMultiSelect
in class AbstractSelect
public void setItemCaptionFromAnnotation(boolean itemCaptionFromAnnotation)
Caption
annotation.itemCaptionFromAnnotation
- the itemCaptionFromAnnotation to setCaptionResolver
public boolean isItemCaptionFromAnnotation()
Caption
annotationpublic void setItemCaptionValue(String itemCaptionValue)
itemCaptionValue
- the itemCaptionValue to setCaption
,
setItemCaptionFromAnnotation(boolean)
public String getItemCaptionValue()
public String getItemCaption(Object itemId)
getItemCaption
in class AbstractSelect