|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.AbstractButton | +--javax.swing.JMenuItem | +--javax.swing.JMenu | +--org.favabeans.views.ContextMenu
A JMenu
that presents a popup of operations that can be
performed on an object as displayed within a View
.
Inner classes inherited from class javax.swing.JMenu |
JMenu.AccessibleJMenu, JMenu.WinListener |
Inner classes inherited from class javax.swing.JMenuItem |
JMenuItem.AccessibleJMenuItem |
Inner classes inherited from class javax.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
Fields inherited from class javax.swing.JMenu |
popupListener |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ContextMenu(Object target)
Create a ContextMenu for an object displayed in a
View , with no support for Facet s and no parent
View . |
|
ContextMenu(View parentView,
Object target)
Create a ContextMenu for an object displayed in a
View , with no support for Facet s. |
|
ContextMenu(View parentView,
Object target,
Type[] facetTypes)
Create a ContextMenu for an object displayed in a
View . |
Method Summary | |
Type[] |
getFacetTypes()
|
View |
getParentView()
|
JPopupMenu |
getPopupMenu()
|
Object |
getTarget()
|
Methods inherited from class java.awt.Container |
add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.MenuElement |
processKeyEvent, processMouseEvent |
Constructor Detail |
public ContextMenu(View parentView, Object target, Type[] facetTypes)
ContextMenu
for an object displayed in a
View
.parentView
- the View
on behalf of which to
display a context menu. This may be null
if the
client does not wish the operations on any View
to be
included in this <>ContextMenu.target
- the object for which the ContextMenu
will be displayed. This may be the current model of the View
(as obtainable via View.getModel()
) or, in the
case where the parent View
displays several objects,
some object that happens to be displayed [at a particular
physical location] in the View
.facetTypes
- a series of Type
s of Facet
s
of targetContextMenu
is actually displayed is the
Facet
of Type
facetTypes[0]
.FacetView
public ContextMenu(View parentView, Object target)
ContextMenu
for an object displayed in a
View
, with no support for Facet
s.ContextMenu(View, Object, Type[])
public ContextMenu(Object target)
ContextMenu
for an object displayed in a
View
, with no support for Facet
s and no parent
View
.ContextMenu(View, Object, Type[])
Method Detail |
public View getParentView()
public Object getTarget()
public Type[] getFacetTypes()
public JPopupMenu getPopupMenu()
getPopupMenu
in class JMenu
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |