org.dbforms.event.eventtype
Class EventType

java.lang.Object
  extended by org.dbforms.event.eventtype.EventType

public class EventType
extends Object

EventType context class. Uses strategy to select the event type value from an input string.

Author:
Luca Fossato

Field Summary
static String EVENT_DATABASE_DELETE
          value of the database delete event
static String EVENT_DATABASE_INSERT
          value of the database insert event
static String EVENT_DATABASE_UPDATE
          value of the database update event
static int EVENT_GROUP_DATABASE
          value of the database event
static int EVENT_GROUP_NAVIGATION
          value of the navigation event
static String EVENT_NAVIGATION_COPY
          value of the navigation new event
static String EVENT_NAVIGATION_FIRST
          value of the navigation first event
static String EVENT_NAVIGATION_FORCERELOAD
          value of the navigation force reload event
static String EVENT_NAVIGATION_GOTO
          value of the navigation goto event
static String EVENT_NAVIGATION_LAST
          value of the navigation last event
static String EVENT_NAVIGATION_NEW
          value of the navigation new event
static String EVENT_NAVIGATION_NEXT
          value of the navigation next event
static String EVENT_NAVIGATION_PREV
          value of the navigation previous event
static String EVENT_NAVIGATION_RELOAD
          value of the navigation reload event
static String EVENT_NAVIGATION_TRANSFER_COPY
          transfer value of the navigation new event
static String EVENT_NAVIGATION_TRANSFER_FIRST
          transfer value of the navigation first event
static String EVENT_NAVIGATION_TRANSFER_GOTO
          transfer value of the navigation goto event
static String EVENT_NAVIGATION_TRANSFER_LAST
          transfer value of the navigation last event
static String EVENT_NAVIGATION_TRANSFER_NEW
          transfer value of the navigation new event
static String EVENT_NAVIGATION_TRANSFER_NEXT
          transfer value of the navigation next event
static String EVENT_NAVIGATION_TRANSFER_PREV
          transfer value of the navigation previous event
static String EVENT_NAVIGATION_TRANSFER_RELOAD
          transfer value of the navigation reload event
static int EVENT_UNDEFINED
          value of the navigation goto event
 
Constructor Summary
EventType(EventTypeStrategy eventTypeStrategy)
          Constructor; set the input EventTypeStrategy object as the default strategy.
 
Method Summary
 int getEventGroup()
          Gets the event group value
 String getEventString()
          Gets the eventString attribute of the EventType object
 String getEventType()
          Gets the event type value
 EventTypeStrategy getEventTypeStrategy()
          Gets the eventTypeStrategy attribute of the EventType object
 void setEventString(String eventString)
          Sets the eventString attribute of the EventType object
 void setEventTypeStrategy(EventTypeStrategy eventTypeStrategy)
          Sets the eventTypeStrategy attribute of the EventType object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_GROUP_DATABASE

public static final int EVENT_GROUP_DATABASE
value of the database event

See Also:
Constant Field Values

EVENT_GROUP_NAVIGATION

public static final int EVENT_GROUP_NAVIGATION
value of the navigation event

See Also:
Constant Field Values

EVENT_UNDEFINED

public static final int EVENT_UNDEFINED
value of the navigation goto event

See Also:
Constant Field Values

EVENT_DATABASE_INSERT

public static final String EVENT_DATABASE_INSERT
value of the database insert event

See Also:
Constant Field Values

EVENT_DATABASE_UPDATE

public static final String EVENT_DATABASE_UPDATE
value of the database update event

See Also:
Constant Field Values

EVENT_DATABASE_DELETE

public static final String EVENT_DATABASE_DELETE
value of the database delete event

See Also:
Constant Field Values

EVENT_NAVIGATION_FIRST

public static final String EVENT_NAVIGATION_FIRST
value of the navigation first event

See Also:
Constant Field Values

EVENT_NAVIGATION_PREV

