Class TabModel

All Implemented Interfaces:
IAdaptable, IPropertySource

public class TabModel extends AbstractContainerModel
The model for a tab widget.
  • Field Details

  • Constructor Details

    • TabModel

      public TabModel()
  • Method Details

    • configureProperties

      protected void configureProperties()
      Description copied from class: AbstractWidgetModel
      Configure the properties of the widget. Subclass should add new properties in this method.
      Specified by:
      configureProperties in class AbstractWidgetModel
    • makeTabPropID

      public static String makeTabPropID(String propIDPre, int index)
    • getTypeID

      public String getTypeID()
      Specified by:
      getTypeID in class AbstractWidgetModel
      Returns:
      the unique typeID of the model.
    • getTabPropertyValue

      public Object getTabPropertyValue(int index, TabModel.TabProperty tabProperty)
      Get the property value of a tabItem.
      Parameters:
      index - index of the tab item.
      tabProperty - the property.
      Returns:
      the value of the property.
    • getTabsAmount

      public int getTabsAmount()
      Returns:
      The number of tabs.
    • getMinimumTabHeight

      public int getMinimumTabHeight()
    • isHorizontal

      public boolean isHorizontal()
      Returns:
      tab position
    • getActiveTab

      public int getActiveTab()
      Returns:
      The defined active tab.
    • toAbsolutePath

      public IPath toAbsolutePath(IPath path)
    • addTab

      public void addTab(int index, TabItem tabItem)
      Add a TabItem to the index;
      Parameters:
      index -
      tabItem -
    • removeTab

      public void removeTab(int index)
      Remove a tab.
      Parameters:
      index -
    • setTabItemHandler

      public void setTabItemHandler(TabModel.ITabItemHandler tabItemHandler)
      Parameters:
      tabItemHandler - the tabItemHandler to set
    • getTabItemHandler

      public TabModel.ITabItemHandler getTabItemHandler()
      Returns:
      the tabItemHandler
    • isChildrenOperationAllowable

      public boolean isChildrenOperationAllowable()
      Description copied from class: AbstractContainerModel
      This is a flag to show if children operation edit policies should be installed.
      Overrides:
      isChildrenOperationAllowable in class AbstractContainerModel
      Returns:
      true if children operation allowable.