|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.ui.core.Widget
qx.ui.core.Parent
public abstract class Parent
Abstract base class for all widget which have child widgets (e.g. layout manager)
Don’t instantiate this class directly.
Field Summary |
---|
Fields inherited from class qx.ui.core.Widget |
---|
AUTO |
Constructor Summary | |
---|---|
Parent()
|
Method Summary | |
---|---|
void |
_addChildrenToLayoutQueue(java.lang.Object p)
|
void |
_addChildrenToStateQueue()
|
void |
_addChildToChildrenQueue(java.lang.Object vChild)
|
void |
_afterAppear()
|
void |
_afterDisappear()
|
void |
_afterInsertDom()
|
void |
_afterRemoveDom()
|
void |
_applyActiveChild(java.lang.Object value,
java.lang.Object old)
|
void |
_applyFocusedChild(java.lang.Object value,
java.lang.Object old)
|
void |
_applyFocusHandler(java.lang.Object value,
java.lang.Object old)
|
void |
_beforeAppear()
|
void |
_beforeDisappear()
|
void |
_beforeInsertDom()
|
void |
_beforeRemoveDom()
|
void |
_changeInnerHeight(java.lang.Object vNew,
java.lang.Object vOld)
|
void |
_changeInnerWidth(java.lang.Object vNew,
java.lang.Object vOld)
|
java.lang.Object |
_computePreferredInnerHeight()
|
java.lang.Object |
_computePreferredInnerWidth()
|
Widget |
_computeVisibleChildren()
Return the array of all visible children (which are configured as visible=true) |
BoxLayout |
_createLayoutImpl()
abstract method. |
void |
_flushChildrenQueue()
|
void |
_handleDisplayableCustom(java.lang.Object vDisplayable,
java.lang.Object vParent,
java.lang.Object vHint)
|
void |
_layoutChild(java.lang.Object vChild)
|
void |
_layoutPost()
|
void |
_onfocuskeyevent(Event e)
Delegate keyevent to the focus handler |
void |
_recursiveAppearanceThemeUpdate(java.lang.Object vNewAppearanceTheme,
java.lang.Object vOldAppearanceTheme)
|
void |
_removeChildFromChildrenQueue(java.lang.Object vChild)
|
void |
activateFocusRoot()
Let the widget use its own focus handler |
Parent |
add(Widget varargs)
Add/Append another widget. |
void |
addAfter(java.lang.Object vChild,
java.lang.Object vAfter)
Add a widget after another already inserted widget |
void |
addAt(Widget vChild,
java.lang.Integer vIndex)
Add a child widget at the specified index |
void |
addAtBegin(Widget vChild)
Add a child widget as the first widget |
void |
addAtEnd(Widget vChild)
Add a child widget as the last widget |
void |
addBefore(java.lang.Object vChild,
java.lang.Object vBefore)
Add a widget before another already inserted widget |
java.lang.Object |
contains(Widget vWidget)
Check if the given widget is a child |
void |
forEachChild(java.lang.Object vFunc)
Call a callbach function for each child widget. |
void |
forEachVisibleChild(java.lang.Object vFunc)
Call a callbach function for each visible child widget. |
Widget |
getActiveChild()
Returns the (computed) value of the property activeChild . |
Widget |
getChildren()
Return the array of all children |
java.lang.Integer |
getChildrenLength()
Get number of children |
java.lang.Object |
getFirstActiveChild(java.lang.Class vIgnoreClasses)
Get the first active child |
java.lang.Object |
getFirstChild()
Get the first child |
java.lang.Object |
getFirstVisibleChild()
Get the first visible child |
Widget |
getFocusedChild()
Returns the (computed) value of the property focusedChild . |
FocusHandler |
getFocusHandler()
Returns the (computed) value of the property focusHandler . |
FocusHandler |
getFocusRoot()
Return the responsible focus handler |
java.lang.Object |
getInnerHeightForChild(java.lang.Object vChild)
|
java.lang.Object |
getInnerWidthForChild(java.lang.Object vChild)
|
java.lang.Object |
getLastActiveChild(java.lang.Class vIgnoreClasses)
Get the last active child |
java.lang.Object |
getLastChild()
Get the last child |
java.lang.Object |
getLastVisibleChild()
Get the last visible child |
java.lang.Object |
getLayoutImpl()
Return the layout implementation. |
java.lang.Integer |
getVisibleChildrenLength()
Get number of visible children |
boolean |
hasChildren()
Check if the widget has children |
boolean |
hasVisibleChildren()
Check if the widget has any visible children |
java.lang.Integer |
indexOf(Widget vChild)
Get the index of a child widget. |
void |
initActiveChild(Widget arg)
Calls the apply method and dispatches the change event of the property activeChild
with the default value defined by the class developer. |
void |
initFocusedChild(Widget arg)
Calls the apply method and dispatches the change event of the property focusedChild
with the default value defined by the class developer. |
void |
initFocusHandler(FocusHandler arg)
Calls the apply method and dispatches the change event of the property focusHandler
with the default value defined by the class developer. |
boolean |
isEmpty()
Check if there are any children inside |
boolean |
isFocusRoot()
Wether the widget has its own focus handler or uses one of its parent’s focus handler. |
boolean |
isVisibleEmpty()
Check whether there are any visible children inside |
void |
recursiveAddToStateQueue()
|
void |
remapChildrenHandlingTo(java.lang.Object vTarget)
|
void |
remove(Widget varargs)
Remove one or multiple childrens. |
void |
removeAll()
Remove all children. |
void |
removeAt(java.lang.Integer vIndex)
Remove the widget at the specified index. |
void |
resetActiveChild()
Resets the user value of the property activeChild . |
void |
resetFocusedChild()
Resets the user value of the property focusedChild . |
void |
resetFocusHandler()
Resets the user value of the property focusHandler . |
void |
setActiveChild(Widget arg)
Sets the user value of the property activeChild . |
void |
setFocusedChild(Widget arg)
Sets the user value of the property focusedChild . |
void |
setFocusHandler(FocusHandler arg)
Sets the user value of the property focusHandler . |
Methods inherited from class qx.core.Target |
---|
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener |
Methods inherited from class qx.core.Object |
---|
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Parent()
Method Detail |
---|
public void _addChildrenToLayoutQueue(java.lang.Object p)
public void _addChildrenToStateQueue()
public void _addChildToChildrenQueue(java.lang.Object vChild)
public void _afterAppear()
_afterAppear
in class Widget
public void _afterDisappear()
_afterDisappear
in class Widget
public void _afterInsertDom()
_afterInsertDom
in class Widget
public void _afterRemoveDom()
_afterRemoveDom
in class Widget
public void _applyActiveChild(java.lang.Object value, java.lang.Object old)
public void _applyFocusedChild(java.lang.Object value, java.lang.Object old)
public void _applyFocusHandler(java.lang.Object value, java.lang.Object old)
public void _beforeAppear()
_beforeAppear
in class Widget
public void _beforeDisappear()
_beforeDisappear
in class Widget
public void _beforeInsertDom()
_beforeInsertDom
in class Widget
public void _beforeRemoveDom()
_beforeRemoveDom
in class Widget
public void _changeInnerHeight(java.lang.Object vNew, java.lang.Object vOld)
public void _changeInnerWidth(java.lang.Object vNew, java.lang.Object vOld)
public java.lang.Object _computePreferredInnerHeight()
public java.lang.Object _computePreferredInnerWidth()
public Widget _computeVisibleChildren()
Return the array of all visible children (which are configured as visible=true)
public BoxLayout _createLayoutImpl()
abstract method. Create layout implementation.
This method must be overwritten by all subclasses
return
public void _flushChildrenQueue()
public void _handleDisplayableCustom(java.lang.Object vDisplayable, java.lang.Object vParent, java.lang.Object vHint)
public void _layoutChild(java.lang.Object vChild)
public void _layoutPost()
public void _onfocuskeyevent(Event e)
Delegate keyevent to the focus handler
public void _recursiveAppearanceThemeUpdate(java.lang.Object vNewAppearanceTheme, java.lang.Object vOldAppearanceTheme)
_recursiveAppearanceThemeUpdate
in class Widget
public void _removeChildFromChildrenQueue(java.lang.Object vChild)
public void activateFocusRoot()
Let the widget use its own focus handler
public Parent add(Widget varargs)
Add/Append another widget. Allows to add multiple at one, a parameter could be a widget.
public void addAfter(java.lang.Object vChild, java.lang.Object vAfter)
Add a widget after another already inserted widget
public void addAt(Widget vChild, java.lang.Integer vIndex)
Add a child widget at the specified index
public void addAtBegin(Widget vChild)
Add a child widget as the first widget
public void addAtEnd(Widget vChild)
Add a child widget as the last widget
public void addBefore(java.lang.Object vChild, java.lang.Object vBefore)
Add a widget before another already inserted widget
public java.lang.Object contains(Widget vWidget)
Check if the given widget is a child
public void forEachChild(java.lang.Object vFunc)
Call a callbach function for each child widget. The callback has the following signature:
function(childWidget, widgetIndex)
. The first parameter is the child widget
and the second the index of the child widget in its parent.
public void forEachVisibleChild(java.lang.Object vFunc)
Call a callbach function for each visible child widget. The callback has the following signature:
function(childWidget, widgetIndex)
. The first parameter is the child widget
and the second the index of the child widget in its parent.
public Widget getActiveChild()
Returns the (computed) value of the property activeChild
.
For further details take a look at the property definition: activeChild
.
getActiveChild
in class Widget
public Widget getChildren()
Return the array of all children
getChildren
in class Widget
public java.lang.Integer getChildrenLength()
Get number of children
getChildrenLength
in class Widget
public java.lang.Object getFirstActiveChild(java.lang.Class vIgnoreClasses)
Get the first active child
public java.lang.Object getFirstChild()
Get the first child
public java.lang.Object getFirstVisibleChild()
Get the first visible child
public Widget getFocusedChild()
Returns the (computed) value of the property focusedChild
.
For further details take a look at the property definition: focusedChild
.
public FocusHandler getFocusHandler()
Returns the (computed) value of the property focusHandler
.
For further details take a look at the property definition: focusHandler
.
public FocusHandler getFocusRoot()
Return the responsible focus handler
getFocusRoot
in class Widget
public java.lang.Object getInnerHeightForChild(java.lang.Object vChild)
public java.lang.Object getInnerWidthForChild(java.lang.Object vChild)
public java.lang.Object getLastActiveChild(java.lang.Class vIgnoreClasses)
Get the last active child
public java.lang.Object getLastChild()
Get the last child
public java.lang.Object getLastVisibleChild()
Get the last visible child
public java.lang.Object getLayoutImpl()
Return the layout implementation.
return {qx.ui.layout.impl.LayoutImpl}
public java.lang.Integer getVisibleChildrenLength()
Get number of visible children
getVisibleChildrenLength
in class Widget
public boolean hasChildren()
Check if the widget has children
hasChildren
in class Widget
public boolean hasVisibleChildren()
Check if the widget has any visible children
hasVisibleChildren
in class Widget
public java.lang.Integer indexOf(Widget vChild)
Get the index of a child widget.
public void initActiveChild(Widget arg)
Calls the apply method and dispatches the change event of the property activeChild
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: activeChild
.
public void initFocusedChild(Widget arg)
Calls the apply method and dispatches the change event of the property focusedChild
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: focusedChild
.
public void initFocusHandler(FocusHandler arg)
Calls the apply method and dispatches the change event of the property focusHandler
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: focusHandler
.
public boolean isEmpty()
Check if there are any children inside
isEmpty
in class Widget
public boolean isFocusRoot()
Wether the widget has its own focus handler or uses one of its parent’s focus handler.
isFocusRoot
in class Widget
public boolean isVisibleEmpty()
Check whether there are any visible children inside
isVisibleEmpty
in class Widget
public void recursiveAddToStateQueue()
recursiveAddToStateQueue
in class Widget
public void remapChildrenHandlingTo(java.lang.Object vTarget)
public void remove(Widget varargs)
Remove one or multiple childrens.
public void removeAll()
Remove all children.
public void removeAt(java.lang.Integer vIndex)
Remove the widget at the specified index.
public void resetActiveChild()
Resets the user value of the property activeChild
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: activeChild
.
public void resetFocusedChild()
Resets the user value of the property focusedChild
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: focusedChild
.
public void resetFocusHandler()
Resets the user value of the property focusHandler
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: focusHandler
.
public void setActiveChild(Widget arg)
Sets the user value of the property activeChild
.
For further details take a look at the property definition: activeChild
.
public void setFocusedChild(Widget arg)
Sets the user value of the property focusedChild
.
For further details take a look at the property definition: focusedChild
.
public void setFocusHandler(FocusHandler arg)
Sets the user value of the property focusHandler
.
For further details take a look at the property definition: focusHandler
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |