public final class FilterViewTabs extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FilterViewTabs.Tab
Class that represents a tab on a filter view.
|
Modifier and Type | Field and Description |
---|---|
FilterViewTabs.Tab |
defaultTab |
static FilterViewTabs.Tab |
FAVOURITES |
FilterViewTabs.Tab |
firstTab |
static FilterViewTabs.Tab |
MY |
static FilterViewTabs.Tab |
POPULAR |
static FilterViewTabs.Tab |
PROJECT |
static FilterViewTabs.Tab |
SEARCH |
Map<String,FilterViewTabs.Tab> |
tabs |
Constructor and Description |
---|
FilterViewTabs(List<FilterViewTabs.Tab> tabs,
FilterViewTabs.Tab defaultTab) |
Modifier and Type | Method and Description |
---|---|
FilterViewTabs.Tab |
getTab(String tabName) |
FilterViewTabs.Tab |
getTabSafely(String tabName)
Works out which view (tab) the user should be on based on the requested tab.
|
boolean |
isFirst(String tabName) |
boolean |
isValid(String tabName) |
public static final FilterViewTabs.Tab POPULAR
public static final FilterViewTabs.Tab SEARCH
public static final FilterViewTabs.Tab FAVOURITES
public static final FilterViewTabs.Tab MY
public static final FilterViewTabs.Tab PROJECT
public final Map<String,FilterViewTabs.Tab> tabs
public final FilterViewTabs.Tab defaultTab
public FilterViewTabs.Tab firstTab
public FilterViewTabs(List<FilterViewTabs.Tab> tabs, FilterViewTabs.Tab defaultTab)
public boolean isValid(String tabName)
public boolean isFirst(String tabName)
public FilterViewTabs.Tab getTab(String tabName)
public FilterViewTabs.Tab getTabSafely(String tabName)
tabName
- the tab the user has asked to be on, null is OK and results in a default.Copyright © 2002-2019 Atlassian. All Rights Reserved.