bibliothek.gui.dock.toolbar.expand
Interface ExpandableToolbarItemListener


public interface ExpandableToolbarItemListener

A listener that can be added to an ExpandableToolbarItem, it will be informed if the ExpandedStates change.

Author:
Benjamin Sigg

Method Summary
 void changed(ExpandableToolbarItem item, ExpandedState oldState, ExpandedState newState)
          Called if the state of item changed from oldState to newState.
 void enablementChanged(ExpandableToolbarItem item, ExpandedState state, boolean enabled)
          Called if the result of ExpandableToolbarItem.isEnabled(ExpandedState) changed for item and state to enabled.
 

Method Detail

enablementChanged

void enablementChanged(ExpandableToolbarItem item,
                       ExpandedState state,
                       boolean enabled)
Called if the result of ExpandableToolbarItem.isEnabled(ExpandedState) changed for item and state to enabled.

Parameters:
item - the source of the event
state - the state which was changed
enabled - whether state is now enabled or not

changed

void changed(ExpandableToolbarItem item,
             ExpandedState oldState,
             ExpandedState newState)
Called if the state of item changed from oldState to newState.

Parameters:
item - the source of the event
oldState - the old state of item
newState - the new state of item