org.tm4j.tmnav.app.menu .InvokableJMenuItem

Description

Classes implememt this interface to be invoked with a distinct selection.

Field Summary
DISABLED indicates that the menuitem representing this instance shall be presented but disabled for the current popup request
ENABLED indicates that the menuitem representing this instance shall be presented and be fully enabled for the current popup request
HIDDEN indicates that this instance don't want to add a menu item to the current popup request
Method Summary
void getStateForSelection(org.tm4j.tmnav.app.menu.Selection selection)
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.
void invokeWithSelection(org.tm4j.tmnav.app.menu.Selection selection)
The menuitem that represents this instace was chosen by the user.
void prepare(org.tm4j.tmnav.env.NavContext ctx,java.lang.Object ref)
Called from TMNav once per application session to give the implementation access to the global TMNav services and to an object that is considered as the object to which this item can refer.