public class UIContainer extends UIComp implements IUIContainer, IUIFocusComp, IUIContextMenuOwner, IVSGenericComponentListener
IMessageBox.Icon
IVSComponentState.State
Modifier and Type | Field and Description |
---|---|
static Class<?>[] |
UICOMP_CLASS
Accepted children components array: UIComp class.
|
static String |
VS_STATE_FOCUS_PROP_NAME
The property name for VS connection for state and focus.
|
EMPTY, REMOTE_FOCUS_EVENT, styles, vsField
EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID
GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2
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
Constructor and Description |
---|
UIContainer()
Creates an UI container with the specified name with a null value.
|
UIContainer(Atom propertyAtom)
Creates an UI container with the specified name with a null value.
|
UIContainer(Atom propertyAtom,
GProp<?>[] properties)
Creates an UI container with the specified name and properties.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPredefinedProps()
Adds the predefined properties for this container.
|
protected void |
addPredefinedPropsImpl()
Adds the predefined containers for identifications, fields and actions.
|
String |
canAcceptUIContainerFocus()
Returns if this container can accept focus itself or for one of its
children components.
|
UIContainer |
clone()
Creates a clone out of this property.
|
UIComps |
createCompsCnr()
Creates the components for the Editor.
|
Size |
getApproximateSize()
Returns the size of the component in pixels.
|
int |
getComponentCount()
Gets the UI component count.
|
UIComp[] |
getComponents()
Gets the UI components of the container.
|
UIComps |
getCompsCnr()
Gets the container associated with this layout manager and the UI container.
|
int |
getDeviceType()
Gets the device type: -1=mobile, 0=both, 1=desktop.
|
VSComponent |
getFirstContainerVSStateFocus()
Gets the first VS component encountered for state and focus of this
container or in the parent tree up to the panel level.
|
<COMP extends UIComp> |
getFirstUIComponent(String name,
Class<COMP> uiClass)
Gets the first UI component of the specified name and UI class.
|
<COMP extends UIComp> |
getFirstUIComponentNull(String name,
Class<COMP> uiClass)
Gets the first UI component of the specified name and UI class.
|
void |
getPredefinedProps()
Adds the predefined containers for identifications, fields and actions.
|
UIComp[] |
getRadioSelectionComponents(String groupName)
Gets the components being part of the selection group specified.
|
UIComp |
getSelectedRadioComponent(String groupName)
Gets the currently selected radio component in the group.
|
<COMP extends UIComp> |
getUIComponent(@UIRef String uiPath,
Class<COMP> uiClass)
Gets a UI component with relative reference from this container.
|
<COMP extends UIComp> |
getUIComponentNull(@UIRef String uiPath,
Class<COMP> uiClass)
Gets a UI component with relative reference from this container.
|
VSComponent |
getVSStateFocus()
Gets the VS component for state and focus of this container.
|
boolean |
hasImplicitAlignFillX()
Returns if the container has implicit component horizontal fill.
|
boolean |
hasImplicitAlignFillY()
Returns if the container has implicit component vertical fill.
|
boolean |
isEmptyContainerAllowed()
Returns whether the container should have children in a normal conditions,
i.e.
|
boolean |
isMobileContextMenuSupported()
Returns if the component can show the context menu in mobile mode.
|
boolean |
mustHaveHeight()
Does this component requires a height.
|
boolean |
mustHaveWidth()
Does this component requires a width?
|
void |
onBroken(VSComponentReference reference,
VSComponent component)
Called when the property reference has been broken, i.e.
|
void |
onComponentSelectedInParent(boolean on)
Called by the parent container to inform that this component has been selected in its container.
|
void |
onResolved(VSComponentReference reference,
VSComponent component)
Called when the property reference has been resolved.
|
protected void |
onSelectionChanged(boolean on)
Called when the container is selected as the current container in an index-based
single-selection container such as accordion, swap and tab containers.
|
protected void |
onSelectionChanged(GEvent event)
Method called when the selection of the component changed due to a property change
(value changed, property added or removed).
|
void |
onStateChanged(VSComponent component,
IVSComponentState.State state,
boolean on)
Called when the VS component changes state.
|
protected void |
onVSComponentSelectionChanged(boolean on)
Called when the VS component has its selected state changed.
|
boolean |
setRadioSelectionComponent(IUIRadioComponent radioComponent,
boolean isSelected)
Sets the selection to the specified radio component.
|
String |
setUIContainerFocus(UIComp requestor,
boolean doAnimate)
Sets the focus to the UI container and all its parents.
|
protected void |
updateUICompsReference()
Updates the reference to the UIComps instance named Atom.COMPONENTS, used
when cloning and for the panel part container (or any time the UIComps instance
has been changed).
|
void |
verify(PropVerification verification)
Verifies this property container.
|
protected boolean |
verifyComponentScope(UIContainer scopeContainer,
String what,
PropVerification verification,
VSComponent vsOuter)
Verifies that this component has it's VS references inside the outer VS reference.
|
add, addMappings, assignFontInfoResolver, canAlignX, canAlignY, canFillX, canFillY, canRequestFocus, canRequestFocus, clearErrorMessage, couldRequestFocusIfVirtualized, createStyles, createTitleProp, disconnectVSField, enterVSProcessing, exitVSProcessing, fireSelection, fireSelection, forbiddenGetCustomDataMap, getBadge, getBestVSFieldValueType, getComponentID, getComponentMappings, getErrorMessage, getErrorMessage, getErrorMessageEx, getErrorMessageString, getErrorMessageString, getErrorMessageStringEx, getFixHeight, getFixWidth, getFontInfo, getForcedAlignX, getForcedAlignY, getKStringText, getLayout, getLayoutMgr, getLayoutMgr, getMappedVSComponent, getMessage, getMessageText, getPixelHeight, getPixelWidth, getSize, getStyles, getStyles, getText, getTitle, getTitleKS, getTitlePKS, getTooltip, getTooltipText, getTrigger, getUIPanel, getUIParent, getValue, getValue, getVirtualSpace, getVSField, hasExplicitHeight, hasExplicitWidth, hasFocus, hasImplicitHeight, hasImplicitWidth, hasSelectionChanged, isEnabled, isMobile, isReadOnly, isRTL, isVisible, isVSFieldDisconnected, mustHaveExplicitHeight, mustHaveExplicitWidth, onBroken, onEventSelf, onFocusGained, onNotifySelectionChanged, onParentStateChanged, onPrepare, onPrepare, onPropDispose, onRemoteEvent, onResolved, onStateChanged, onValueChanged, onVirtualizationCompleted, processVSComponentSelection, reconnectVSField, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusEx, requestFocusEx, requestFocusEx, requestFocusEx, setBadge, setBadge, setComponentToVSField, setEnabled, setEnabled, setErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setHTMLText, setLayoutMgr, setMessage, setMessage, setReadOnly, setReadOnly, setText, setText, setTitle, setTitle, setTitle, setTooltip, setTooltip, setVisible, setVisible, setVSFieldMessageToComponent, setVSFieldToComponent
__transferChildProps, addProp, addProp, addProp2, addProp2, appendPropValue, completeVirtualize, containsProp, containsProp, convertLoadedProp, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, doVirtualizePropCnr, enablePropCommunication, enablePropHashMap, equalsTree, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, 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, getPropBaseReference, getPropCnr, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getReferences, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isSibling, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropRemoved, onPropTreeInitialized, onReferenceEvent, paramString, prepare, removeAllProps, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, 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, shouldCreateProps, toElementString, toNativeValue0, usePropHashMap, usesPropIndex, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verifyInternalUseOnly, verifyTree, virtualize
addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, extendsClone, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onVirtualized, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, verifyHasPropertyItem, warning, warning, warning
getClass, hashCode, notify, notifyAll, wait, wait, wait
disconnectVSField, getComponentID, getComponentMappings, getErrorMessage, getErrorMessage, getFixHeight, getFixWidth, getLayout, getLayoutMgr, getPanelUIComponent, getPanelUIComponentNull, getUIRef, getValue, getValue, getVirtualSpace, getVSField, isMobile, isRTL, isVSFieldDisconnected, reconnectVSField, setComponentToVSField, setErrorMessage, setErrorMessage, 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, verifyHasPropertyItem, warning, warning, warning
messageBox, messageBox
getBestVSFieldValueType, onBroken, onResolved, onStateChanged, onValueChanged
onParentStateChanged
forbiddenGetCustomDataMap, getCustomData, putCustomData, putCustomDataIfAbsent
onFocusGained, onFocusLost
requestFocus, requestFocus, requestFocusEx, requestFocusEx
getContainedContextMenu, getContextMenu, getReferencedContextMenu, isContextMenuSupported, onBroken, onResolved
public static final Class<?>[] UICOMP_CLASS
public static final String VS_STATE_FOCUS_PROP_NAME
public UIContainer()
public UIContainer(Atom propertyAtom)
propertyAtom
- the property atom.public UIContainer(Atom propertyAtom, GProp<?>[] properties) throws PropException
propertyAtom
- the property atom.properties
- the property array value for the property.PropException
- as structural changes in containers on client is prohibited.public UIContainer clone()
Cloning is used for "virtualization" of a property tree in the server.
Client property classes will therefore throw
CloneNotSupportedException
.
Once a tree has been cloned, the change-flag is reset, and the create-flag is set. All listeners are also removed! The new cloned property is an orphan, i.e. has no parent set. All children properties are also (deep) cloned.
Note that the cloning process is done WITHOUT thread synchronization for performance reasons, thus no modifications should be done to the tree!
protected void addPredefinedProps() throws PropException
This implementation creates the UIComps property named Atom.COMPONENTS for the UI components, and saves the reference to it for fast access.
addPredefinedProps
in class PropCnr
PropException
- For property exceptions.protected void addPredefinedPropsImpl() throws PropException
PropException
- For property exceptions.public void getPredefinedProps()
getPredefinedProps
in class UIComp
protected void updateUICompsReference()
public boolean hasImplicitAlignFillX()
The default behavior is to forward the reply to LayoutMgr.hasImplicitAlignFillX()
.
hasImplicitAlignFillX
in class UIComp
public boolean hasImplicitAlignFillY()
The default behavior is to forward the reply to LayoutMgr.hasImplicitAlignFillY()
.
hasImplicitAlignFillY
in class UIComp
public int getDeviceType()
getDeviceType
in interface IUIComp
public boolean isMobileContextMenuSupported()
isMobileContextMenuSupported
in interface IUIContextMenuOwner
public UIComps createCompsCnr()
public UIComps getCompsCnr()
getCompsCnr
in interface IUIContainer
public UIComp[] getComponents()
getComponents
in interface IUIContainer
public int getComponentCount()
getComponentCount
in interface IUIContainer
public boolean isEmptyContainerAllowed()
public UIComp[] getRadioSelectionComponents(String groupName)
IRadioComponent
interface.getRadioSelectionComponents
in interface IUIContainer
groupName
- The group name, possibly null (for default).public UIComp getSelectedRadioComponent(String groupName)
getSelectedRadioComponent
in interface IUIContainer
groupName
- The group name, possibly null.public boolean setRadioSelectionComponent(IUIRadioComponent radioComponent, boolean isSelected)
setRadioSelectionComponent
in interface IUIContainer
radioComponent
- The radio-interface-implementing (interface IUIRadioComponent
component.isSelected
- The selection state.public String canAcceptUIContainerFocus()
This method recurses up to the topmost UI container, and all containers must return null for this method to return null.
Typically, a container returns itself as instance if it is disabled or hidden.
canAcceptUIContainerFocus
in interface IUIComp
canAcceptUIContainerFocus
in class UIComp
public String setUIContainerFocus(UIComp requestor, boolean doAnimate)
Subclasses must override this method to process it, but make sure to call
super.setUIContainerFocus(requestor)
first!
setUIContainerFocus
in interface IUIComp
setUIContainerFocus
in class UIComp
requestor
- The requestor is a child to this container.doAnimate
- Flag to enable animation when selection is changed for e.g.
accordion, swap or tab containers.public final VSComponent getVSStateFocus()
getVSStateFocus
in class UIComp
public VSComponent getFirstContainerVSStateFocus()
getFirstContainerVSStateFocus
in class UIComp
public void onResolved(VSComponentReference reference, VSComponent component)
onResolved
in interface IVSGenericComponentListener
reference
- The VSComponentReference instance holding the component reference.component
- The VS component reference that is now resolved.public void onBroken(VSComponentReference reference, VSComponent component)
onBroken
in interface IVSGenericComponentListener
reference
- The VSComponentReference instance holding the component reference.component
- The VS component reference that is now unresolved.public void onStateChanged(VSComponent component, IVSComponentState.State state, boolean on)
onStateChanged
in interface IVSGenericComponentListener
component
- The VS component.state
- The state change.on
- New state.protected void onVSComponentSelectionChanged(boolean on)
on
- The selected state.public void onComponentSelectedInParent(boolean on)
The container processes this method by selecting the VSComponent for state and focus that may be connected.
onComponentSelectedInParent
in class UIComp
on
- The selection state.protected void onSelectionChanged(GEvent event)
onSelectionChanged
in class UIComp
event
- The event that causes the selection change.protected void onSelectionChanged(boolean on)
public void verify(PropVerification verification)
protected boolean verifyComponentScope(UIContainer scopeContainer, String what, PropVerification verification, VSComponent vsOuter)
verifyComponentScope
in class UIComp
scopeContainer
- The scope container.what
- What the scope container is.verification
- The property verification class.vsOuter
- The outer VS parent.public <COMP extends UIComp> COMP getUIComponent(@UIRef String uiPath, Class<COMP> uiClass) throws NotFoundException
Note: A UI path is not the same as a property path, it omits the UI container UIComps instance from the path.
Note 2: If the path is empty, "this" component is returned if the component class
uiClass
matches, otherwise NotFoundException
is thrown.
uiPath
- The UI path for the component.uiClass
- The UI class of the component.NotFoundException
- The not-found exception is thrown if the component
is not found instead of returning null.public <COMP extends UIComp> COMP getUIComponentNull(@UIRef String uiPath, Class<COMP> uiClass)
Note: A UI path is not the same as a property path, it omits the UI container UIComps instance from the path.
Note 2: If the path is empty, "this" component is returned if the component class
uiClass
matches, otherwise null
is returned.
uiPath
- The UI path for the component.uiClass
- The UI class of the component.public <COMP extends UIComp> COMP getFirstUIComponent(String name, Class<COMP> uiClass) throws NotFoundException
getFirstUIComponent
in interface IUIComp
name
- The name of the component.uiClass
- The UI class of the component.NotFoundException
- The not-found exception is thrown if the component
is not found instead of returning null.public <COMP extends UIComp> COMP getFirstUIComponentNull(String name, Class<COMP> uiClass)
getFirstUIComponentNull
in interface IUIComp
name
- The name of the component.uiClass
- The UI class of the component.public boolean mustHaveWidth()
mustHaveWidth
in class UIComp
public boolean mustHaveHeight()
mustHaveHeight
in class UIComp
public Size getApproximateSize()
getApproximateSize
in class UIComp
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.