qx.ui.layout.impl
Class LayoutImpl

java.lang.Object
  extended by qx.core.Object
      extended by qx.ui.layout.impl.LayoutImpl
Direct Known Subclasses:
CanvasLayoutImpl, DockLayoutImpl, FlowLayoutImpl, GridLayoutImpl, HorizontalBoxLayoutImpl, VerticalBoxLayoutImpl

public class LayoutImpl
extends Object

Abstact base class of all layout implementations


Constructor Summary
LayoutImpl()
           
LayoutImpl(java.lang.Object vWidget)
           
 
Method Summary
 java.lang.Integer computeChildBoxHeight(Widget vChild)
          Compute and return the box height of the given child
 java.lang.Integer computeChildBoxWidth(Widget vChild)
          Compute and return the box width of the given child
 java.lang.Integer computeChildNeededHeight(Widget vChild)
          Compute and return the needed height of the given child
 java.lang.Integer computeChildNeededWidth(Widget vChild)
          Compute and return the needed width of the given child
 java.lang.Integer computeChildrenNeededHeight_max()
          Calculate the maximum needed height of all children
 java.lang.Integer computeChildrenNeededHeight_sum()
          Compute and return the height needed by all children of this widget
 java.lang.Integer computeChildrenNeededWidth_max()
          Calculate the maximum needed width of all children
 java.lang.Integer computeChildrenNeededWidth_sum()
          Compute and return the width needed by all children of this widget
 void flushChildrenQueue(java.lang.Object vChildrenQueue)
          Has full control of the order in which the registered (or non-registered) children should be layouted.
 Parent getWidget()
          Returns the associated widget
 void layoutChild_marginX(Widget vChild, java.lang.Object vJobs)
          Apply the X margin values as pure stylesheet equivalent.
 void layoutChild_marginY(Widget vChild, java.lang.Object vJobs)
          Apply the Y margin values as pure stylesheet equivalent.
 void layoutChild_sizeLimitX(Widget vChild, java.lang.Object vJobs)
          Apply min-/max-width to the child.
 void layoutChild_sizeLimitY(Widget vChild, java.lang.Object vJobs)
          Apply min-/max-height to the child.
 java.lang.Object layoutChild_sizeX_essentialWrapper(java.lang.Object vChild, java.lang.Object vJobs)
           
 java.lang.Object layoutChild_sizeY_essentialWrapper(java.lang.Object vChild, java.lang.Object vJobs)
           
 void layoutChild(Widget vChild, java.lang.Object vJobs)
          Called from qx.ui.core.Parent.
 void updateChildOnInnerHeightChange(Widget vChild)
          Actions that should be done if the inner height of the layout widget has changed.
 boolean updateChildOnInnerWidthChange(Widget vChild)
          Actions that should be done if the inner width of the layout widget has changed.
 void updateChildrenOnAddChild(Widget vChild, java.lang.Integer vIndex)
          Add child to current layout.
 boolean updateChildrenOnJobQueueFlush(java.lang.Object vJobQueue)
          Updates children on job queue flush.
 void updateChildrenOnMoveChild(Widget vChild, java.lang.Integer vIndex, java.lang.Integer vOldIndex)
          Move child within its parent to a new position.
 void updateChildrenOnRemoveChild(Widget vChild, java.lang.Integer vIndex)
          Remove child from current layout.
 void updateSelfOnChildOuterHeightChange(Widget vChild)
          Things to do and layout when any of the childs changes its outer height.
 void updateSelfOnChildOuterWidthChange(Widget vChild)
          Things to do and layout when any of the childs changes its outer width.
 void updateSelfOnJobQueueFlush(java.lang.Object vJobQueue)
          Invalidate and recompute cached data according to job queue.
 
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

LayoutImpl

public LayoutImpl()

LayoutImpl

public LayoutImpl(java.lang.Object vWidget)
Method Detail

computeChildBoxHeight

public java.lang.Integer computeChildBoxHeight(Widget vChild)

Compute and return the box height of the given child


computeChildBoxWidth

public java.lang.Integer computeChildBoxWidth(Widget vChild)

Compute and return the box width of the given child


computeChildNeededHeight

public java.lang.Integer computeChildNeededHeight(Widget vChild)

Compute and return the needed height of the given child


computeChildNeededWidth

