public abstract class IlpAbstractPopupMenuFactory extends Object implements IlpPopupMenuFactory
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 and Description |
---|
IlpAbstractPopupMenuFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 IlpPopupMenuFactory
ctxt
- The interaction context that references the view
for which the pop-up 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 pop-up 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.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.