Package com.iizix.prop.ui
Interface IUIRadioComponent
- All Superinterfaces:
- IComponent,- ICustomDataProvider,- IGProp<GProp<?>[]>,- IMessageBox,- IPropCnr,- IUIBooleanSelectionComp,- IUIComp,- IUIIndexedSelectionComp,- IUISelectionComp,- IUISingleIndexedSelectionComp,- IVSComponentListener,- IVSComponentState,- IVSFieldListener
- All Known Implementing Classes:
- EUIRadioButton,- EUIRadioMenuItem,- UIRadioButton,- UIRadioMenuItem
Interface implemented by components that can be grouped together using a group name, e.g. radio buttons and radio button menu items.
- 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 StringProperty name: radio component group StringProp.- static final StringProperty name: selected BoolProp.- static final StringProperty name: selection for no match BoolProp.- static final StringProperty name: selected value.- static final AtomProperty atom: selected BoolProp.- 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- Fields inherited from interface com.iizix.prop.ui.selection.IUISelectionComp- SELECTION_TYPE_MULTIPLE, SELECTION_TYPE_NONE, SELECTION_TYPE_SINGLE
- Method SummaryModifier and TypeMethodDescription- default StringClear the selection.- default StringGets the group name of the component.- default UIComp[]Gets the components being part of the selection group.- default intGets the first selected index.- default int[]Gets the selected indicies.- default UICompGets the currently selected radio component in the group.- default RadioSelectionGets the current selection of the component.- default intGets the selection type of the component.- default boolean- isOFF()Returns if the selection is "off".- default boolean- isON()Returns if the selection is "on".- default booleanReturns the selection state.- default booleanChecks if this radio component is selected by default in the group when selection doesn't match.- default booleanReturns if the selection is not set.- default boolean- setSelection- (boolean on) Sets the selection state.- default String- setSelection- (int index) Sets the selection as a single selected item at specified index.- 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.selection.IUIBooleanSelectionComp- isSelectionBooleanBased- 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.ui.selection.IUIIndexedSelectionComp- isSelectionIndexBased, setSelection, setSelection, setSelection, setSelection, setSelection- Methods inherited from interface com.iizix.prop.ui.selection.IUISelectionComp- addSelectionListener, getOnUISelectionMethod, getSelectionListenerHandler, getSelectionPropAtom, isSelectionCellBased, isSelectionTriStateBased, removeSelectionListener, setSelection- Methods inherited from interface com.iizix.prop.ui.selection.IUISingleIndexedSelectionComp- getFirstSelectedIndex, setSelection- 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- PN_GROUP_NAMEProperty name: radio component group StringProp.- See Also:
 
- PN_SELECTEDProperty name: selected BoolProp.- See Also:
 
- SELECTED_ATOMProperty atom: selected BoolProp.
- PN_SELECTED_NO_MATCHProperty name: selection for no match BoolProp.- See Also:
 
- PN_SELECTED_VALUEProperty name: selected value.- See Also:
 
 
- Method Details- getGroupNameGets the group name of the component.- Returns:
- The group name or null for none.
 
- isSelecteddefault boolean isSelected()Returns the selection state.- Specified by:
- isSelectedin interface- IUIBooleanSelectionComp
- Specified by:
- isSelectedin interface- IUISelectionComp
- Returns:
- true if the component is selected, false if unselected.
 
- isUnselecteddefault boolean isUnselected()Returns if the selection is not set.- Specified by:
- isUnselectedin interface- IUIBooleanSelectionComp
- Returns:
- true if unselected, false if selected.
 
- isONdefault boolean isON()Returns if the selection is "on".- Specified by:
- isONin interface- IUIBooleanSelectionComp
- Returns:
- true if on, false if off.
 
- isOFFdefault boolean isOFF()Returns if the selection is "off".- Specified by:
- isOFFin interface- IUIBooleanSelectionComp
- Returns:
- true if off, false if on.
 
- getSelectedIndexdefault int getSelectedIndex()Gets the first selected index. For radio buttons and menu items, this means the index in the radio group. The ordering of the group is NOT related to the tab order, but rather the ordering they are found from container to children and so on.- Specified by:
- getSelectedIndexin interface- IUISingleIndexedSelectionComp
- Returns:
- The first index in the current selection, or -1 for none.
 
- getSelectedIndiciesdefault int[] getSelectedIndicies()Gets the selected indicies. For radio buttons and menu items, this means the index in the radio group. The ordering of the group is NOT related to the tab order, but rather the ordering they are found from container to children and so on.- Specified by:
- getSelectedIndiciesin interface- IUIIndexedSelectionComp
- Specified by:
- getSelectedIndiciesin interface- IUISingleIndexedSelectionComp
- Returns:
- A new array of the selected indices (that may be modified to your liking), or a static zero in length array for no selection. The array is either of length 1 for one selection, or zero for none.
 
- setSelectionSets the selection as a single selected item at specified index.- Specified by:
- setSelectionin interface- IUIIndexedSelectionComp
- Parameters:
- index- The single item to select at index, -1 to clear the selection.
- Returns:
- null for success, otherwise an error message why the selection failed.
 
- clearSelectionClear the selection.- Specified by:
- clearSelectionin interface- IUIIndexedSelectionComp
- Returns:
- null for OK.
 
- isSelectedByDefaultdefault boolean isSelectedByDefault()Checks if this radio component is selected by default in the group when selection doesn't match. Only one radio component in a group can return true with this method.- Returns:
- true if selected by default, false otherwise.
 
- setSelectiondefault boolean setSelection- (boolean on) Sets the selection state.- Specified by:
- setSelectionin interface- IUIBooleanSelectionComp
- Parameters:
- on- The selection state.
- Returns:
- true if state is changed, false for no change.
 
- getRadioSelectionComponentsGets the components being part of the selection group. Each component returned implements the this- IUIRadioComponent- Returns:
- An array of the selection components.
 
- getSelectedRadioComponentGets the currently selected radio component in the group.- Returns:
- The selected radio component, null for none. The component implements this IUIRadioComponent
 
- getSelectionTypedefault int getSelectionType()Gets the selection type of the component.- Specified by:
- getSelectionTypein interface- IUISelectionComp
- Returns:
- A value indicating the selection capability as the SELECTION_TYPE_* values define.
 
- getSelectionGets the current selection of the component.- Specified by:
- getSelectionin interface- IUISelectionComp
- Returns:
- The current selection of the component.