public class TabConfiguration extends Object
TabConfigurations
factory.Modifier and Type | Class and Description |
---|---|
static class |
TabConfiguration.ActionHiding
Tells at which moment actions on a tab should be made invisible
|
static class |
TabConfiguration.IconHiding
Tells at which moment the icon on a tab is made invisible
|
Constructor and Description |
---|
TabConfiguration() |
Modifier and Type | Method and Description |
---|---|
TabConfiguration.ActionHiding |
getActionHiding()
Gets if and when buttons on the tab are made invisible.
|
TabConfiguration.IconHiding |
getIconHiding()
Gets if and when the icon is made invisible.
|
boolean |
isHiddenActionUsingSpace()
Tells whether hidden actions still use up some space.
|
boolean |
isKeepLabelBig()
Tells whether the label should be kept big enough to show the icon even if the tab itself
demands a size that is smaller.
|
void |
setActionHiding(TabConfiguration.ActionHiding actionHiding)
Tells if and when to make buttons on the tab invisible.
|
void |
setHiddenActionUsingSpace(boolean hiddenActionUsingSpace)
Tells whether hidden actions still can influence the layout by using up some space.
|
void |
setIconHiding(TabConfiguration.IconHiding iconHiding)
Tells if and when to make the icon invisible.
|
void |
setKeepLabelBig(boolean keepLabelBig)
Sets whether the label should be kept big enough to show the icon even if the tab itself
demands a size that is smaller.
|
public void setActionHiding(TabConfiguration.ActionHiding actionHiding)
actionHiding
- hiding strategy, not null
public TabConfiguration.ActionHiding getActionHiding()
null
public void setIconHiding(TabConfiguration.IconHiding iconHiding)
iconHiding
- hiding strategy, not null
public TabConfiguration.IconHiding getIconHiding()
null
public void setKeepLabelBig(boolean keepLabelBig)
true
.keepLabelBig
- whether to keep the label bigpublic boolean isKeepLabelBig()
setKeepLabelBig(boolean)
public void setHiddenActionUsingSpace(boolean hiddenActionUsingSpace)
true
hidden
actions are assumed to require 0
pixels but still have a border, otherwise the actions are
treated as if they would not exist. The default value of this property is true
.hiddenActionUsingSpace
- whether hidden actions have an influence on the layout or notpublic boolean isHiddenActionUsingSpace()
setHiddenActionUsingSpace(boolean)