T
- The type of the item this event carries.public class ItemClickedEventArgs<T> extends ItemEventArgs<T>
ItemClicked
,
ItemDoubleClicked
,
ItemLeftClicked
,
ItemLeftDoubleClicked
,
ItemRightClicked
and ItemRightDoubleClicked
events.EMPTY
Constructor and Description |
---|
ItemClickedEventArgs(T item,
PointD location)
Initializes a new instance of the
ItemClickedEventArgs class. |
Modifier and Type | Method and Description |
---|---|
PointD |
getLocation()
Gets the location of the click.
|
boolean |
isHandled()
Gets a value indicating whether this
ItemClickedEventArgs is handled. |
void |
setHandled(boolean value)
Sets a value indicating whether this
ItemClickedEventArgs is handled. |
getItem
public ItemClickedEventArgs(T item, PointD location)
ItemClickedEventArgs
class.item
- The item which is the subject of the event.location
- The location of the click.public final PointD getLocation()
public final boolean isHandled()
ItemClickedEventArgs
is handled.
Setting the event to handled indicates whether the event should be further propagated or whether there has not been any code that actively handled the event to the event source. How this flag is actually being treated depends on the source of the event.
setHandled(boolean)
public final void setHandled(boolean value)
ItemClickedEventArgs
is handled.
Setting the event to handled indicates whether the event should be further propagated or whether there has not been any code that actively handled the event to the event source. How this flag is actually being treated depends on the source of the event.
value
- The Handled to set.isHandled()