public class FocusEvent extends Object
Focus processing is done in the following order:
IFocusEngine.getCurrentFocus()
will reflect the new focus component,
IFocusEngine
using the IFocusVetoListener
interface. If the FocusVetoException
is
thrown, the original focus is restored in the focus engine without notification.
IFocusComp.onFocusLost(IFocusComp, IGProp, boolean)
in the
event FocusEvent
.
PropFocusEvent
to the component losing focus and its parents.
with PropFocusEvent.isFocusLost()
true
.
PropCnrFocusEvent
to the component losing focus and its descendants
with PropCnrFocusEvent.isFocusLost()
true
.
IFocusEngine
using
IFocusListener.onFocusChanged(FocusEvent)
.
IFocusComp.onFocusGained(IFocusComp, IGProp, boolean)
in the
event FocusEvent
.
PropFocusEvent
to the component gaining focus and its parents.
with PropFocusEvent.isFocusGained()
true
.
PropCnrFocusEvent
to the component gaining focus and its descendants
with PropCnrFocusEvent.isFocusGained()
true
.
Modifier and Type | Field and Description |
---|---|
boolean |
isRemoteInduced
Flag indicating this event is caused by a remote event, i.e.
|
IFocusComp |
opposite
Opposite component that previously had focus, null for none.
|
IFocusComp |
source
Component that receives focus, null for none.
|
GProp<?> |
trigger
The trigger property, e.g.
|
Constructor and Description |
---|
FocusEvent(IFocusComp source,
IFocusComp opposite,
IGProp<?> trigger,
boolean isRemoteInduced)
Constructs a focus event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isHistoryEntryRequested()
Returns the flag for history entry requested.
|
protected String |
paramString()
Formats the parameters to a string.
|
void |
requestHistoryEntry()
Requests a history event from the focus engine.
|
String |
toString()
Formats the event as a String.
|
public final IFocusComp opposite
null
during application start, but could be null
for a while if e.g. a component that had focus is destroyed and no focus can currently
be set elsewhere, e.g. because the client session is disconnected.public final IFocusComp source
null
if a component that had focus is destroyed and no other focus receiver is found.public final GProp<?> trigger
public final boolean isRemoteInduced
public FocusEvent(IFocusComp source, IFocusComp opposite, IGProp<?> trigger, boolean isRemoteInduced)
source
- Component that receives focus, null for none. The focus receiver is set to null
if a component that had focus is destroyed and no other focus receiver is found.opposite
- Opposite component that previously had focus, null for none. In general, this
value is only null
during application start, but could be null
for a while if e.g. a component that had focus is destroyed and no focus can currently
be set elsewhere, e.g. because the client session is disconnected.trigger
- The trigger property, e.g. UIButton or UIText.isRemoteInduced
- Flag indicating this event is caused by a remote event, i.e. due to user interaction
on the client side.public String toString()
public void requestHistoryEntry()
public boolean isHistoryEntryRequested()
protected String paramString()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.