@DOMObjectAttribute @DOMNameAttribute(name="FocusEvent") public class FocusEvent extends UIEvent
The FocusEvent interface provides specific contextual information associated with Focus events.
| Modifier and Type | Class and Description |
|---|---|
class |
FocusEvent.FocusEventInit
Represents a dictionary that is having optional arguments for setting the details information about the event.
|
UIEvent.EventModifierInit, UIEvent.UIEventInitEvent.EventInitAT_TARGET_PHASE, BUBBLING_PHASE, CAPTURING_PHASE, NONE_PHASEPropertyChanged, PropertyChangedDelegate| Constructor and Description |
|---|
FocusEvent(java.lang.String type)
Initializes a new instance of the
FocusEvent class. |
FocusEvent(java.lang.String type,
FocusEvent.FocusEventInit eventInitDict)
Initializes a new instance of the
FocusEvent class. |
| Modifier and Type | Method and Description |
|---|---|
static Event |
createBlurEvent(UIEvent.UIEventInit eventInit) |
static Event |
createEvent(java.lang.String type,
FocusEvent.FocusEventInit eventInit) |
static Event |
createFocusEvent(UIEvent.UIEventInit eventInit) |
static Event |
createFocusInEvent(UIEvent.UIEventInit eventInit) |
static Event |
createFocusOutEvent(UIEvent.UIEventInit eventInit) |
EventTarget |
getRelatedTarget()
Used to identify a secondary EventTarget related to a Focus event, depending on the type of event.
|
createAbortEvent, createEvent, createLoadEvent, createSelectEvent, createUnLoadEvent, getDetail, getViewcreateDOMContentLoadedEvent, createError, createEvent, createEvent, createEventByType, dispatch, getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getTarget, getTimeStamp, getType, initEvent, isTrusted, preventDefault, setCurrentTarget, setEventPhase, setTarget, stopImmediatePropagation, stopPropagationfireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBindingpublic FocusEvent(java.lang.String type)
Initializes a new instance of the FocusEvent class.
type - The event type.public FocusEvent(java.lang.String type,
FocusEvent.FocusEventInit eventInitDict)
Initializes a new instance of the FocusEvent class.
type - The event type.eventInitDict - The event initialize dictionary.public static Event createBlurEvent(UIEvent.UIEventInit eventInit)
public static Event createFocusEvent(UIEvent.UIEventInit eventInit)
public static Event createFocusInEvent(UIEvent.UIEventInit eventInit)
public static Event createFocusOutEvent(UIEvent.UIEventInit eventInit)
public static Event createEvent(java.lang.String type, FocusEvent.FocusEventInit eventInit)
@DOMNameAttribute(name="relatedTarget") public EventTarget getRelatedTarget()
Used to identify a secondary EventTarget related to a Focus event, depending on the type of event.
Value: The related target.