public interface IVSComponent extends IFocusComp, IVSComponentListener, ICustomDataProvider, IMessageBox
IVSComponentState.State
IMessageBox.Icon
Modifier and Type | Field and Description |
---|---|
static int |
ERROR
Message category: error (=2).
|
static int |
INFORMATION
Message category: information (=0).
|
static int |
NONE
Message category: none (=-1).
|
static String |
PN_IGNORE_UI_FOCUS
The property name for ignore focus from UI.
|
static int |
WARNING
Message category: warning (=1).
|
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 VSAction |
getAction(@VSRef String path)
Gets the action with the specified path.
|
default VSAction |
getAction2(@FullVSRef String fullVSRef)
Gets the action with the specified full VS reference path.
|
default VSAction |
getActionNull(@VSRef String path)
Gets the action with the specified path.
|
default VSAction |
getActionNull2(@FullVSRef String fullVSRef)
Gets the action with the specified full VS reference path.
|
default String |
getDescription()
Gets the description of the component.
|
default VSField |
getField(@VSRef String path)
Gets the field with the specified path.
|
default VSField |
getField2(@FullVSRef String fullVSRef)
Gets the field with the specified full VS reference path.
|
default VSField |
getFieldNull(@VSRef String path)
Gets the field with the specified path.
|
default VSField |
getFieldNull2(@FullVSRef String fullVSRef)
Gets the field with the specified full VS reference path.
|
default VSGroup |
getGroup(@VSRef String path)
Gets the group with the specified path.
|
default VSGroup |
getGroup2(@FullVSRef String fullVSRef)
Gets the group with the specified full VS reference path.
|
default VSGroup |
getGroupNull(@VSRef String path)
Gets the group with the specified path.
|
default VSGroup |
getGroupNull2(@FullVSRef String fullVSRef)
Gets the group with the specified full VS reference path.
|
IVSComponent |
getNonVirtualized()
Gets the non-virtualized instance of this component, if it exists.
|
default VSTable |
getTable(@VSRef String path)
Gets the table with the specified path.
|
default VSTable |
getTable2(@FullVSRef String fullVSRef)
Gets the table with the specified full VS reference path.
|
default VSTable |
getTableNull(@VSRef String path)
Gets the table with the specified path.
|
default VSTable |
getTableNull2(@FullVSRef String fullVSRef)
Gets the table with the specified full VS reference path.
|
default VirtualSpace |
getVirtualizedVirtualSpace(@FullVSRef String path)
Gets a virtualized VirtualSpace for the application session.
|
VirtualSpace |
getVirtualSpace()
Gets the VirtualSpace instance.
|
default <COMP extends IVSComponent> |
getVSComponent(@VSRef String path,
Class<COMP> clazz)
Gets the VS component with the specified path.
|
default <COMP extends IVSComponent> |
getVSComponent2(@FullVSRef String fullVSRef,
Class<COMP> clazz)
Gets the VS component with the specified full reference path.
|
default <COMP extends IVSComponent> |
getVSComponentNull(@VSRef String path,
Class<COMP> clazz)
Gets the VS component with the specified path.
|
default <COMP extends IVSComponent> |
getVSComponentNull2(@FullVSRef String fullVSRef,
Class<COMP> clazz)
Gets the VS component with the specified full reference path.
|
default @VSRef String |
getVSRef()
Gets the components relative path to the name space.
|
default boolean |
isEnabled()
Gets the enabled state of this component regardless of the parent(s) enabled state.
|
default boolean |
isEnabledInParent()
Gets the enabled state of this component inside its parent(s).
|
default boolean |
isReadOnly()
Gets the read-only state of this component regardless of the parent(s) read-only state.
|
default boolean |
isReadOnlyInParent()
Gets the enabled state of this component inside its parent(s).
|
default boolean |
isSelected()
Gets the selected state.
|
default boolean |
isVisible()
Gets the visibility state of this component regardless of the parent(s) visible state.
|
default boolean |
isVisibleInParent()
Gets the visibility state of this component inside its parent(s).
|
default void |
messageBox(IMessageBoxReply reply,
IMessageBox.Icon icon,
KString title,
KString message,
KString... buttons)
Displays a message box with the specified title and message.
|
default boolean |
setEnabled(boolean on)
Sets the enabled state.
|
default boolean |
setEnabled(boolean on,
IGProp<?> trigger)
Sets the enabled state.
|
default boolean |
setIgnoreFocusFromUI(boolean doIgnore)
Sets the flag to ignore focus from the UI.
|
default boolean |
setReadOnly(boolean on)
Sets the read-only state.
|
default boolean |
setReadOnly(boolean on,
IGProp<?> trigger)
Sets the read-only state.
|
default boolean |
setSelected(boolean on)
Sets the selected state.
|
default boolean |
setSelected(boolean on,
IGProp<?> trigger)
Sets the selected state.
|
default String |
setVirtualizeSupportFocus()
Sets the focus to this VS component (if possible), regardless if the VS component is virtualized
or not.
|
default String |
setVirtualizeSupportFocus(IGProp<?> trigger)
Sets the focus to this VS component (if possible), regardless if the VS component is virtualized
or not.
|
default boolean |
setVisible(boolean on)
Sets the visibility state.
|
default boolean |
setVisible(boolean on,
IGProp<?> trigger)
Sets the visibility state.
|
default boolean |
shouldIgnoreFocusFromUI()
Checks if this component should ignore focus requests from the UI.
|
onFocusGained, onFocusLost, requestFocus, requestFocus, requestFocusEx, requestFocusEx
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
onParentStateChanged
forbiddenGetCustomDataMap, getCustomData, putCustomData, putCustomDataIfAbsent
messageBox, messageBox
static final int NONE
static final int INFORMATION
static final int WARNING
static final int ERROR
static final String PN_IGNORE_UI_FOCUS
default String getDescription()
VirtualSpace getVirtualSpace()
IVSComponent getNonVirtualized()
The non-virtualized counterpart may not exist in case the component has been programmatically created or is e.g. a row or cell in a table that has been filled by a data connector.
default boolean isEnabled()
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
default boolean isEnabledInParent()
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
default boolean setEnabled(boolean on)
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
on
- The enabled state.default boolean setEnabled(boolean on, IGProp<?> trigger)
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
on
- The enabled state.default boolean isReadOnly()
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
default boolean isReadOnlyInParent()
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
default boolean setReadOnly(boolean on)
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
on
- The read-only state.default boolean setReadOnly(boolean on, IGProp<?> trigger)
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
on
- The read-only state.default boolean isVisible()
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
default boolean isVisibleInParent()
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
default boolean setVisible(boolean on)
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
on
- The visibility state.default boolean setVisible(boolean on, IGProp<?> trigger)
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
on
- The visibility state.default boolean isSelected()
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
default boolean setSelected(boolean on)
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
on
- The selected state.default boolean setSelected(boolean on, IGProp<?> trigger)
Note: all components in the VirtualSpace implements this setting, but not all handle it. It can be used programmatically in all cases.
on
- The selected state.default boolean shouldIgnoreFocusFromUI()
default boolean setIgnoreFocusFromUI(boolean doIgnore)
doIgnore
- The ignore flag.default VSField getField(@VSRef String path) throws NotFoundException
path
- The path to the field in the VirtualSpace, cannot start with '/' or contain ':'.NotFoundException
- If the field is not found.default VSField getFieldNull(@VSRef String path)
It is preferable to use getField(String)
instead of this method if the field
always should be present because it will throw and log errors.
path
- The path to the field in the VirtualSpace, cannot start with '/' or contain ':'.default VSField getField2(@FullVSRef String fullVSRef) throws NotFoundException
fullVSRef
- The full VS reference to the field in the VirtualSpace, as "module:/vs/path".NotFoundException
- If the field is not found.default VSField getFieldNull2(@FullVSRef String fullVSRef)
It is preferable to use getField2(String)
instead of this method if the field
always should be present because it will throw and log errors.
fullVSRef
- The full VS reference to the field in the VirtualSpace, as "module:/vs/path".default VSTable getTable(@VSRef String path) throws NotFoundException
path
- The path to the table in the VirtualSpace, cannot start with '/' or contain ':'.NotFoundException
- If the table is not found.default VSTable getTableNull(@VSRef String path)
It is preferable to use getTable(String)
instead of this method if the table
always should be present because it will throw and log errors.
path
- The path to the table in the VirtualSpace, cannot start with '/' or contain ':'.default VSTable getTable2(@FullVSRef String fullVSRef) throws NotFoundException
fullVSRef
- The full VS reference to the table in the VirtualSpace, as "module:/vs/path".NotFoundException
- If the table is not found.default VSTable getTableNull2(@FullVSRef String fullVSRef)
It is preferable to use getTable2(String)
instead of this method if the table
always should be present because it will throw and log errors.
fullVSRef
- The full VS reference to the table in the VirtualSpace, as "module:/vs/path".default VSAction getAction(@VSRef String path) throws NotFoundException
path
- The path to the action in the VirtualSpace, cannot start with '/' or contain ':'.NotFoundException
- If the action is not found.default VSAction getActionNull(@VSRef String path)
It is preferable to use getAction(String)
instead of this method if the action
always should be present because it will throw and log errors.
path
- The path to the action in the VirtualSpace, cannot start with '/' or contain ':'.default VSAction getAction2(@FullVSRef String fullVSRef) throws NotFoundException
fullVSRef
- The full VS reference to the action in the VirtualSpace, as "module:/vs/path".NotFoundException
- If the action is not found.default VSAction getActionNull2(@FullVSRef String fullVSRef)
It is preferable to use getAction2(String)
instead of this method if the action
always should be present because it will throw and log errors.
fullVSRef
- The full VS reference to the action in the VirtualSpace, as "module:/vs/path".default VSGroup getGroup(@VSRef String path) throws NotFoundException
path
- The path to the group in the VirtualSpace, cannot start with '/' or contain ':'.NotFoundException
- If the action is not found.default VSGroup getGroupNull(@VSRef String path)
It is preferable to use getGroup(String)
instead of this method if the group
always should be present because it will throw and log errors.
path
- The path to the group in the VirtualSpace, cannot start with '/' or contain ':'.default VSGroup getGroup2(@FullVSRef String fullVSRef) throws NotFoundException
fullVSRef
- The full VS reference to the group in the VirtualSpace, as "module:/vs/path".NotFoundException
- If the group is not found.default VSGroup getGroupNull2(@FullVSRef String fullVSRef)
It is preferable to use getGroup2(String)
instead of this method if the group
always should be present because it will throw and log errors.
fullVSRef
- The full VS reference to the group in the VirtualSpace, as "module:/vs/path".default <COMP extends IVSComponent> COMP getVSComponent(@VSRef String path, Class<COMP> clazz) throws NotFoundException
path
- The path to the VS component in the VirtualSpace, cannot start with '/' or contain ':'.clazz
- The requested VS component class.NotFoundException
- If the component is not found or wrong class.default <COMP extends IVSComponent> COMP getVSComponentNull(@VSRef String path, Class<COMP> clazz)
path
- The path to the VS component in the VirtualSpace, cannot start with '/' or contain ':'.clazz
- The requested VS component class.default <COMP extends IVSComponent> COMP getVSComponent2(@FullVSRef String fullVSRef, Class<COMP> clazz) throws NotFoundException
fullVSRef
- The full reference path to the VS component in the VirtualSpace, as "module:/vs/path".clazz
- The requested VS component class.NotFoundException
- If the component is not found or wrong class.default <COMP extends IVSComponent> COMP getVSComponentNull2(@FullVSRef String fullVSRef, Class<COMP> clazz)
fullVSRef
- The full reference path to the VS component in the VirtualSpace, as "module:/vs/path".clazz
- The requested VS component class.default VirtualSpace getVirtualizedVirtualSpace(@FullVSRef String path)
path
- The path of the VirtualSpace name relative the parent of the current VirtualSpace.
This path can be e.g. just a plain name for a direct sibling of this
VirtualSpace, a folder based path such as "folder/virtualSpaceB" or a full
reference path as "module:/vs/[folderPath/]virtualSpace".NotFoundException
- If the VirtualSpace is not found within the virtualized VirtualSpaces.IllegalStateException
- If the current VirtualSpace is disposed or the application
session gyro is not found.IllegalArgumentException
- If path is invalid.default @VSRef String getVSRef()
IllegalStateException
- If the VS component tree is invalid.default String setVirtualizeSupportFocus()
default String setVirtualizeSupportFocus(IGProp<?> trigger)
trigger
- The trigger component, null for none.default void messageBox(IMessageBoxReply reply, IMessageBox.Icon icon, KString title, KString message, KString... buttons)
The message box is displayed for the application session, thus all client sessions.
messageBox
in interface IMessageBox
reply
- The reply callback that is called when the user chooses a button or session is closed,
null
for none.icon
- Icon to display, see the {link Icon}
enumeration.title
- The title string, must be non-null.message
- The message to display, must be non-null.buttons
- The strings for the buttons to display, if none, just an OK
button is displayed.
This array of buttons defined the index value returned by this method.NullPointerException
- If icon
or message
is null, or if any of the elements
in buttons
array is null.IllegalStateException
- If the application session is not found or the application session is disposed of.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.