public interface PopupMenuFactory
Most application may popup a different menu item list in different context. Visit the passed in databox selection model or access databox from selection model to check current data status.
Modifier and Type | Method and Description |
---|---|
javax.swing.JPopupMenu |
getPopupMenu(DataBoxSelectionModel selectionModel,
java.awt.Point point)
Get a JPopupMenu which associated with given selection elements.
|
javax.swing.JPopupMenu getPopupMenu(DataBoxSelectionModel selectionModel, java.awt.Point point)
PopupMenuFactory can be setted to many different components like network, table, tree, chassis. If these components have the same box instance and the same PopupMenuFactory, they can performe the same popup menu. This feature can given congruous popup menu even the element displayed and clicked from different component.
selectionModel
- DataBoxSelectionModel selection model of the related databox.point
- Point the mouse clicked pointCopyright © 2002 - 2010 Serva Software. All Rights Reserved.