public class DefaultDockActionImportanceOrder extends Object implements DockActionImportanceOrder
DockActions depending on the annotation DockActionImportance. It
can be subclassed in order to override the default behavior.ORDER| Constructor and Description |
|---|
DefaultDockActionImportanceOrder() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
getImportance(DockAction action)
Tells how important
action is. |
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. |
public void order(DockAction[] actions)
DockActionImportanceOrder0, 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
actionsorder in interface DockActionImportanceOrderactions - the array of actions to sortprotected double getImportance(DockAction action)
action is. The default implementation just searches for
a DockActionImportance, but subclasses may change the behavior.action - the action whose importance is searchedCopyright © 2017 Docking Frames. All rights reserved.