Class TabPanelEntry
- java.lang.Object
-
- org.uberfire.client.views.pfly.tab.TabPanelEntry
-
- All Implemented Interfaces:
org.gwtbootstrap3.client.ui.base.HasActive
public class TabPanelEntry extends Object implements org.gwtbootstrap3.client.ui.base.HasActive
Represents an entry in aTabPanelWithDropdowns. Keeps track of the current title, the tab widget (which could be one of two different types depending on whether the entry is at top-level tab or nested in a dropdown tab), and the associated content widget.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTabPanelEntry.DropDownTabListItemRepresents the tab widget that lives in the tab bar or under a dropdown tab.
-
Constructor Summary
Constructors Constructor Description TabPanelEntry(String title, com.google.gwt.user.client.ui.Widget contents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.gwtbootstrap3.client.ui.TabPanegetContentPane()Returns the intermediate container that holds the real contents.com.google.gwt.user.client.ui.WidgetgetContents()TabPanelEntry.DropDownTabListItemgetTabWidget()StringgetTitle()booleanisActive()Returns true if this tab panel entry believes it's currently the active (displayed) tab in its tab panel.voidsetActive(boolean b)Sets or clears the active state on this tab.voidsetInDropdown(boolean inDropdown)voidsetTitle(String title)voidshowTab()Makes this tab show itself and become the active tab, replacing whatever tab was previously active.StringtoString()
-
-
-
Constructor Detail
-
TabPanelEntry
public TabPanelEntry(String title, com.google.gwt.user.client.ui.Widget contents)
-
-
Method Detail
-
getTabWidget
public TabPanelEntry.DropDownTabListItem getTabWidget()
-
getContents
public com.google.gwt.user.client.ui.Widget getContents()
-
getContentPane
public org.gwtbootstrap3.client.ui.TabPane getContentPane()
Returns the intermediate container that holds the real contents.
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
setInDropdown
public void setInDropdown(boolean inDropdown)
-
isActive
public boolean isActive()
Returns true if this tab panel entry believes it's currently the active (displayed) tab in its tab panel.- Specified by:
isActivein interfaceorg.gwtbootstrap3.client.ui.base.HasActive
-
setActive
public void setActive(boolean b)
Sets or clears the active state on this tab. Does not actually cause the tab to hide or show.- Specified by:
setActivein interfaceorg.gwtbootstrap3.client.ui.base.HasActive
-
showTab
public void showTab()
Makes this tab show itself and become the active tab, replacing whatever tab was previously active.
-
-