|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.despodata.java.webappl.actions.ActionBase
ActionBase.java This class implements part of the Action interface TODO: Try to implement the load of this class atributes in this class. Company MoreData
| Field Summary | |
protected boolean |
insertCascade
Indica caso seja 'false' se deve ser aberta uma nova frame para apresentar os dados a inserir. |
protected GenericModel |
myModel
|
protected GenericView |
myView
|
protected FileUploadServletRequest |
request
|
protected java.lang.Integer |
rowSelected
|
protected java.lang.String |
rowSelectedFromList
|
protected java.util.List |
selectedRecordsList
Lista de Integer's , numero dos registos selecionados na entrada de dados. |
protected WebApplication |
webAppl
|
protected WebPage |
webPage
|
| Constructor Summary | |
ActionBase()
Creates a new instance of ActionBase |
|
| Method Summary | |
protected WebPage |
_getTopParentWebPage(WebPage webPage)
Devolve a pagina 'parent' de uma determinada pagina. |
void |
addActionListener(ActionListener listener)
Adds a new ActionListener to this action. |
void |
addActionListener(ActionListener listener,
java.lang.String uri)
Adds a new ActionListener to this action for the specified page only. |
void |
fireEvent(ActionEvent event)
Fires a event in this Action. |
protected void |
fireEvent(ActionEvent event,
ActionListener listener)
Fires a event in this Action for a specified listener. |
protected void |
fireEvent(ActionEvent event,
java.util.List list)
Fires a event in this Action for a givien listeners list. |
protected ApplDataControl |
getDeleteDataControl()
Devolve o ApplDataControl da tabela que contem a informacao a ser visualizada. |
protected ApplDataControl |
getDetailWebPageDisplayDAO()
Devolve o ApplDataControl que contem os dados mostrados na pagina de detalhe. |
protected ApplDataControl |
getDisplayDataControl()
Devolve o ApplDataControl da tabela que contem a informacao a ser visualizada. |
protected java.util.List |
getListenersList(java.lang.String key,
boolean addNewList)
Return a list of listeners for a given key. |
protected WebPage |
getParentWebPage(WebPage webPage)
Devolve a pagina 'parent' de uma determinada pagina. |
protected ApplDataControl |
getSearchDataControl()
Devolve o ApplDataControl da tabela que contem a informacao a ser visualizada. |
protected WebPage |
getTopParentWebPage(WebPage webPage)
Devolve a pagina 'parent' de uma determinada pagina. |
protected ApplDataControl |
getUpdateDataControl()
Devolve o ApplDataControl da tabela que contem a informacao a ser visualizada. |
protected java.lang.String |
getUriListenerKey(java.lang.String uri)
Returns a key for the map of listeneres for a specified page uri. |
protected WebPage |
getWebPage(java.lang.String uri)
Devolve um objecto que representa uma determinada pagina. |
abstract ActionRouter |
perform()
This is the method that's passes refereces to the action servlet and the HTTP request and response. |
ActionRouter |
perform(java.util.Map param)
This is the method that's passes refereces to the action servlet and the HTTP request and response. |
protected void |
release()
|
void |
removeActionListener(ActionListener listener)
Removes a ActionListener from this Action. |
protected void |
removeListenersList(java.lang.String key)
Removes specified list of listeners is it is empty. |
protected ApplDataControl |
searchDetail()
Procura por registos de um detalhe que estejam relacionados com o registo actual do currente ApplDatacontrol (mainDataControl) da pagina pai ou da prpria pagina, se ela nao tiver pai. |
static ApplDataControl |
searchDetail(GenericModel model,
GenericView view,
WebPage detail)
Procura por registos de um detalhe que estejam relacionados com o registo actual do currente ApplDatacontrol (mainDataControl). |
protected void |
setUp(java.util.Map param)
|
protected void |
updateDetailUri()
Actualiza o URI da pagina de detalhe na pagina 'master' Se a pagina onde foi desencadeado o comando nao for uma pagina de detalhe (parentURI == null) entao essa e a pagina onde vai ser actualizado o URI do detalhe. |
protected boolean |
webPageHaveDetail()
Verifica se a pagina onde foi desencadeada a acao tem uma pagina de detalhe ou nao. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final boolean insertCascade
protected FileUploadServletRequest request
protected WebPage webPage
protected GenericModel myModel
protected WebApplication webAppl
protected GenericView myView
protected java.util.List selectedRecordsList
protected java.lang.String rowSelectedFromList
protected java.lang.Integer rowSelected
| Constructor Detail |
public ActionBase()
| Method Detail |
protected WebPage _getTopParentWebPage(WebPage webPage)
webPage - A pagina para a qual se pretende obter a 'parent' WebPage.
protected java.util.List getListenersList(java.lang.String key,
boolean addNewList)
key - The listeners list key.addNewList - If true a new list is added if does not exists.
protected void removeListenersList(java.lang.String key)
key - The listeners list key.protected ApplDataControl getDisplayDataControl()
protected ApplDataControl getSearchDataControl()
protected ApplDataControl getUpdateDataControl()
protected ApplDataControl getDeleteDataControl()
protected void fireEvent(ActionEvent event,
ActionListener listener)
event - The event to be fire.listener - The listener where the event should be fire.
protected void fireEvent(ActionEvent event,
java.util.List list)
event - The event to be fire.protected java.lang.String getUriListenerKey(java.lang.String uri)
protected void setUp(java.util.Map param)
protected void release()
protected ApplDataControl searchDetail()
protected ApplDataControl getDetailWebPageDisplayDAO()
protected WebPage getParentWebPage(WebPage webPage)
webPage - A pagina para a qual se pretende obter a 'parent' WebPage.
protected WebPage getTopParentWebPage(WebPage webPage)
webPage - A pagina para a qual se pretende obter a 'parent' WebPage.
protected WebPage getWebPage(java.lang.String uri)
uri - O uri da pagina.protected void updateDetailUri()
protected boolean webPageHaveDetail()
public abstract ActionRouter perform()
throws ActionException
ActionException
public ActionRouter perform(java.util.Map param)
throws ActionException
perform in interface ActionActionExceptionpublic void addActionListener(ActionListener listener)
addActionListener in interface Action
public void addActionListener(ActionListener listener,
java.lang.String uri)
addActionListener in interface Actionpublic void removeActionListener(ActionListener listener)
public void fireEvent(ActionEvent event)
fireEvent in interface Actionevent - The event to be fire.
public static ApplDataControl searchDetail(GenericModel model,
GenericView view,
WebPage detail)
detail - Pagina do detalhe.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||