qx.ui.layout.impl
Class VerticalBoxLayoutImpl

java.lang.Object
  extended by qx.core.Object
      extended by qx.ui.layout.impl.LayoutImpl
          extended by qx.ui.layout.impl.VerticalBoxLayoutImpl
Direct Known Subclasses:
MenuLayoutImpl

public class VerticalBoxLayoutImpl
extends LayoutImpl


Constructor Summary
VerticalBoxLayoutImpl()
           
VerticalBoxLayoutImpl(java.lang.Object vWidget)
           
 
Method Summary
 java.lang.Object computeChildBoxHeight(java.lang.Object vChild)
          Compute and return the box height of the given child.
 void computeChildBoxWidth(java.lang.Object vChild)
          Compute and return the box width of the given child.
 void computeChildrenFlexHeight()
          Computes the height of all flexible children.
 java.lang.Object computeChildrenNeededHeight()
          Compute and return the height needed by all children of this widget
 void flushChildrenQueue(java.lang.Object vChildrenQueue)
          This method have full control of the order in which the registered (or also non-registered) children should be layouted on the horizontal axis.
 boolean getEnableFlexSupport()
          Returns the (computed) value of the property enableFlexSupport.
 void initEnableFlexSupport(boolean arg)
          Calls the apply method and dispatches the change event of the property enableFlexSupport with the default value defined by the class developer.
 void invalidateChildrenFlexHeight()
           
 boolean isEnableFlexSupport()
          Check whether the (computed) value of the boolean property enableFlexSupport equals true.
 void layoutChild_locationX(java.lang.Object vChild, java.lang.Object vJobs)
           
 void layoutChild_locationY(java.lang.Object vChild, java.lang.Object vJobs)
           
 void layoutChild_sizeX(java.lang.Object vChild, java.lang.Object vJobs)
           
 void layoutChild_sizeY(java.lang.Object vChild, java.lang.Object vJobs)
           
 void layoutChild(java.lang.Object vChild, java.lang.Object vJobs)
          This is called from qx.ui.core.Widget and it’s task is to apply the layout (excluding border and padding) to the child.
 void resetEnableFlexSupport()
          Resets the user value of the property enableFlexSupport.
 void setEnableFlexSupport(boolean arg)
          Sets the user value of the property enableFlexSupport.
 boolean toggleEnableFlexSupport()
          Toggles the (computed) value of the boolean property enableFlexSupport.
 boolean updateChildOnInnerHeightChange(java.lang.Object vChild)
          Actions that should be done if the inner height of the widget was changed.
 boolean updateChildOnInnerWidthChange(java.lang.Object vChild)
          Actions that should be done if the inner width of the widget was changed.
 boolean updateChildrenOnJobQueueFlush(java.lang.Object vQueue)
          Updates children on special jobs
 void updateChildrenOnMoveChild(java.lang.Object vChild, java.lang.Object vIndex, java.lang.Object vOldIndex)
          This method combines calls of methods which should be done if a child should be moved inside the same parent to a new positions.
 void updateChildrenOnRemoveChild(java.lang.Object vChild, java.lang.Object vIndex)
          This method combines calls of methods which should be done if a widget should be removed from the current layout.
 void updateSelfOnChildOuterHeightChange(java.lang.Object vChild)
          Things to do and layout when any of the childs changes its outer height.
 void updateSelfOnJobQueueFlush(java.lang.Object vJobQueue)
          Invalidate and recompute things because of job in queue (before the rest of job handling will be executed).
 
Methods inherited from class qx.ui.layout.impl.LayoutImpl
computeChildBoxHeight, computeChildBoxWidth, computeChildNeededHeight, computeChildNeededWidth, computeChildrenNeededHeight_max, computeChildrenNeededHeight_sum, computeChildrenNeededWidth_max, computeChildrenNeededWidth_sum, getWidget, layoutChild_marginX, layoutChild_marginY, layoutChild_sizeLimitX, layoutChild_sizeLimitY, layoutChild_sizeX_essentialWrapper, layoutChild_sizeY_essentialWrapper, layoutChild, updateChildOnInnerHeightChange, updateChildOnInnerWidthChange, updateChildrenOnAddChild, updateChildrenOnMoveChild, updateChildrenOnRemoveChild, updateSelfOnChildOuterHeightChange, updateSelfOnChildOuterWidthChange
 
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

