public class FocusEvent extends Event
Modifier and Type | Field and Description |
---|---|
private boolean |
mouse
true if the focus event was caused by a mouse event. |
Constructor and Description |
---|
FocusEvent(Widget source,
int id)
Constructor.
|
FocusEvent(Widget source,
Widget other,
int id)
Constructor.
|
FocusEvent(Widget source,
Widget other,
int id,
boolean mouse)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(FocusListener listener)
Helper method which calls appropriate listeners' method depending on the
event type.
|
boolean |
isMouse()
Returns
true if the focus event was caused by a mouse event. |
void |
print(PrintHelper printer)
Print all class-specific fields.
|
consume, id, isConsumed, other, source, toString
public FocusEvent(Widget source, int id)
source
- Event source.id
- Event type ID.public FocusEvent(Widget source, Widget other, int id)
source
- Event source.other
- Event companion widget.id
- Event type ID.public void dispatch(FocusListener listener)
listener
- Listener to which event will be passed.public boolean isMouse()
true
if the focus event was caused by a mouse event.true
if the focus event was caused by a mouse event.public void print(PrintHelper printer)