Class OverlapContainer


  • public class OverlapContainer
    extends ej.mwt.Container
    Lays out any number of children by stacking them.

    In an overlap container, each child will have the position and size of the available space.

    • Field Summary

      • Fields inherited from class ej.mwt.Widget

        NO_CONSTRAINT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addChild​(ej.mwt.Widget child)  
      void changeChildIndex​(ej.mwt.Widget child, int index)  
      protected void computeContentOptimalSize​(ej.mwt.util.Size size)  
      void insertChild​(ej.mwt.Widget child, int index)  
      protected void layOutChildren​(int contentWidth, int contentHeight)  
      void removeAllChildren()  
      void removeChild​(ej.mwt.Widget child)  
      void replaceChild​(int index, ej.mwt.Widget child)  
      • Methods inherited from class ej.mwt.Container

        computeChildOptimalSize, getChild, getChildIndex, getChildren, getChildrenCount, getContentBounds, getContentHeight, getContentWidth, getContentX, getContentY, getWidgetAt, layOutAlignedChild, layOutChild, renderChild, renderContent, setHiddenChild, setHiddenChildren, setShownChild, setShownChildren, updateStyle
      • Methods inherited from class ej.mwt.Widget

        addClassSelector, contains, containsWidget, getAbsoluteX, getAbsoluteY, getDesktop, getHeight, getParent, getStyle, getWidth, getX, getY, handleEvent, hasClassSelector, isAttached, isEnabled, isInState, isShown, isTransparent, onAttached, onDetached, onHidden, onLaidOut, onShown, removeAllClassSelectors, removeClassSelector, render, requestLayOut, requestRender, requestRender, setClassSelectors, setEnabled, setPosition, setStyle
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OverlapContainer

        public OverlapContainer()
    • Method Detail

      • addChild

        public void addChild​(ej.mwt.Widget child)
        Overrides:
        addChild in class ej.mwt.Container
      • removeChild

        public void removeChild​(ej.mwt.Widget child)
        Overrides:
        removeChild in class ej.mwt.Container
      • insertChild

        public void insertChild​(ej.mwt.Widget child,
                                int index)
        Overrides:
        insertChild in class ej.mwt.Container
      • replaceChild

        public void replaceChild​(int index,
                                 ej.mwt.Widget child)
        Overrides:
        replaceChild in class ej.mwt.Container
      • removeAllChildren

        public void removeAllChildren()
        Overrides:
        removeAllChildren in class ej.mwt.Container
      • changeChildIndex

        public void changeChildIndex​(ej.mwt.Widget child,
                                     int index)
        Overrides:
        changeChildIndex in class ej.mwt.Container
      • computeContentOptimalSize

        protected void computeContentOptimalSize​(ej.mwt.util.Size size)
        Specified by:
        computeContentOptimalSize in class ej.mwt.Widget
      • layOutChildren

        protected void layOutChildren​(int contentWidth,
                                      int contentHeight)
        Specified by:
        layOutChildren in class ej.mwt.Container