VerticalBoxLayoutImpl

public VerticalBoxLayoutImpl()

VerticalBoxLayoutImpl

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

computeChildBoxHeight

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

Compute and return the box height of the given child.


computeChildBoxWidth

public void computeChildBoxWidth(java.lang.Object vChild)

Compute and return the box width of the given child.


computeChildrenFlexHeight

public void computeChildrenFlexHeight()

Computes the height of all flexible children.


computeChildrenNeededHeight

public java.lang.Object computeChildrenNeededHeight()

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


flushChildrenQueue

public void flushChildrenQueue(java.lang.Object vChildrenQueue)

This method have full control of the order in which the registered (or also non-registered) children should be layouted on the horizontal axis.

Overrides:
flushChildrenQueue in class LayoutImpl

getEnableFlexSupport

public boolean getEnableFlexSupport()

Returns the (computed) value of the property enableFlexSupport.

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


initEnableFlexSupport

public void initEnableFlexSupport(boolean arg)

Calls the apply method and dispatches the change event of the property enableFlexSupport 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: enableFlexSupport.


invalidateChildrenFlexHeight

public void invalidateChildrenFlexHeight()

isEnableFlexSupport

public boolean isEnableFlexSupport()

Check whether the (computed) value of the boolean property enableFlexSupport equals true.

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


layoutChild

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

This is called from qx.ui.core.Widget and it’s task is to apply the layout (excluding border and padding) to the child.


layoutChild_locationX

public void layoutChild_locationX(java.lang.Object vChild,
                                  java.lang.Object vJobs)

layoutChild_locationY

public void layoutChild_locationY(java.lang.Object vChild,
                                  java.lang.Object vJobs)

layoutChild_sizeX

public void layoutChild_sizeX(java.lang.Object vChild,
                              java.lang.Object vJobs)

layoutChild_sizeY

public void layoutChild_sizeY(java.lang.Object vChild,
                              java.lang.Object vJobs)

resetEnableFlexSupport

public void resetEnableFlexSupport()

Resets the user value of the property enableFlexSupport.

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: enableFlexSupport.


setEnableFlexSupport

public void setEnableFlexSupport(boolean arg)

Sets the user value of the property enableFlexSupport.

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


toggleEnableFlexSupport

public boolean toggleEnableFlexSupport()

Toggles the (computed) value of the boolean property enableFlexSupport.

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


updateChildOnInnerHeightChange

public boolean updateChildOnInnerHeightChange(java.lang.Object vChild)

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


updateChildOnInnerWidthChange

public boolean updateChildOnInnerWidthChange(java.lang.Object vChild)

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


updateChildrenOnJobQueueFlush

public boolean updateChildrenOnJobQueueFlush(java.lang.Object vQueue)

Updates children on special jobs

Overrides:
updateChildrenOnJobQueueFlush in class LayoutImpl

updateChildrenOnMoveChild

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

This method combines calls of methods which should be done if a child should be moved inside the same parent to a new positions. Needed by layouts where the children depends on each-other, like flow- or box-layouts.


updateChildrenOnRemoveChild

public void updateChildrenOnRemoveChild(java.lang.Object vChild,
                                        java.lang.Object vIndex)

This method combines calls of methods which should be done if a widget should be removed from the current layout. Needed by layouts where the children depends on each-other, like flow- or box-layouts.


updateSelfOnChildOuterHeightChange

public void updateSelfOnChildOuterHeightChange(java.lang.Object vChild)

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


updateSelfOnJobQueueFlush

public void updateSelfOnJobQueueFlush(java.lang.Object vJobQueue)

Invalidate and recompute things because of job in queue (before the rest of job handling will be executed).

Overrides:
updateSelfOnJobQueueFlush in class LayoutImpl


Copyright © 2008 1&1. All Rights Reserved.