| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.presentation.portlet.component.Component
The base class for all Components
| Constructor Summary | |
| Component() | |
| Method Summary | |
|  void | addChildComponent(Component component)This adds a child component to an internal list. | 
|  void | addFormKeyChangeListener(FormKeyChangeListener listener)Registers listener so that it will receive FormKeyChangeEvents. | 
| abstract  FormKey | display()Returns a FormKey, which has the componentId & the formName to which control should be passed | 
|  ComponentDefinition | getComponentDefinition()Returns the ComponentDefinition based on which this Component was created | 
|  String | getComponentId()Returns the Id for the component | 
|  FormKey | getContainerFormKey()Getter for property containerFormKey. | 
|  FormKeyChangeListener[] | getFormKeyChangeListeners()Returns an array of all the FormKeyChangeListeners registered on this component. | 
|  FormKey | getReturnToFormKey()Getter for property returnToFormKey. | 
|  String | getToken()Getter for property token. | 
|  UserSession | getUserSession()Returns the UserSession, under which the Component was created | 
|  boolean | isActive()Returns a true if the component is still active. | 
|  void | quit()This will kill all the Forms Finally de-register itself from the UserSession | 
|  FormKey | quitAndReturnToCallingScreen()This should invoke the quit() method, and then return the FormKey for the calling screen. | 
|  void | reflectAndSetParms(HttpServletRequest request)Invoke the setters on the component passing the parameters in the request-stream This is a convenience method which can be invoked after creation of a new Component | 
|  void | removeFormKeyChangeListener(FormKeyChangeListener listener)Unregisters listener so that it will no longer receive FormKeyChangeEvents. | 
|  Collection | returnChildComponents()This returns a collection of components which were created by this component. | 
|  DateTime | returnLastActivityDate()This returns the timestamp for the last known activity on the component. | 
|  Component | run(String component)Convenience Method for 'ComponentManager.run()'. | 
|  void | setContainerFormKey(FormKey containerFormKey)Setter for property containerFormKey. | 
|  void | setReturnToFormKey(FormKey returnToFormKey)Setter for property returnToFormKey. | 
|  void | setToken(String token)Setter for property token. | 
|  void | updateLastActivityDate()This updates the activity timestamp on the component. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Component()
| Method Detail | 
public abstract FormKey display()
                         throws FrameworkException,
                                ApplicationExceptions
display in interface IComponentFrameworkException - if any framework error occurs.
ApplicationExceptions - if any application error occurs.public void quit()
quit in interface IComponentpublic FormKey quitAndReturnToCallingScreen()
quitAndReturnToCallingScreen in interface IComponentpublic String getComponentId()
getComponentId in interface IComponentpublic ComponentDefinition getComponentDefinition()
getComponentDefinition in interface IComponentpublic UserSession getUserSession()
getUserSession in interface IComponentpublic FormKey getReturnToFormKey()
getReturnToFormKey in interface IComponentpublic void setReturnToFormKey(FormKey returnToFormKey)
setReturnToFormKey in interface IComponentreturnToFormKey - New value of property returnToFormKey.public FormKey getContainerFormKey()
getContainerFormKey in interface IComponentpublic void setContainerFormKey(FormKey containerFormKey)
setContainerFormKey in interface IComponentcontainerFormKey - New value of property containerFormKey.public void addFormKeyChangeListener(FormKeyChangeListener listener)
addFormKeyChangeListener in interface IComponentlistener - the FormKeyChangeListener to register.public void removeFormKeyChangeListener(FormKeyChangeListener listener)
removeFormKeyChangeListener in interface IComponentlistener - the FormKeyChangeListener to be removed.public FormKeyChangeListener[] getFormKeyChangeListeners()
getFormKeyChangeListeners in interface IComponentpublic boolean isActive()
isActive in interface IComponentpublic String getToken()
getToken in interface IComponentpublic void setToken(String token)
setToken in interface IComponenttoken - New value of property token.public Component run(String component)
component - The name of the component to create. There should be a valid definition for this name in the 'components.xml' file
public void reflectAndSetParms(HttpServletRequest request)
request - The HTTP request we are processingpublic void updateLastActivityDate()
public DateTime returnLastActivityDate()
public void addChildComponent(Component component)
component - The child component.public Collection returnChildComponents()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||