qx.ui.core
Class Parent

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.ui.core.Widget
              extended by qx.ui.core.Parent
Direct Known Subclasses:
BoxLayout, CanvasLayout, DockLayout, FlowLayout, GridLayout

public abstract class Parent
extends Widget

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.ui.core.Widget
_applyAppearance, _applyBackgroundColor, _applyBackgroundImage, _applyBackgroundRepeat, _applyBorder, _applyBottom, _applyCapture, _applyClip, _applyCommand, _applyCursor, _applyDisplay, _applyElement, _applyElementData, _applyEnabled, _applyFocused, _applyFont, _applyHeight, _applyHideFocus, _applyHtmlAttributes, _applyHtmlProperties, _applyLeft, _applyMarginBottom, _applyMarginLeft, _applyMarginRight, _applyMarginTop, _applyMaxHeight, _applyMaxWidth, _applyMinHeight, _applyMinWidth, _applyOpacity, _applyOverflow, _applyPaddingBottom, _applyPaddingLeft, _applyPaddingRight, _applyPaddingTop, _applyParent, _applyRight, _applySelectable, _applyStateStyleFocus, _applyStyleProperties, _applyTabIndex, _applyTextColor, _applyTop, _applyVisibility, _applyWidth, _applyZIndex, _checkParent, _compileClipString, _computeBoxHeight, _computeBoxHeightFallback, _computeBoxWidth, _computeBoxWidthFallback, _computeDisplayable, _computeFrameHeight, _computeFrameWidth, _computeHasAutoX, _computeHasAutoY, _computeHasFlexX, _computeHasFlexY, _computeHasPercentX, _computeHasPercentY, _computeInnerHeight, _computeInnerWidth, _computeOuterHeight, _computeOuterWidth, _computePreferredBoxHeight, _computePreferredBoxWidth, _computeValuePercentX, _computeValuePercentXLimit, _computeValuePercentY, _computeValuePercentYLimit, _computeValuePixel, _computeValuePixelLimit, _createElementImpl, _evalUnitsPixelPercent, _evalUnitsPixelPercentAuto, _evalUnitsPixelPercentAutoFlex, _flushJobQueue, _generateHtmlId, _getTargetNode, _handleDisplayable, _invalidateFrameDimensions, _invalidatePreferredInnerDimensions, _queueBorder, _recomputeFlexX, _recomputeFlexY, _recomputePercentX, _recomputePercentY, _recomputeRangeX, _recomputeRangeY, _recomputeStretchingX, _recomputeStretchingY, _renderAppearance, _renderOverflow, _resetAppearanceThemeWrapper, _styleBackgroundColor, _styleBackgroundImage, _styleFromMap, _unitDetectionPixelPercent, _unitDetectionPixelPercentAuto, _unitDetectionPixelPercentAutoFlex, _unstyleFromArray, _visualizeBlur, _visualizeFocus, _visualPropertyCheck, addState, addToDocument, addToJobQueue, addToLayoutChanges, addToQueue, addToQueueRuntime, addToStateQueue, auto, blur, connect, contains, disconnect, execute, focus, getAllowStretchX, getAllowStretchY, getAnonymous, getAppearance, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBottom, getBottomValue, getCapture, getClientHeight, getClientWidth, getClipHeight, getClipLeft, getClipTop, getClipWidth, getCommand, getContextMenu, getCursor, getDisplay, getDropDataTypes, getElement, getEnabled, getEnableElementFocus, getFocused, getFont, getHeight, getHeightValue, getHideFocus, getHorizontalAlign, getHtmlAttribute, getHtmlProperty, getLeft, getLeftValue, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxHeightValue, getMaxWidth, getMaxWidthValue, getMinHeight, getMinHeightValue, getMinWidth, getMinWidthValue, getNeededHeight, getNeededWidth, getNextActiveSibling, getNextSibling, getNextVisibleSibling, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOpacity, getOverflow, getOverflowX, getOverflowY, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPreviousActiveSibling, getPreviousSibling, getPreviousVisibleSibling, getRight, getRightValue, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSelectable, getStyleProperty, getSupportsDropMethod, getTabIndex, getTextColor, getToolTip, getTop, getTopLevelWidget, getTopValue, getVerticalAlign, getVisibility, getVisibleChildren, getWidth, getWidthValue, getZIndex, hasState, hide, indexOf, initAllowStretchX, initAllowStretchY, initAnonymous, initAppearance, initBackgroundColor, initBackgroundImage, initBackgroundRepeat, initBorder, initBottom, initCapture, initClipHeight, initClipLeft, initClipTop, initClipWidth, initCommand, initContextMenu, initCursor, initDisplay, initDropDataTypes, initElement, initEnabled, initEnableElementFocus, initFocused, initFont, initHeight, initHideFocus, initHorizontalAlign, initLeft, initMarginBottom, initMarginLeft, initMarginRight, initMarginTop, initMaxHeight, initMaxWidth, initMinHeight, initMinWidth, initOpacity, initOverflow, initPaddingBottom, initPaddingLeft, initPaddingRight, initPaddingTop, initParent, initRight, initSelectable, initSupportsDropMethod, initTabIndex, initTextColor, initToolTip, initTop, initVerticalAlign, initVisibility, initWidth, initZIndex, isAllowStretchX, isAllowStretchY, isAnonymous, isAppearRelevant, isCapture, isCreated, isDisplay, isDisplayable, isEnabled, isEnableElementFocus, isFirstChild, isFirstVisibleChild, isFocusable, isFocused, isHideFocus, isLastChild, isLastVisibleChild, isMaterialized, isSeeable, isSelectable, isVisibility, moveSelfAfter, moveSelfBefore, moveSelfToBegin, moveSelfToEnd, pack, removeHtmlAttribute, removeHtmlProperty, removeState, removeStyleProperty, renderPadding, resetAlign, resetAllowStretchX, resetAllowStretchY, resetAnonymous, resetAppearance, resetBackgroundColor, resetBackgroundImage, resetBackgroundRepeat, resetBorder, resetBottom, resetCapture, resetClip, resetClipDimension, resetClipHeight, resetClipLeft, resetClipLocation, resetClipTop, resetClipWidth, resetCommand, resetContextMenu, resetCursor, resetDimension, resetDisplay, resetDropDataTypes, resetEdge, resetElement, resetEnabled, resetEnableElementFocus, resetFocused, resetFont, resetHeight, resetHeights, resetHideFocus, resetHorizontalAlign, resetLeft, resetLocation, resetMargin, resetMarginBottom, resetMarginLeft, resetMarginRight, resetMarginTop, resetMaxHeight, resetMaxWidth, resetMinHeight, resetMinWidth, resetOpacity, resetOverflow, resetPadding, resetPaddingBottom, resetPaddingLeft, resetPaddingRight, resetPaddingTop, resetParent, resetRight, resetSelectable, resetSpace, resetSupportsDropMethod, resetTabIndex, resetTextColor, resetToolTip, resetTop, resetVerticalAlign, resetVisibility, resetWidth, resetWidths, resetZIndex, scrollIntoView, scrollIntoViewX, scrollIntoViewY, setAlign, setAllowStretchX, setAllowStretchY, setAnonymous, setAppearance, setBackgroundColor, setBackgroundImage, setBackgroundRepeat, setBorder, setBottom, setCapture, setClip, setClipDimension, setClipHeight, setClipLeft, setClipLocation, setClipTop, setClipWidth, setCommand, setContextMenu, setCursor, setDimension, setDisplay, setDropDataTypes, setEdge, setElement, setEnabled, setEnableElementFocus, setFocused, setFont, setHeight, setHeights, setHideFocus, setHorizontalAlign, setHtmlAttribute, setHtmlProperty, setLeft, setLocation, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setParent, setRight, setScrollLeft, setScrollTop, setSelectable, setSpace, setStyleProperty, setSupportsDropMethod, setTabIndex, setTextColor, setToolTip, setTop, setVerticalAlign, setVisibility, setWidth, setWidths, setZIndex, show, supportsDrop, toggleAllowStretchX, toggleAllowStretchY, toggleAnonymous, toggleCapture, toggleDisplay, toggleEnabled, toggleEnableElementFocus, toggleFocused, toggleHideFocus, toggleSelectable, toggleVisibility
 
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

