org.tm4j.tmnav.app.menu.InvokableJMenuItem .getStateForSelection(org.tm4j.tmnav.app.menu.Selection selection)
Description
Called from TMNav while putting the popup menu together.
This happens every time, when the user demands the popup.
Implementations should check, if the given selection is suitable
for their purpose and decide how they want to take
part in the currently builded popup menu.
The options include to not take part (HIDDEN), to be disabled
(DISABLED) or to be enabled (ENABLED). The choice is expressed
by returning one of the constants defined in this interface.
Parameters | ||
---|---|---|
org.tm4j.tmnav.app.menu.Selection | selection |
Returns
one of the constants defined in this interface.
Meta Data (1)
Other Resources
Related Topics
Has Parameters