org.dbforms.event
Class NavEventFactoryImpl

java.lang.Object
  extended by org.dbforms.event.AbstractEventFactory
      extended by org.dbforms.event.AbstractNavEventFactory
          extended by org.dbforms.event.NavEventFactoryImpl

public class NavEventFactoryImpl
extends AbstractNavEventFactory

Implementation of a Navigation Event Factory.

Author:
Luca Fossato

Field Summary
 
Fields inherited from class org.dbforms.event.AbstractEventFactory
eventInfoMap
 
Constructor Summary
NavEventFactoryImpl()
          Default constructor.
 
Method Summary
 AbstractWebEvent createEvent(String action, HttpServletRequest request, DbFormsConfig config)
          create and return a new navigation event
 AbstractNavigationEvent createEvent(String action, HttpServletRequest request, DbFormsConfig config, Table table)
          create and return a new navigation event.
 AbstractNavigationEvent createGotoEvent(Table table, HttpServletRequest request, DbFormsConfig config, String positionString)
          Create and return a new navGoto event.
 AbstractNavigationEvent createGotoEvent(Table table, HttpServletRequest request, DbFormsConfig config, String whereClause, String tableList)
          Create and return a new navGoto event.
protected  void initializeEvents()
          Initialize the default events.
static AbstractNavEventFactory instance()
          Get the instance of the NavEventFactoryImpl class.
 
Methods inherited from class org.dbforms.event.AbstractEventFactory
addEventInfo, getEvent, getEventIdFromDestinationTable, getEventIdFromDestinationTable, getEventInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavEventFactoryImpl

public NavEventFactoryImpl()
Default constructor.

Method Detail

instance

public static AbstractNavEventFactory instance()
Get the instance of the NavEventFactoryImpl class.

Returns:
the instance of NavEventFactoryImpl class.

createEvent

public AbstractWebEvent createEvent(String action,
                                    HttpServletRequest request,
                                    DbFormsConfig config)
create and return a new navigation event

Specified by:
createEvent in class AbstractEventFactory
Parameters:
action - the action string that identifies the web event
request - the HttpServletRequest object
config - the DbForms config object
Returns:
a new navigation event

createEvent

public AbstractNavigationEvent createEvent(String action,
                                           HttpServletRequest request,
                                           DbFormsConfig config,
                                           Table table)
create and return a new navigation event. Called from local web event in DbForms!

Specified by:
createEvent in class AbstractNavEventFactory
Parameters:
action - the action string that identifies the web event
request - DOCUMENT ME!
config - the DbForms config object
table - the Table object
Returns:
a new navigation event

createGotoEvent

public AbstractNavigationEvent createGotoEvent(Table table,
                                               HttpServletRequest request,
                                               DbFormsConfig config,
                                               String positionString)
Create and return a new navGoto event. Used by the view (DbFormTag) to create a gotoEvent

Specified by:
createGotoEvent in class AbstractNavEventFactory
Parameters:
table - the Table object
request - DOCUMENT ME!
config - DOCUMENT ME!
positionString - the position string object
Returns:
a new navGoto event

createGotoEvent

public AbstractNavigationEvent createGotoEvent(Table table,
                                               HttpServletRequest request,
                                               DbFormsConfig config,
                                               String whereClause,
                                               String tableList)
Create and return a new navGoto event. Used by the view (DbFormTag) to create a gotoEvent for free form select

Specified by:
createGotoEvent in class AbstractNavEventFactory
Parameters:
table - the Table object
request - the position string object
config - DOCUMENT ME!
whereClause - DOCUMENT ME!
tableList - DOCUMENT ME!
Returns:
a new navGoto event

initializeEvents

protected void initializeEvents()
                         throws Exception
Initialize the default events.

Specified by:
initializeEvents in class AbstractEventFactory
Throws:
Exception - if any error occurs


Copyright © 2002-2006 DbForms. All Rights Reserved.