package com.overlap2d.plugins.tiled.view.tabs; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.kotcrab.vis.ui.widget.VisLabel; import com.kotcrab.vis.ui.widget.tabbedpane.Tab; import com.overlap2d.plugins.tiled.TiledPanel; /** * Created by mariam on 10/30/15. */ public class DefaultTab extends Tab { protected TiledPanel panel; protected int tabIndex; protected Table content = new Table(); protected String tabTitle = ""; public DefaultTab(TiledPanel panel, String tabTitle, int tabIndex) { super(false, false); //tab is not savable, tab is not closeable by user this.panel = panel; this.tabTitle = tabTitle; this.tabIndex = tabIndex; // content.setDebug(true); } public void initView() { content.add(new VisLabel(tabTitle+" example")); } @Override public String getTabTitle () { return tabTitle; } @Override public Table getContentTable () { return content; } public int getTabIndex() { return tabIndex; } }