public class TabItem extends AbstractItem
TabSwitcher.| Modifier and Type | Method and Description |
|---|---|
static TabItem |
create(Model model,
<any> viewRecycler,
int index)
Creates a new item, which contains information about a tab of a tab switcher.
|
static TabItem |
create(Model model,
<any> viewRecycler,
int index,
Tab tab)
Creates a new item, which contains information about a specific tab.
|
static TabItem |
create(Model model,
int index,
Tab tab)
Creates a new item, which contains information about a tab of a tab switcher.
|
boolean |
equals(java.lang.Object obj) |
Tab |
getTab()
Returns the tab.
|
AbstractTabViewHolder |
getViewHolder()
Returns the view holder, which stores references to the views, which belong to the tab.
|
int |
hashCode() |
boolean |
isInflated()
Returns, whether a view, which is used to visualize the item, is currently inflated, or not.
|
void |
setViewHolder(AbstractTabViewHolder viewHolder)
Sets the view holder, which stores references to the views, which belong to the tab.
|
java.lang.String |
toString() |
public static TabItem create(Model model, int index, Tab tab)
model - The model, the tab belongs to, as an instance of the type Model. The model
may not be nullindex - The index of the tab as an Integer value. The index must be at least 0tab - The tab as an instance of the class Tab. The tab may not be nullTabItem. The
item may not be nullpublic static TabItem create(Model model, <any> viewRecycler, int index)
model - The model, the tab belongs to, as an instance of the type Model. The model
may not be nullviewRecycler - The view recycler, which is used to reuse the views, which are used to visualize
tabs, as an instance of the class AttachedViewRecycler. The view recycler may not be
nullindex - The index of the tab as an Integer value. The index must be at least 0TabItem. The
item may not be nullpublic static TabItem create(Model model, <any> viewRecycler, int index, Tab tab)
model - The model, the tab belongs to, as an instance of the type Model. The model
may not be nullviewRecycler - The view recycler, which is used to reuse the views, which are used to visualize
tabs, as an instance of the class AttachedViewRecycler. The view recycler may not be
nullindex - The index of the tab as an Integer value. The index must be at least 0tab - The tab as an instance of the class Tab. The tab may not be nullTabItem. The
item may not be nullpublic final Tab getTab()
Tab. The tab may not be nullpublic final AbstractTabViewHolder getViewHolder()
AbstractTabViewHolder or null, if
no view is is currently inflated to visualize the tabpublic final void setViewHolder(AbstractTabViewHolder viewHolder)
viewHolder - The view holder, which should be set, as an instance of the class AbstractTabViewHolder or null, if no view holder should be setpublic final boolean isInflated()
AbstractItemisInflated in class AbstractItempublic final java.lang.String toString()
toString in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Object