Parent

public Parent()
Method Detail

_addChildrenToLayoutQueue

public void _addChildrenToLayoutQueue(java.lang.Object p)

_addChildrenToStateQueue

public void _addChildrenToStateQueue()

_addChildToChildrenQueue

public void _addChildToChildrenQueue(java.lang.Object vChild)

_afterAppear

public void _afterAppear()
Overrides:
_afterAppear in class Widget

_afterDisappear

public void _afterDisappear()
Overrides:
_afterDisappear in class Widget

_afterInsertDom

public void _afterInsertDom()
Overrides:
_afterInsertDom in class Widget

_afterRemoveDom

public void _afterRemoveDom()
Overrides:
_afterRemoveDom in class Widget

_applyActiveChild

public void _applyActiveChild(java.lang.Object value,
                              java.lang.Object old)

_applyFocusedChild

public void _applyFocusedChild(java.lang.Object value,
                               java.lang.Object old)

_applyFocusHandler

public void _applyFocusHandler(java.lang.Object value,
                               java.lang.Object old)

_beforeAppear

public void _beforeAppear()
Overrides:
_beforeAppear in class Widget

_beforeDisappear

public void _beforeDisappear()
Overrides:
_beforeDisappear in class Widget

_beforeInsertDom

public void _beforeInsertDom()
Overrides:
_beforeInsertDom in class Widget