public java.lang.Integer computeChildNeededWidth(Widget vChild)

Compute and return the needed width of the given child


computeChildrenNeededHeight_max

public java.lang.Integer computeChildrenNeededHeight_max()

Calculate the maximum needed height of all children


computeChildrenNeededHeight_sum

public java.lang.Integer computeChildrenNeededHeight_sum()

Compute and return the height needed by all children of this widget


computeChildrenNeededWidth_max

public java.lang.Integer computeChildrenNeededWidth_max()

Calculate the maximum needed width of all children


computeChildrenNeededWidth_sum

public java.lang.Integer computeChildrenNeededWidth_sum()

Compute and return the width needed by all children of this widget


flushChildrenQueue

public void flushChildrenQueue(java.lang.Object vChildrenQueue)

Has full control of the order in which the registered (or non-registered) children should be layouted.


getWidget

public Parent getWidget()

Returns the associated widget


layoutChild

public void layoutChild(Widget vChild,
                        java.lang.Object vJobs)

Called from qx.ui.core.Parent. Its task is to apply the layout (excluding border and padding) to the child.


layoutChild_marginX

public void layoutChild_marginX(Widget vChild,
                                java.lang.Object vJobs)

Apply the X margin values as pure stylesheet equivalent.


layoutChild_marginY

public void layoutChild_marginY(Widget vChild,
                                java.lang.Object vJobs)

Apply the Y margin values as pure stylesheet equivalent.


layoutChild_sizeLimitX

public void layoutChild_sizeLimitX(Widget vChild,
                                   java.lang.Object vJobs)

Apply min-/max-width to the child. Direct usage of stylesheet properties. This is only possible in modern capable clients (i.e. excluding all current versions of Internet Explorer)


layoutChild_sizeLimitY

public void layoutChild_sizeLimitY(Widget vChild,
                                   java.lang.Object vJobs)

Apply min-/max-height to the child. Direct usage of stylesheet properties. This is only possible in modern capable clients (i.e. excluding all current versions of Internet Explorer)


layoutChild_sizeX_essentialWrapper

public java.lang.Object layoutChild_sizeX_essentialWrapper(java.lang.Object vChild,
                                                           java.lang.Object vJobs)

layoutChild_sizeY_essentialWrapper

public java.lang.Object layoutChild_sizeY_essentialWrapper(java.lang.Object vChild,
                                                           java.lang.Object vJobs)

updateChildOnInnerHeightChange

public void updateChildOnInnerHeightChange(Widget vChild)

Actions that should be done if the inner height of the layout widget has changed. Normally this includes updates to percent values and ranges.

Subclasses might implement this method


updateChildOnInnerWidthChange

public boolean updateChildOnInnerWidthChange(Widget vChild)

Actions that should be done if the inner width of the layout widget has changed. Normally this includes updates to percent values and ranges.

Subclasses might implement this method


updateChildrenOnAddChild

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

Add child to current layout. Rarely needed by some layout implementations.

Subclasses might implement this method


updateChildrenOnJobQueueFlush

public boolean updateChildrenOnJobQueueFlush(java.lang.Object vJobQueue)

Updates children on job queue flush. This is executed at the end of the job queue handling.

Subclasses might implement this method


updateChildrenOnMoveChild

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

Move child within its parent to a new position. Needed by layouts where the children depend on each other, like flow or box layouts.

Subclasses might implement this method


updateChildrenOnRemoveChild

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

Remove child from current layout. Needed by layouts where the children depend on each other, like flow or box layouts.

Subclasses might implement this method


updateSelfOnChildOuterHeightChange

public void updateSelfOnChildOuterHeightChange(Widget vChild)

Things to do and layout when any of the childs changes its outer height. Needed by layouts where the children depend on each other, like flow or box layouts.

Subclasses might implement this method


updateSelfOnChildOuterWidthChange

public void updateSelfOnChildOuterWidthChange(Widget vChild)

Things to do and layout when any of the childs changes its outer width. Needed by layouts where the children depend on each other, like flow or box layouts.

Subclasses might implement this method


updateSelfOnJobQueueFlush

public void updateSelfOnJobQueueFlush(java.lang.Object vJobQueue)

Invalidate and recompute cached data according to job queue. This is executed at the beginning of the job queue handling.

Subclasses might implement this method



Copyright © 2008 1&1. All Rights Reserved.