protected class AbstractUiWidget.EventSender extends Object implements UiHandlerEvent, UiFeatureEvent, AttributeReadFocused
Modifier and Type | Field and Description |
---|---|
private boolean |
focused |
private List<AbstractUiWidget.HandlerContainer> |
handlerContainers |
private int |
removeCount |
Constructor and Description |
---|
EventSender()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(UiHandlerEvent handler)
This method adds the given
UiHandlerEvent to this object. |
int |
getRemoveCount() |
boolean |
isFocused()
This method determines if this object currently has the focus.
|
void |
onEvent(UiEvent event)
|
boolean |
removeEventHandler(UiHandlerEvent handler)
This method removes the given
UiHandlerEvent from this object. |
private final List<AbstractUiWidget.HandlerContainer> handlerContainers
addEventHandler(UiHandlerEvent)
private volatile int removeCount
getRemoveCount()
private boolean focused
isFocused()
public boolean isFocused()
isFocused
in interface AttributeReadFocused
true
if this object is focused, false
otherwise.public void addEventHandler(UiHandlerEvent handler)
UiHandlerEvent
to this object.addEventHandler
in interface UiFeatureEvent
handler
- is the UiHandlerEvent
to add.public boolean removeEventHandler(UiHandlerEvent handler)
UiHandlerEvent
from this object.removeEventHandler
in interface UiFeatureEvent
handler
- is the UiHandlerEvent
to remove.true
if the handler
has been removed successfully, false
if it was NOT registered
and nothing has changed.public void onEvent(UiEvent event)
onEvent
in interface UiHandlerEvent
event
- is the UiEvent
that has been sent.public int getRemoveCount()
Copyright © 2001–2016 mmm-Team. All rights reserved.