_beforeRemoveDom

public void _beforeRemoveDom()
Overrides:
_beforeRemoveDom in class Widget

_changeInnerHeight

public void _changeInnerHeight(java.lang.Object vNew,
                               java.lang.Object vOld)

_changeInnerWidth

public void _changeInnerWidth(java.lang.Object vNew,
                              java.lang.Object vOld)

_computePreferredInnerHeight

public java.lang.Object _computePreferredInnerHeight()

_computePreferredInnerWidth

public java.lang.Object _computePreferredInnerWidth()

_computeVisibleChildren

public Widget _computeVisibleChildren()

Return the array of all visible children (which are configured as visible=true)


_createLayoutImpl

public BoxLayout _createLayoutImpl()

abstract method. Create layout implementation.

This method must be overwritten by all subclasses

return


_flushChildrenQueue

public void _flushChildrenQueue()

_handleDisplayableCustom

public void _handleDisplayableCustom(java.lang.Object vDisplayable,
                                     java.lang.Object vParent,
                                     java.lang.Object vHint)

_layoutChild

public void _layoutChild(java.lang.Object vChild)

_layoutPost

public void _layoutPost()

_onfocuskeyevent

public void _onfocuskeyevent(Event e)

Delegate keyevent to the focus handler


_recursiveAppearanceThemeUpdate

public void _recursiveAppearanceThemeUpdate(java.lang.Object vNewAppearanceTheme,
                                            java.lang.Object vOldAppearanceTheme)
Overrides:
_recursiveAppearanceThemeUpdate in class Widget

_removeChildFromChildrenQueue

public void _removeChildFromChildrenQueue(java.lang.Object vChild)

activateFocusRoot

public void activateFocusRoot()

Let the widget use its own focus handler


add

public Parent add(Widget varargs)

Add/Append another widget. Allows to add multiple at one, a parameter could be a widget.


addAfter

public void addAfter(java.lang.Object vChild,
                     java.lang.Object vAfter)

Add a widget after another already inserted widget


addAt

public void addAt(Widget vChild,
                  java.lang.Integer vIndex)

Add a child widget at the specified index


addAtBegin

public void addAtBegin(Widget vChild)

Add a child widget as the first widget


addAtEnd

public void addAtEnd(Widget vChild)

Add a child widget as the last widget


addBefore

public void addBefore(java.lang.Object vChild,
                      java.lang.Object vBefore)

Add a widget before another already inserted widget