public static final String EVENT_NAVIGATION_PREV
value of the navigation previous event

See Also:
Constant Field Values

EVENT_NAVIGATION_NEXT

public static final String EVENT_NAVIGATION_NEXT
value of the navigation next event

See Also:
Constant Field Values

EVENT_NAVIGATION_LAST

public static final String EVENT_NAVIGATION_LAST
value of the navigation last event

See Also:
Constant Field Values

EVENT_NAVIGATION_NEW

public static final String EVENT_NAVIGATION_NEW
value of the navigation new event

See Also:
Constant Field Values

EVENT_NAVIGATION_COPY

public static final String EVENT_NAVIGATION_COPY
value of the navigation new event

See Also:
Constant Field Values

EVENT_NAVIGATION_GOTO

public static final String EVENT_NAVIGATION_GOTO
value of the navigation goto event

See Also:
Constant Field Values

EVENT_NAVIGATION_RELOAD

public static final String EVENT_NAVIGATION_RELOAD
value of the navigation reload event

See Also:
Constant Field Values

EVENT_NAVIGATION_FORCERELOAD

public static final String EVENT_NAVIGATION_FORCERELOAD
value of the navigation force reload event

See Also:
Constant Field Values

EVENT_NAVIGATION_TRANSFER_FIRST

public static final String EVENT_NAVIGATION_TRANSFER_FIRST
transfer value of the navigation first event

See Also:
Constant Field Values

EVENT_NAVIGATION_TRANSFER_PREV

public static final String EVENT_NAVIGATION_TRANSFER_PREV
transfer value of the navigation previous event

See Also:
Constant Field Values

EVENT_NAVIGATION_TRANSFER_NEXT

public static final String EVENT_NAVIGATION_TRANSFER_NEXT
transfer value of the navigation next event

See Also:
Constant Field Values

EVENT_NAVIGATION_TRANSFER_LAST

public static final String EVENT_NAVIGATION_TRANSFER_LAST
transfer value of the navigation last event

See Also:
Constant Field Values

EVENT_NAVIGATION_TRANSFER_NEW

public static final String EVENT_NAVIGATION_TRANSFER_NEW
transfer value of the navigation new event

See Also:
Constant Field Values

EVENT_NAVIGATION_TRANSFER_COPY

public static final String EVENT_NAVIGATION_TRANSFER_COPY
transfer value of the navigation new event

See Also:
Constant Field Values

EVENT_NAVIGATION_TRANSFER_GOTO

public static final String EVENT_NAVIGATION_TRANSFER_GOTO
transfer value of the navigation goto event

See Also:
Constant Field Values

EVENT_NAVIGATION_TRANSFER_RELOAD

public static final String EVENT_NAVIGATION_TRANSFER_RELOAD
transfer value of the navigation reload event

See Also:
Constant Field Values
Constructor Detail

EventType

public EventType(EventTypeStrategy eventTypeStrategy)
Constructor; set the input EventTypeStrategy object as the default strategy.

Parameters:
eventTypeStrategy - an EventTypeStrategy object
Method Detail

getEventGroup

public int getEventGroup()
Gets the event group value

Returns:
The event group value

setEventString

public void setEventString(String eventString)
Sets the eventString attribute of the EventType object

Parameters:
eventString - The new eventString value

getEventString

public String getEventString()
Gets the eventString attribute of the EventType object

Returns:
The eventString value

getEventType

public String getEventType()
Gets the event type value

Returns:
The event type value

setEventTypeStrategy

public void setEventTypeStrategy(EventTypeStrategy eventTypeStrategy)
Sets the eventTypeStrategy attribute of the EventType object

Parameters:
eventTypeStrategy - The new eventTypeStrategy value

getEventTypeStrategy

public EventTypeStrategy getEventTypeStrategy()
Gets the eventTypeStrategy attribute of the EventType object

Returns:
The eventTypeStrategy value


Copyright © 2002-2006 DbForms. All Rights Reserved.