First cut of dialog/wizard framework

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2577 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2006-03-27 10:40:39 +00:00
parent cb69c74d73
commit 9be6273144
25 changed files with 1628 additions and 169 deletions

View File

@@ -0,0 +1,42 @@
package org.alfresco.web.bean.dialog;
/**
* Interface that defines the contract for a dialog backing bean
*
* @author gavinc
*/
public interface IDialogBean
{
/**
* Initialises the dialog bean
*/
public void init();
/**
* Method handler called when the finish button of the dialog is pressed
*
* @return The outcome to return (normally dialog:close)
*/
public String finish();
/**
* Method handler called when the cancel button of the dialog is pressed
*
* @return The outcome to return (normally dialog:close)
*/
public String cancel();
/**
* Returns the label to use for the finish button
*
* @return The finish button label
*/
public String getFinishButtonLabel();
/**
* Determines whether the finish button on the dialog should be disabled
*
* @return true if the button should be disabled
*/
public boolean getFinishButtonDisabled();
}