contains

public java.lang.Object contains(Widget vWidget)

Check if the given widget is a child


forEachChild

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.


forEachVisibleChild

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.


getActiveChild

public Widget getActiveChild()

Returns the (computed) value of the property activeChild.

For further details take a look at the property definition: activeChild.

Overrides:
getActiveChild in class Widget

getChildren

public Widget getChildren()

Return the array of all children

Overrides:
getChildren in class Widget

getChildrenLength

public java.lang.Integer getChildrenLength()

Get number of children

Overrides:
getChildrenLength in class Widget

getFirstActiveChild

public java.lang.Object getFirstActiveChild(java.lang.Class vIgnoreClasses)

Get the first active child


getFirstChild

public java.lang.Object getFirstChild()

Get the first child


getFirstVisibleChild

public java.lang.Object getFirstVisibleChild()

Get the first visible child


getFocusedChild

public Widget getFocusedChild()

Returns the (computed) value of the property focusedChild.

For further details take a look at the property definition: focusedChild.


getFocusHandler

public FocusHandler getFocusHandler()

Returns the (computed) value of the property focusHandler.

For further details take a look at the property definition: focusHandler.


getFocusRoot

public FocusHandler getFocusRoot()

Return the responsible focus handler

Overrides:
getFocusRoot in class Widget

getInnerHeightForChild

public java.lang.Object getInnerHeightForChild(java.lang.Object vChild)

getInnerWidthForChild

public java.lang.Object getInnerWidthForChild(java.lang.Object vChild)

getLastActiveChild

public java.lang.Object getLastActiveChild(java.lang.Class vIgnoreClasses)

Get the last active child


getLastChild

public java.lang.Object getLastChild()

Get the last child


getLastVisibleChild

public java.lang.Object getLastVisibleChild()

Get the last visible child


getLayoutImpl

public java.lang.Object getLayoutImpl()

Return the layout implementation.

return {qx.ui.layout.impl.LayoutImpl}


getVisibleChildrenLength

public java.lang.Integer getVisibleChildrenLength()

Get number of visible children

Overrides:
getVisibleChildrenLength in class Widget

hasChildren

public boolean hasChildren()

Check if the widget has children

Overrides:
hasChildren in class Widget

hasVisibleChildren

public boolean hasVisibleChildren()

Check if the widget has any visible children

Overrides:
hasVisibleChildren in class Widget

indexOf

public java.lang.Integer indexOf(Widget vChild)

Get the index of a child widget.


initActiveChild

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.


initFocusedChild

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.


initFocusHandler

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.


isEmpty

public boolean isEmpty()

Check if there are any children inside

Overrides:
isEmpty in class Widget

isFocusRoot

public boolean isFocusRoot()

Wether the widget has its own focus handler or uses one of its parent’s focus handler.

Overrides:
isFocusRoot in class Widget

isVisibleEmpty

public boolean isVisibleEmpty()

Check whether there are any visible children inside

Overrides:
isVisibleEmpty in class Widget

recursiveAddToStateQueue

public void recursiveAddToStateQueue()
Overrides:
recursiveAddToStateQueue in class Widget

remapChildrenHandlingTo

public void remapChildrenHandlingTo(java.lang.Object vTarget)

remove

public void remove(Widget varargs)

Remove one or multiple childrens.


removeAll

public void removeAll()

Remove all children.


removeAt

public void removeAt(java.lang.Integer vIndex)

Remove the widget at the specified index.


resetActiveChild

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.


resetFocusedChild

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.


resetFocusHandler

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.


setActiveChild

public void setActiveChild(Widget arg)

Sets the user value of the property activeChild.

For further details take a look at the property definition: activeChild.


setFocusedChild

public void setFocusedChild(Widget arg)

Sets the user value of the property focusedChild.

For further details take a look at the property definition: focusedChild.


setFocusHandler

public void setFocusHandler(FocusHandler arg)

Sets the user value of the property focusHandler.

For further details take a look at the property definition: focusHandler.



Copyright © 2008 1&1. All Rights Reserved.