TModelItem
- The type of the model item
.public class PopulateItemContextMenuEventArgs<TModelItem> extends PopulateMenuEventArgs
PopulateMenuEventArgs
that carries the Item
for which the context
menu should be populated.EMPTY
Constructor and Description |
---|
PopulateItemContextMenuEventArgs(IInputModeContext context,
PointD queryLocation,
Object menu,
EventSource eventSource,
TModelItem item)
Initializes a new instance of the
PopulateItemContextMenuEventArgs class. |
Modifier and Type | Method and Description |
---|---|
TModelItem |
getItem()
Gets the item for which the tool tip is queried.
|
getEventSource, getMenu, getQueryLocation, isHandled, isShowingMenuRequested, setHandled, setShowingMenuRequested
getContext
public PopulateItemContextMenuEventArgs(IInputModeContext context, PointD queryLocation, Object menu, EventSource eventSource, TModelItem item)
PopulateItemContextMenuEventArgs
class.context
- The context to populate the menu for.queryLocation
- The query location.menu
- The context menu.eventSource
- The for the event that triggered the context menu.item
- The item for which the context menu should be populated, may be null
.public final TModelItem getItem()
null
.