org.apache.empire.jsf2.pages
Class Page

java.lang.Object
  extended by org.apache.empire.jsf2.pages.Page
All Implemented Interfaces:
Serializable

public abstract class Page
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
protected Page()
           
 
Method Summary
 void addJavascriptCall(String function)
           
protected  void checkPageAccess()
           
 void doInit()
           
 void doRefresh()
           
protected  String extractErrorMessageDetail(String action, Throwable e, int stackTraceElements)
           
 String getAction()
           
 Connection getConnection(DBDatabase db)
          return a connection for a particular database
 String getIdParamForKey(DBRowSet rowset, Object[] key)
           
 Object[] getKeyFromParam(DBRowSet rowset, String idParam)
           
 String getName()
           
 PageDefinition getPageDefinition()
           
 String getPageName()
           
protected  PageOutcome getParentOutcome(boolean redirect)
           
protected  PageOutcome getParentOutcome(String action, boolean redirect)
          Helper methods for parent outcome
 PageDefinition getParentPage()
           
protected  TextResolver getTextResolver()
           
protected  boolean handleActionError(String action, Throwable e)
           
 boolean isInitialized()
           
 void preRenderPage(javax.faces.context.FacesContext context)
           
protected  void redirectTo(PageOutcome outcome)
           
protected  void registerPageElement(PageElement element)
          adds a page element to this page DO NOT CALL yourself, this method is called from the PageElement constructor!
 void setAction(String actionParam)
           
 void setPageDefinition(PageDefinition pageDefinition)
           
protected  void setSessionMessage(javax.faces.application.FacesMessage facesMsg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Page

protected Page()
Method Detail

getPageName

public String getPageName()

getName

public String getName()

isInitialized

public boolean isInitialized()

getAction

public String getAction()

setAction

public void setAction(String actionParam)

getPageDefinition

public PageDefinition getPageDefinition()

setPageDefinition

public void setPageDefinition(PageDefinition pageDefinition)

getParentPage

public PageDefinition getParentPage()

preRenderPage

public void preRenderPage(javax.faces.context.FacesContext context)

checkPageAccess

protected void checkPageAccess()

setSessionMessage

protected void setSessionMessage(javax.faces.application.FacesMessage facesMsg)

handleActionError

protected boolean handleActionError(String action,
                                    Throwable e)

extractErrorMessageDetail

protected String extractErrorMessageDetail(String action,
                                           Throwable e,
                                           int stackTraceElements)

redirectTo

protected void redirectTo(PageOutcome outcome)

registerPageElement

protected void registerPageElement(PageElement element)
adds a page element to this page DO NOT CALL yourself, this method is called from the PageElement constructor!

Parameters:
element -

getParentOutcome

protected PageOutcome getParentOutcome(String action,
                                       boolean redirect)
Helper methods for parent outcome

Parameters:
action -
redirect -
Returns:
the parent outcome string

getParentOutcome

protected PageOutcome getParentOutcome(boolean redirect)

getConnection

public Connection getConnection(DBDatabase db)
return a connection for a particular database

Parameters:
db - the database for which to obtain a connection
Returns:
the connection for the given database

getKeyFromParam

public Object[] getKeyFromParam(DBRowSet rowset,
                                String idParam)

getIdParamForKey

public String getIdParamForKey(DBRowSet rowset,
                               Object[] key)

addJavascriptCall

public void addJavascriptCall(String function)

doInit

public void doInit()

doRefresh

public void doRefresh()

getTextResolver

protected final TextResolver getTextResolver()


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.