bibliothek.gui.dock.themes.basic.action
Interface DockActionImportanceOrder

All Known Implementing Classes:
CActionImportanceOrder, DefaultDockActionImportanceOrder

public interface DockActionImportanceOrder

DockActionImportanceOrder is used by ButtonPanel to decide which actions are more important than others. If there is not enough space, the actions that are less important are moved to a menu.

Author:
Benjamin Sigg

Field Summary
static PropertyKey<DockActionImportanceOrder> ORDER
          A PropertyKey used to set the order in the DockProperties
 
Method Summary
 void order(DockAction[] actions)
          Sorts the actions by their important, the most important action has to be at index 0, while the least important action is at index actions.length-1.
 

Field Detail

ORDER

static final PropertyKey<DockActionImportanceOrder> ORDER
A PropertyKey used to set the order in the DockProperties

Method Detail

order

void order(DockAction[] actions)
Sorts the actions by their important, the most important action has to be at index 0, while the least important action is at index actions.length-1. This method must not add or remove any actions from action, it must only rearrange the content of actions

Parameters:
actions - the array of actions to sort