public interface ButtonContentCondition
ButtonContent
Modifier and Type | Method and Description |
---|---|
void |
install(Dockable dockable,
ButtonContent content)
Informs this
ButtonContentCondition that dockable has to be monitored
for changes. |
boolean |
shouldShow(Dockable dockable,
boolean themeSuggestion)
Tells whether some property is
true or false depending on the properties that
are actually available. |
void |
uninstall(Dockable dockable,
ButtonContent content)
Informs this
ButtonContentCondition that dockable no longer has to
be monitored |
boolean shouldShow(Dockable dockable, boolean themeSuggestion)
true
or false
depending on the properties that
are actually available.dockable
- the dockable for which the property will be usedthemeSuggestion
- whether the current DockTheme
would choose this property to be true
or false
void install(Dockable dockable, ButtonContent content)
ButtonContentCondition
that dockable
has to be monitored
for changes.dockable
- the element to monitorcontent
- the ButtonContent
which is using this condition and whose method
ButtonContent.handleChange(Dockable)
should be called if this condition changes
its value for dockable
void uninstall(Dockable dockable, ButtonContent content)
ButtonContentCondition
that dockable
no longer has to
be monitoreddockable
- the element that no longer has to be monitoredcontent
- the ButtonContent
which was using this condition