Package com.iizix.prop.ui.selection
Interface IUISelectionComp
- All Superinterfaces:
- IComponent,- ICustomDataProvider,- IGProp<GProp<?>[]>,- IMessageBox,- IPropCnr,- IUIComp,- IVSComponentListener,- IVSComponentState,- IVSFieldListener
- All Known Subinterfaces:
- IUIAnimatedSingleIndexedSelectionComp,- IUIBooleanSelectionComp,- IUICellSelectionComp,- IUICheck2Component,- IUICheckComponent,- IUIIndexedSelectionComp,- IUIRadioComponent,- IUISingleIndexedSelectionComp,- IUITriStateSelectionComp
- All Known Implementing Classes:
- AbstractContentUIContainer,- CalendarEvent,- ECalendarEvent,- EMapMarkerProp,- EMapMarkers,- EMLGroup,- EMLItemProp,- EMUISwitch,- EUIAccordion,- EUICheckBox,- EUICheckedMenuItem,- EUIComboBox,- EUIRadioButton,- EUIRadioMenuItem,- EUISpinner,- EUISwapContainer,- EUITabContainer,- EUITable,- EUITitlePane,- MapMarkerProp,- MapMarkers,- MLGroup,- MLItemProp,- MUISwitch,- UIAbstractListChoice,- UIAccordion,- UICheckBox,- UICheckedMenuItem,- UIComboBox,- UIRadioButton,- UIRadioMenuItem,- UISpinner,- UISwapContainer,- UITabContainer,- UITable,- UITitlePane
Interface implements by components that process selection and emits selection events.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from interface com.iizix.gyro.IMessageBox- IMessageBox.Icon- Nested classes/interfaces inherited from interface com.iizix.prop.vs.IVSComponentState- IVSComponentState.State
- Field SummaryFieldsModifier and TypeFieldDescription- static final intSelection type: MULTIPLE.- static final intSelection type: NONE.- static final intSelection type: SINGLE.- Fields inherited from interface com.iizix.prop.IGProp- EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_INCLUDE_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE- Fields inherited from interface com.iizix.gyro.IMessageBox- ICON_ERROR, ICON_INFORMATION, ICON_MAP, ICON_NONE, ICON_QUESTION, ICON_WARNING- Fields inherited from interface com.iizix.prop.ui.IUIComp- ERROR, INFORMATION, NONE, REMOTE_FOCUS_EVENT, WARNING
- Method SummaryModifier and TypeMethodDescription- default boolean- addSelectionListener- (IUISelectionListener listener) Adds a selection listener.Returns the method to use for onUISelection notifications that is attached to this selection component.Gets the current selection of the component.- getSelectionListenerHandler- (boolean doCreate) Returns the generic selection listener.Returns the selection property atom for verification of selection changes.- intGets the selection type of the component.- booleanReturns the selection of state of the component.- default booleanReturns if the selection component supports boolean based selection.- default booleanReturns if the selection component supports is cell based.- default booleanReturns if the selection component supports index-based selection.- default booleanReturns 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.- Methods inherited from interface com.iizix.IComponent- 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- Methods inherited from interface com.iizix.prop.ICustomDataProvider- forbiddenGetCustomDataMap, getCustomData, putCustomData, putCustomDataIfAbsent- Methods inherited from interface com.iizix.prop.IGProp- addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, getValueClasses, getVSReference, hasChanged, hasCircularReferencesError, 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, isSibling, 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, warning, warning, warning- Methods inherited from interface com.iizix.gyro.IMessageBox- messageBox, messageBox, messageBox- Methods inherited from interface com.iizix.prop.IPropCnr- 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, 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, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, 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- Methods inherited from interface com.iizix.prop.ui.IUIComp- canAcceptUIContainerFocus, disconnectVSField, getComponentID, getComponentMappings, getContainerFirstUIComponent, getContainerFirstUIComponentNull, getCSSClassNames, getDeviceType, getErrorMessage, getErrorMessage, getFirstUIComponent, getFirstUIComponentNull, getFixHeight, getFixWidth, getLayout, getLayoutMgr, getPanelUIComponent, getPanelUIComponentNull, getUIRef, getValue, getValue, getVirtualSpace, getVSField, isMobile, isRTL, isVSFieldDisconnected, reconnectVSField, setComponentToVSField, setCSSClassNames, setCSSClassNames2, setErrorMessage, setErrorMessage, setUIContainerFocus, setVSFieldMessageToComponent, setVSFieldToComponent- Methods inherited from interface com.iizix.prop.vs.IVSComponentListener- onParentStateChanged- Methods inherited from interface com.iizix.prop.vs.IVSFieldListener- getBestVSFieldValueType, onBroken, onResolved, onStateChanged, onValueChanged
- Field Details- SELECTION_TYPE_NONEstatic final int SELECTION_TYPE_NONESelection type: NONE.- See Also:
 
