bibliothek.gui.dock.station.flap.button
Interface ButtonContentCondition

All Known Implementing Classes:
AbstractButtonContentCondition

public interface ButtonContentCondition

This interface describes a property that is used by a ButtonContent

Author:
Benjamin Sigg

Method Summary
 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
 

Method Detail

shouldShow

boolean shouldShow(Dockable dockable,
                   boolean themeSuggestion)
Tells whether some property is true or false depending on the properties that are actually available.

Parameters:
dockable - the dockable for which the property will be used
themeSuggestion - whether the current DockTheme would choose this property to be true or false
Returns:
the value of the property

install

void install(Dockable dockable,
             ButtonContent content)
Informs this ButtonContentCondition that dockable has to be monitored for changes.

Parameters:
dockable - the element to monitor
content - the ButtonContent which is using this condition and whose method ButtonContent.handleChange(Dockable) should be called if this condition changes its value for dockable

uninstall

void uninstall(Dockable dockable,
               ButtonContent content)
Informs this ButtonContentCondition that dockable no longer has to be monitored

Parameters:
dockable - the element that no longer has to be monitored
content - the ButtonContent which was using this condition