Class DecoratedStackPanel

All Implemented Interfaces:
HasAttachHandlers, HasHandlers, EventListener, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, InsertPanel, InsertPanel.ForIsWidget, IsWidget, Iterable<Widget>

public class DecoratedStackPanel extends StackPanel

A StackPanel that wraps each item in a 2x3 grid (six box), which allows users to add rounded corners.

This widget will only work in quirks mode. If your application is in Standards Mode, use StackLayoutPanel instead.

CSS Style Rules

  • .gwt-DecoratedStackPanel { the panel itself }
  • .gwt-DecoratedStackPanel .gwt-StackPanelItem { unselected items }
  • .gwt-DecoratedStackPanel .gwt-StackPanelItem-selected { selected items }
  • .gwt-DecoratedStackPanel .gwt-StackPanelContent { the wrapper around the contents of the item }
  • .gwt-DecoratedStackPanel .stackItemTopLeft { top left corner of the item}
  • .gwt-DecoratedStackPanel .stackItemTopLeftInner { the inner element of the cell}
  • .gwt-DecoratedStackPanel .stackItemTopCenter { top center of the item}
  • .gwt-DecoratedStackPanel .stackItemTopCenterInner { the inner element of the cell}
  • .gwt-DecoratedStackPanel .stackItemTopRight { top right corner of the item}
  • .gwt-DecoratedStackPanel .stackItemTopRightInner { the inner element of the cell}
  • .gwt-DecoratedStackPanel .stackItemMiddleLeft { left side of the item }
  • .gwt-DecoratedStackPanel .stackItemMiddleLeftInner { the inner element of the cell}
  • .gwt-DecoratedStackPanel .stackItemMiddleCenter { center of the item, where the item text resides }
  • .gwt-DecoratedStackPanel .stackItemMiddleCenterInner { the inner element of the cell}
  • .gwt-DecoratedStackPanel .stackItemMiddleRight { right side of the item }
  • .gwt-DecoratedStackPanel .stackItemMiddleRightInner { the inner element of the cell}

See Also:
  • Field Details

  • Constructor Details

    • DecoratedStackPanel

      public DecoratedStackPanel()
      Creates an empty decorated stack panel.
  • Method Details

    • createHeaderElem

      Element createHeaderElem()
      Description copied from class: StackPanel
      Returns a header element.
      Overrides:
      createHeaderElem in class StackPanel
    • getHeaderTextElem

      Element getHeaderTextElem(Element headerElem)
      Description copied from class: StackPanel
      Get the element that holds the header text given the header element created by #createHeaderElement.
      Overrides:
      getHeaderTextElem in class StackPanel
      Parameters:
      headerElem - the header element
      Returns:
      the element around the header text