Interface IUICheck2Component
- All Superinterfaces:
IComponent, ICustomDataProvider, IGProp<GProp<?>[]>, IMessageBox, IPropCnr, IUIBooleanSelectionComp, IUIComp, IUISelectionComp, IVSComponentListener, IVSComponentState, IVSFieldListener
- All Known Implementing Classes:
EMUISwitch, MUISwitch
Components with check state implement this interface without third state possibility.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface IMessageBox
IMessageBox.IconNested classes/interfaces inherited from interface IVSComponentState
IVSComponentState.StateField Summary
FieldsModifier and TypeFieldDescriptionstatic final AtomThe atom name: checked.static final StringProperty name: check state for non-matching values.static final StringProperty name: checked.static final StringProperty name: checked value.static final StringProperty name: unchecked value.Fields inherited from interface 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_PRIVATEFields inherited from interface IMessageBox
ICON_ERROR, ICON_INFORMATION, ICON_MAP, ICON_NONE, ICON_QUESTION, ICON_WARNINGFields inherited from interface IUIComp
ERROR, INFORMATION, NONE, REMOTE_FOCUS_EVENT, WARNINGFields inherited from interface IUISelectionComp
SELECTION_TYPE_MULTIPLE, SELECTION_TYPE_NONE, SELECTION_TYPE_SINGLEMethod Summary
Modifier and TypeMethodDescriptiondefault intGets the check state.default IUISelectionGets the current selection of the component.default intGets the selection type of the component.default booleanVerifies if the component is checked.default booleanisOFF()Returns if the selection is "off".default booleanisON()Returns if the selection is "on".default booleanReturns the selection state.default booleanReturns if the selection is not set.default booleansetChecked(boolean on) Sets the checked state.default booleansetChecked(int state) Sets the checked state.default booleansetSelection(boolean isSelected) Sets the selection.default StringsetSelection(IUISelection selection) Sets the selection.Methods inherited from interface 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, setVisibleMethods inherited from interface ICustomDataProvider
forbiddenGetCustomDataMap, getCustomData, putCustomData, putCustomDataIfAbsentMethods inherited from interface 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, warningMethods inherited from interface IMessageBox
messageBox, messageBox, messageBoxMethods inherited from interface 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, validateClassInstancesMethods inherited from interface IUIBooleanSelectionComp
isSelectionBooleanBasedMethods inherited from interface 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, setVSFieldToComponentMethods inherited from interface IUISelectionComp
addSelectionListener, getOnUISelectionMethod, getSelectionListenerHandler, getSelectionPropAtom, isSelectionCellBased, isSelectionIndexBased, isSelectionTriStateBased, removeSelectionListenerMethods inherited from interface IVSComponentListener
onParentStateChangedMethods inherited from interface IVSFieldListener
getBestVSFieldValueType, onBroken, onResolved, onStateChanged, onValueChanged
Field Details
PN_CHECKED
CHECKED_ATOM
The atom name: checked.PN_CHECKED_VALUE
PN_UNCHECKED_VALUE
PN_CHECK_NO_MATCH
Method Details
getCheckState
default int getCheckState()Gets the check state.Third state is not supported.
- Returns:
- Returns 0=unchecked, 1=checked.
isChecked
default boolean isChecked()Verifies if the component is checked.- Returns:
- true if the component is checked, false if unselected or in third state.
isSelected
default boolean isSelected()Returns the selection state.- Specified by:
isSelectedin interfaceIUIBooleanSelectionComp- Specified by:
isSelectedin interfaceIUISelectionComp- Returns:
- true if selected, false if unselected.
isUnselected
default boolean isUnselected()Returns if the selection is not set.- Specified by:
isUnselectedin interfaceIUIBooleanSelectionComp- Returns:
- true if unselected, true if selected.
isON
default boolean isON()Returns if the selection is "on".- Specified by:
isONin interfaceIUIBooleanSelectionComp- Returns:
- true if on, false otherwise.
isOFF
default boolean isOFF()Returns if the selection is "off".- Specified by:
isOFFin interfaceIUIBooleanSelectionComp- Returns:
- true if off, true otherwise.
setChecked
default boolean setChecked(boolean on) Sets the checked state.- Parameters:
on- The check state.- Returns:
- true if state is changed, false for no change.
setChecked
default boolean setChecked(int state) Sets the checked state.- Parameters:
state- The check state: 0=unchecked, 1=checked.Third state is not supported.
- Returns:
- true if state is changed, false for no change or failure (state has wrong value).
setSelection
default boolean setSelection(boolean isSelected) Sets the selection.- Specified by:
setSelectionin interfaceIUIBooleanSelectionComp- Parameters:
isSelected- The selected state.- Returns:
- true if state is changed, false for no change.
getSelectionType
default int getSelectionType()Gets the selection type of the component.- Specified by:
getSelectionTypein interfaceIUISelectionComp- Returns:
- A value indicating the selection capability as the SELECTION_TYPE_* values define.
getSelection
Gets the current selection of the component.- Specified by:
getSelectionin interfaceIUISelectionComp- Returns:
- The current selection of the component.
setSelection
Sets the selection.- Specified by:
setSelectionin interfaceIUISelectionComp- 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.