public interface IUISelectionComp extends IUIComp
IMessageBox.Icon
IVSComponentState.State
Modifier and Type | Field and Description |
---|---|
static int |
SELECTION_TYPE_MULTIPLE
Selection type: MULTIPLE.
|
static int |
SELECTION_TYPE_NONE
Selection type: NONE.
|
static int |
SELECTION_TYPE_SINGLE
Selection type: SINGLE.
|
ERROR, INFORMATION, NONE, REMOTE_FOCUS_EVENT, WARNING
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
ICON_ERROR, ICON_INFORMATION, ICON_MAP, ICON_NONE, ICON_QUESTION, ICON_WARNING
Modifier and Type | Method and Description |
---|---|
default boolean |
addSelectionListener(IUISelectionListener listener)
Adds a selection listener.
|
Method |
getOnUISelectionMethod()
Returns the method to use for onUISelection notifications that is attached to this selection component.
|
IUISelection |
getSelection()
Gets the current selection of the component.
|
GenericListener<IUISelectionListener> |
getSelectionListenerHandler(boolean doCreate)
Returns the generic selection listener.
|
Atom |
getSelectionPropAtom()
Returns the selection property atom for verification of selection changes.
|
int |
getSelectionType()
Gets the selection type of the component.
|
boolean |
isSelected()
Returns the selection of state of the component.
|
default boolean |
isSelectionBooleanBased()
Returns if the selection component supports boolean based selection.
|
default boolean |
isSelectionCellBased()
Returns if the selection component supports is cell based.
|
default boolean |
isSelectionIndexBased()
Returns if the selection component supports index-based selection.
|
default boolean |
isSelectionTriStateBased()
Returns if the selection component supports tri-state based selection for e.g.
|
default boolean |
removeSelectionListener(IUISelectionListener listener)
Removes a selection listener.
|
default String |
setSelection(IUISelection selection)
Sets the selection.
|
canAcceptUIContainerFocus, disconnectVSField, getComponentID, getComponentMappings, getDeviceType, getErrorMessage, getErrorMessage, getFirstUIComponent, getFirstUIComponentNull, getFixHeight, getFixWidth, getLayout, getLayoutMgr, getPanelUIComponent, getPanelUIComponentNull, getUIRef, getValue, getValue, getVirtualSpace, getVSField, isMobile, isRTL, isVSFieldDisconnected, reconnectVSField, setComponentToVSField, setErrorMessage, setErrorMessage, setUIContainerFocus, setVSFieldMessageToComponent, setVSFieldToComponent
clearErrorMessage, getBadge, getKStringText, getLayoutMgr, getMessage, getMessageText, getStyles, getText, getTooltip, getTooltipText, getUIPanel, getUIParent, isEnabled, isReadOnly, isVisible, messageBox, requestFocus, requestFocus, requestFocusEx, requestFocusEx, setBadge, setBadge, setEnabled, setErrorMessage, setErrorMessage, setHTMLText, setLayoutMgr, setMessage, setMessage, setReadOnly, setText, setText, setTooltip, setTooltip, setVisible
addProp, addProp, addProp2, addProp2, canRequestFocus, canRequestFocus, canRequestFocus, containsProp, containsProp, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, enablePropCommunication, enablePropHashMap, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsError, getExtendsName, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropCnr, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getString, getString, getString, getString, hasFocus, initializeExtendsFramework, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsRoot, isPropAddRemoveAllowed, isPropExtended, isSibling, removeAllProps, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, requestFocus, requestFocusEx, setBool, setBool, setBool, setBool, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, usePropHashMap, usesPropIndex, validateClassInstances
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getParent, getParent, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getReferences, getRelativePropName, getRootParent, getTreeLock, getValueClasses, getVSReference, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, list, list, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPropTreeInitialized, onRemoteEvent, removePropError, removePropListener, renameProp, resolveRuntimeReferences, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toElementString, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, validatePropType, validatePropValue, verify, verifyHasPropertyItem, warning, warning, warning
messageBox, messageBox
getBestVSFieldValueType, onBroken, onResolved, onStateChanged, onValueChanged
onParentStateChanged
forbiddenGetCustomDataMap, getCustomData, putCustomData, putCustomDataIfAbsent
static final int SELECTION_TYPE_NONE
static final int SELECTION_TYPE_SINGLE
This value is returned by radio buttons, check boxes, comboboxes, tab containers, and single-selection grids.
static final int SELECTION_TYPE_MULTIPLE
This value is returned from e.g. the grid when in multiple, extended or toggle selection modes.
Atom getSelectionPropAtom()
This method is used by the framework in UIComp to fire selection events when the property value changes.
GenericListener<IUISelectionListener> getSelectionListenerHandler(boolean doCreate)
doCreate
- Create the listener handler if it doesn't exist, false not to.default boolean addSelectionListener(IUISelectionListener listener)
listener
- The listener.NullPointerException
- If listener is null.default boolean removeSelectionListener(IUISelectionListener listener)
listener
- The listener.NullPointerException
- If listener is null.int getSelectionType()
boolean isSelected()
For a multiple-selection capable component, this indicates any selection, i.e. true is returned as soon as at least one element is selected, false for none.
The checkbox for example has two "selected states": checked and third state: in this case, true is returned for the third state as well as the checked state.
default boolean isSelectionBooleanBased()
default boolean isSelectionTriStateBased()
default boolean isSelectionIndexBased()
default boolean isSelectionCellBased()
IUISelection getSelection()
default String setSelection(IUISelection selection)
selection
- The selection.Method getOnUISelectionMethod()
@OnUISelection(name = "some/property")
public void onUISelection(UISelectionEvent event)
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.