|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.interactor.IlpAbstractPopupMenuFactory
public abstract class IlpAbstractPopupMenuFactory
Abstract implementation of IlpPopupMenuFactory for creating pop-up
menus.
The method
createPopupMenu(ilog.cpl.util.selection.IlpObjectSelectionModel)
must be redefined either to return a pop-up menu, or to return
null.
One of the createPopupMenu methods can be redefined depending
on whether the need is:
IlpInteractionContext,
| Constructor Summary | |
|---|---|
IlpAbstractPopupMenuFactory()
|
|
| Method Summary | |
|---|---|
JPopupMenu |
createPopupMenu(IlpInteractionContext ctxt)
Delegates the menu creation to the method createPopupMenu(IlpRepresentationObjectSelectionModel) after
having retrieved the selection model used by the view. |
JPopupMenu |
createPopupMenu(IlpObjectSelectionModel ilpSelectionModel)
Redefine this method if you want to create your pop-up menu, knowing the selected business objects in the view the menu is made for. |
JPopupMenu |
createPopupMenu(IlpRepresentationObjectSelectionModel rpSelectionModel)
Redefine this method if you want to create your pop-up menu, knowing the selected representation objects in the view the menu is made for. |
IlpInteractionContext |
getInteractionContext()
Returns the interaction context containing information needed to create the pop-up menu. |
IlpGraphicView |
getView()
Returns the view in which the pop-up menu is to be displayed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlpAbstractPopupMenuFactory()
| Method Detail |
|---|
public IlpInteractionContext getInteractionContext()
public IlpGraphicView getView()
public JPopupMenu createPopupMenu(IlpInteractionContext ctxt)
createPopupMenu(IlpRepresentationObjectSelectionModel) after
having retrieved the selection model used by the view.
createPopupMenu in interface IlpPopupMenuFactoryctxt - The interaction context that references the view
for which the popup menu is to be created.public JPopupMenu createPopupMenu(IlpRepresentationObjectSelectionModel rpSelectionModel)
Otherwise redefine the method createPopupMenu(IlpObjectSelectionModel).
rpSelectionModel - The selection model used by the view this menu is
made for. This selection model allows you to find the
selected representation objects.public JPopupMenu createPopupMenu(IlpObjectSelectionModel ilpSelectionModel)
By default this method returns an empty popup menu.
ilpSelectionModel - The selection model used by the view this menu is
made for. This selection model allows you to find
the selected business objects.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||