Enum Class EventType
- All Implemented Interfaces:
Serializable
,Comparable<EventType>
,Constable
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAnimation end eventAnimation start eventCalendar component view change eventCalendar component click eventCalendar component double-click eventCalendar schedule click eventCalendar schedule move eventChart click eventChart lasso eventClick eventClient connected eventCopy eventCut eventDone eventDouble-click eventDragging end eventDragging start eventComponent drop eventEnter button pressed eventError eventFetch done eventFilter bar change filter editor eventFilter bar filtering eventFocus eventFocus in eventFocus out eventForm change eventInput field value change eventHot key pressed eventInput eventJavaScript error eventKey down eventKeyboard key press eventKey up eventListGrid refresh data eventListGrid column move eventListGrid column resize eventListGrid column show or hide eventList grid header click eventList grid header double-click eventListGrid next page request eventListGrid resize eventListGrid row click eventListGrid row double-click eventListGrid sort data eventFocus loss eventMouse button down eventThe mouse enter eventThe mouse leave eventThe mouse move eventMouse out eventThe mouse over eventMouse up eventPage resize eventPaste eventScroll eventTouch cancel eventTouch end eventTouch move eventTouch start eventMousewheel event -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCustomEvent
(String eventName, Class<? extends BaseEvent> eventClass, Class<? extends BrowserEventHandler> eventHandlerInterface) Registers a custom event among the event typesstatic EventType
fromEventType
(com.google.gson.JsonElement receivedEventType, com.google.gson.JsonElement receivedBrowserEventName) Determines the event type, based on the specified JSON elements.getEvent()
Class<? extends BrowserEventHandler>
Gets the event handler interface classGets the name of the event handler methodboolean
static EventType
Returns the enum constant of this class with the specified name.static EventType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANIMATION_END
Animation end event
The event is triggered when the animation ends on a component
- See Also:
-
ANIMATION_START
Animation start event
The event is triggered when the animation starts on a component
- See Also:
-
LOSES_FOCUS
Focus loss event
The event is triggered when a component loses focus
- See Also:
-
FOCUS
Focus event
The event is triggered when a component gains focus
- See Also:
-
FOCUS_IN
Focus in event
The event is triggered when a component is about to gain focus
- See Also:
-
FOCUS_OUT
Focus out event
The event is triggered when a component is about to lose focus
- See Also:
-
COPY
Copy event
The event is triggered when the user copies data from a component.
- See Also:
-
CUT
Cut event
The event is triggered when the user cuts data from a component.
- See Also:
-
PASTE
Paste event
The event is triggered when the user pastes data to a component.
- See Also:
-
INPUT
Input event
The event is triggered when the user is inputting data into an input field.
- See Also:
-
CLICK
Click event
The event is triggered when the user clicks on a component.
- See Also:
-
DOUBLE_CLICK
Double-click event
The event is triggered when the user double-clicks on a component.
- See Also:
-
DRAG_SORT
-
KEY_PRESS
Keyboard key press event
The event is triggered when the user presses a key.
- See Also:
-
KEY_DOWN
Key down event
The event is triggered when the user presses down a key
- See Also:
-
KEY_UP
Key up event
The event is triggered when the user releases a key
- See Also:
-
MOUSE_DOWN
Mouse button down event
The event is triggered when the user presses a mouse button
- See Also:
-
MOUSE_ENTER
The mouse enter event
The event is triggered when the user enters the component area (ie, the user mouses over the component).
- See Also:
-
MOUSE_LEAVE
The mouse leave event
The event is triggered when the user's mouse leaves the component area.
- See Also:
-
MOUSE_MOVE
The mouse move event
The event is triggered when the user moves the mouse over a component
- See Also:
-
MOUSE_OVER
The mouse over event
The event is triggered when the user's mouse moves over a component, or a subcomponent
- See Also:
-
MOUSE_OUT
Mouse out event
The event is triggered when the user moves the mouse out of the component or subcomponent.
- See Also:
-
MOUSE_UP
Mouse up event
The event is triggered when the user moves the mouse over the component or subcomponent.
- See Also:
-
WHEEL
Mousewheel event
The event is triggered when the user uses the mouse wheel
- See Also:
-
SCROLL
Scroll event
The event is triggered when the user scrolls the content of a scrollable component
- See Also:
-
TOUCH_CANCEL
Touch cancel event
The event is triggered when the touch event is interrupted/stopped by the touchscreen device
- See Also:
-
TOUCH_END
Touch end event
The event is triggered when the user stops touching the component.
- See Also:
-
TOUCH_MOVE
Touch move event
The event is triggered when the user moves their finger on their touchscreen.
- See Also:
-
TOUCH_START
Touch start event
The event is triggered when the user starts touching a component.
- See Also:
-
DONE
Done event
The event is triggered when a process is done.
- See Also:
-
ERROR
Error event
The event is triggered when a process encounters an error.
- See Also:
-
LIST_GRID_HEADER_CLICK
List grid header click event
The event is triggered when the user clicks on the header of a ListGrid component.
- See Also:
-
LIST_GRID_HEADER_DOUBLE_CLICK
List grid header double-click event
The event is triggered when the user double-clicks on the header of a ListGrid component.
-
LIST_GRID_NEXT_PAGE
ListGrid next page request event
The event is triggered when the ListGrid component is in Lazy Fetch mode, and the user scrolls down to the end of the currently displayed data.
-
LIST_GRID_ROW_CLICK
ListGrid row click event
The event is triggered when the user clicks on a row of a ListGrid component
- See Also:
-
LIST_GRID_ROW_DOUBLE_CLICK
ListGrid row double-click event
The event is triggered when the user double-clicks on a row of a ListGrid component
-
LIST_GRID_COLUMN_RESIZE
ListGrid column resize event
The event is triggered when the user resizes the column of a ListGrid component
-
LIST_GRID_COLUMN_MOVE
ListGrid column move event
The event is triggered when the user moves the column of a ListGrid component
-
LIST_GIRD_REFRESH_DATA
ListGrid refresh data event
The event is triggered when the ListGrid component refreshing data
-
LIST_GRID_COLUMN_SHOW
ListGrid column show or hide event
The event is triggered when the user show or hide column on the ListGrid component
-
LIST_GRID_SORT
ListGrid sort data event
The event is triggered when ListGrid component need sorted data
- See Also:
-
LIST_GRID_RESIZE
ListGrid resize event
The event is triggered when the user resizes a page that contains a ListGrid component.
- See Also:
-
FILTERBAR_FILTERING
Filter bar filtering event
The event is triggered when user filtering in the filter bar component
-
FILTERBAR_CHANGE_EDITOR
Filter bar change filter editor event
The event is triggered when filter bar change the visible filter editor component
-
PAGE_RESIZE
Page resize event
The event is triggered when the user resizes the browser window, that has the application displayed.
- See Also:
-
FETCH_DONE
Fetch done event
The event runs, when a component's data fetch has finished.
- See Also:
-
FORM_CHANGED
Form change event
The event is triggered when the user (or the application, through code) changes the contents of a form. One such case could be if a new record is opened on the form, displaying the data of a previously saved record, modifying a displayed record, or if the user modifies the form's input field
- See Also:
-
HOT_KEY
Hot key pressed event
The event is triggered, when the user presses a registered hotkey combination
- See Also:
-
DROP_EVENT
Component drop event
The event is triggered when the user drops a draggable component to another component.
- See Also:
-
DRAG_START
Dragging start event
The event is triggered when the user starts dragging a component
- See Also:
-
DRAG_END
Dragging end event
The event is triggered when the user stops dragging a component
- See Also:
-
CALENDAR_INIT_DONE
- See Also:
-
CALENDAR_CHANGE_VIEW_EVENT
Calendar component view change event
The event is triggered when the user changes the view mode of the calendar component
-
CALENDAR_CLICK
Calendar component click event
The event is triggered when the user clicks on an area of the calendar component, that has no schedule displayed.
- See Also:
-
CALENDAR_DOUBLE_CLICK
Calendar component double-click event
The event is triggered when the user double-clicks on an area of the calendar component, that has no schedule displayed.
-
CALENDAR_SCHEDULE_CLICK
Calendar schedule click event
The event is triggered when the user clicks on a displayed schedule.
-
CALENDAR_SCHEDULE_MOVE
Calendar schedule move event
The event is triggered when the user moves a schedule with drag&drop to another timeslot.
-
FORM_ITEM_VALUE_CHANGE
Input field value change event
The event is triggered, when an input field's value is modified by the user.
- See Also:
-
ENTER_PRESSED
Enter button pressed event
The event is triggered, when the user presses the enter key, while in an input field.
- See Also:
-
NAVIGATION_EVENT
- See Also:
-
CLIENT_CONNECTED
Client connected event
The event is triggered, when the client connects to the server
- See Also:
-
JAVASCRIPT_ERROR
JavaScript error event
The event is triggered, when the JavaScript that ran on the client encounters an error
- See Also:
-
DEBUG_MESSAGE
- See Also:
-
RETURN_EVENT
- See Also:
-
VALUE_CLEAR
- See Also:
-
FILE_ITEM_ERROR
- See Also:
-
FILE_ITEM_DONE
- See Also:
-
FILE_ITEM_UPLOAD_START
-
CHART_CLICK
Chart click event
The event is triggered when the user clicks on a chart data.
- See Also:
-
CHART_LASSO
Chart lasso event
The event is triggered when the user select one or more data in the chart
- See Also:
-
CUSTOM
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isClientEvent
public boolean isClientEvent()- Returns:
true
, if the event must be triggered by the client, otherwisefalse
-
getEvent
- Returns:
- The new event instance.
- Throws:
InstantiationException
- if the specified event class couldn't be instantiated.IllegalAccessException
- If the event type couldn't be set in the event instance.
-
getEvent
public BaseEvent getEvent(String customEventName) throws InstantiationException, IllegalAccessException - Parameters:
customEventName
- The new event name- Returns:
- The event instance
- Throws:
InstantiationException
- if the specified event class couldn't be instantiated.IllegalAccessException
- If the event type couldn't be set in the event instance.
-
getHandlerMethodName
Gets the name of the event handler method- Returns:
- The name of the event handler method or
null
if not found
-
getCoreHandlerMethodName
- Returns:
- The name of the core event handler method or
null
if the event has no core method
-
getBrowserEventName
- Returns:
- The name, or
null
if the event isn't from the browser
-
getHandlerInterface
Gets the event handler interface class- Returns:
- The event handler interface class or
null
if the event has no interface specified
-
fromEventType
public static EventType fromEventType(com.google.gson.JsonElement receivedEventType, com.google.gson.JsonElement receivedBrowserEventName) Determines the event type, based on the specified JSON elements.- Parameters:
receivedEventType
- The JSON element, received from the client, that contains the event namereceivedBrowserEventName
- The JSON element, received from the client,that contains the browser event name- Returns:
- The event type or
null
, if the event type was not found
-
addCustomEvent
public static void addCustomEvent(String eventName, Class<? extends BaseEvent> eventClass, Class<? extends BrowserEventHandler> eventHandlerInterface) Registers a custom event among the event types- Parameters:
eventName
- The custom event nameeventClass
- The custom event classeventHandlerInterface
- The custom event handler interface class- Throws:
NullPointerException
- If the specified event name isnull
IllegalArgumentException
- If the specified name is already used on an event
-