@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.UIEventInit
Event.EventInit
AT_TARGET_PHASE, BUBBLING_PHASE, CAPTURING_PHASE, NONE_PHASE
PropertyChanged
Constructor and Description |
---|
FocusEvent(String type)
Initializes a new instance of the
FocusEvent class. |
FocusEvent(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(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, getView
createDOMContentLoadedEvent, createError, createEvent, createEvent, createEventByType, dispatch, getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getTarget, getTimeStamp, getType, initEvent, isTrusted, preventDefault, setCurrentTarget, setEventPhase, setTarget, stopImmediatePropagation, stopPropagation
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public FocusEvent(String type)
Initializes a new instance of the FocusEvent
class.
type
- The event type.public FocusEvent(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(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.