Class MultiTabPart

java.lang.Object
org.adempiere.webui.part.AbstractUIPart
org.adempiere.webui.part.MultiTabPart
All Implemented Interfaces:
ISupportMask, UIPart

public class MultiTabPart extends AbstractUIPart
Controller for multiple tab UI block.
Author:
Low Heng Sin
  • Constructor Details

    • MultiTabPart

      public MultiTabPart()
  • Method Details

    • doCreatePart

      protected org.zkoss.zk.ui.Component doCreatePart(org.zkoss.zk.ui.Component parent)
      Description copied from class: AbstractUIPart
      Sub class override this to create root UI block or child UI block
      Specified by:
      doCreatePart in class AbstractUIPart
      Parameters:
      parent - parent Component or null for root UI block
      Returns:
      Component
    • addTab

      public void addTab(org.zkoss.zk.ui.Component comp, String title, boolean closeable)
      Add comp as new tab
      Parameters:
      comp -
      title -
      closeable -
    • addTab

      public void addTab(org.zkoss.zk.ui.Component comp, String title, boolean closeable, boolean enable)
      Add comp as new tab
      Parameters:
      comp -
      title -
      closeable -
      enable -
    • setSelectedTab

      public void setSelectedTab(Tab tab)
      Set selected tab
      Parameters:
      tab -
    • removeTab

      public void removeTab()
      Close selected tab
    • getComponent

      public Tabbox getComponent()
      Get root component of UI block
      Returns:
      Tabbox