- SELECTION_TYPE_SINGLEstatic final int SELECTION_TYPE_SINGLESelection type: SINGLE.- This value is returned by radio buttons, check boxes, comboboxes, tab containers, and single-selection grids. - See Also:
 
- SELECTION_TYPE_MULTIPLEstatic final int SELECTION_TYPE_MULTIPLESelection type: MULTIPLE.- This value is returned from e.g. the grid when in multiple, extended or toggle selection modes. - See Also:
 
 
- Method Details- getSelectionPropAtomAtom getSelectionPropAtom()Returns the selection property atom for verification of selection changes.- This method is used by the framework in UIComp to fire selection events when the property value changes. - Returns:
- The atom of the selection property, or null if a selection property is not used.
 
- getSelectionListenerHandlerReturns the generic selection listener.- Parameters:
- doCreate- Create the listener handler if it doesn't exist, false not to.
- Returns:
- The selection listener handler, or null if not created.
 
- addSelectionListenerAdds a selection listener.- Parameters:
- listener- The listener.
- Returns:
- true for success, false if the listener is already added.
- Throws:
- NullPointerException- If listener is null.
 
- removeSelectionListenerRemoves a selection listener.- Parameters:
- listener- The listener.
- Returns:
- true for success, false if the listener has not been added before.
- Throws:
- NullPointerException- If listener is null.
 
- getSelectionTypeint getSelectionType()Gets the selection type of the component.- Returns:
- A value indicating the selection capability as the SELECTION_TYPE_* values define.
 
- isSelectedboolean isSelected()Returns the selection of state of the component.- 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. - Returns:
- true if the component is selected, false otherwise.
 
- isSelectionBooleanBaseddefault boolean isSelectionBooleanBased()Returns if the selection component supports boolean based selection.- Returns:
- true if the selection can be retrieved or set using indexed based selections.
 
- isSelectionTriStateBaseddefault boolean isSelectionTriStateBased()Returns if the selection component supports tri-state based selection for e.g. checkboxes.- Returns:
- true if the selection can be retrieved or set using indexed based selections.
 
- isSelectionIndexBaseddefault boolean isSelectionIndexBased()Returns if the selection component supports index-based selection.- Returns:
- true if the selection can be retrieved or set using indexed based selections.
 
- isSelectionCellBaseddefault boolean isSelectionCellBased()Returns if the selection component supports is cell based.- Returns:
- true if the selection can be retrieved or set using cell based selections.
 
- getSelectionIUISelection getSelection()Gets the current selection of the component.- Returns:
- The current selection of the component.
 
- setSelectionSets the selection.- Parameters:
- selection- The selection.
- Returns:
- null if selection is set successfully, otherwise the reason why the selection failed to be set, e.g. "Unsupported selection base" if the selection is indexed for a checkbox that only supports tri-state based selections.
 
- getOnUISelectionMethodMethod getOnUISelectionMethod()Returns the method to use for onUISelection notifications that is attached to this selection component. The method name is not important, but must have the annotation and signature:- @OnUISelection(name = "some/property")
 public void onUISelection(UISelectionEvent event)- Returns:
- The method, or null if none is registered.