mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6857 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
128 lines
3.9 KiB
Java
128 lines
3.9 KiB
Java
/*
|
|
* Copyright (C) 2005-2007 Alfresco Software Limited.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
* As a special exception to the terms and conditions of version 2.0 of
|
|
* the GPL, you may redistribute this Program in connection with Free/Libre
|
|
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
|
* FLOSS exception. You should have recieved a copy of the text describing
|
|
* the FLOSS exception, and it is also available here:
|
|
* http://www.alfresco.com/legal/licensing"
|
|
*/
|
|
package org.alfresco.web.bean.dialog;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
import org.alfresco.web.config.DialogsConfigElement.DialogButtonConfig;
|
|
|
|
/**
|
|
* Interface that defines the contract for a dialog backing bean
|
|
*
|
|
* @author gavinc
|
|
*/
|
|
public interface IDialogBean
|
|
{
|
|
/**
|
|
* Initialises the dialog bean
|
|
*
|
|
* @param parameters Map of parameters for the dialog
|
|
*/
|
|
public void init(Map<String, String> parameters);
|
|
|
|
/**
|
|
* Called when the dialog is restored after a nested dialog is closed
|
|
*/
|
|
public void restored();
|
|
|
|
/**
|
|
* Method handler called when the cancel button of the dialog is pressed
|
|
*
|
|
* @return The outcome to return
|
|
*/
|
|
public String cancel();
|
|
|
|
/**
|
|
* Method handler called when the finish button of the dialog is pressed
|
|
*
|
|
* @return The outcome to return
|
|
*/
|
|
public String finish();
|
|
|
|
/**
|
|
* Returns a list of additional buttons to display in the dialog.
|
|
*
|
|
* @return List of button configurations, null if there are no buttons
|
|
*/
|
|
public List<DialogButtonConfig> getAdditionalButtons();
|
|
|
|
/**
|
|
* Returns the label to use for the cancel button
|
|
*
|
|
* @return The cancel button label
|
|
*/
|
|
public String getCancelButtonLabel();
|
|
|
|
/**
|
|
* 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();
|
|
|
|
/**
|
|
* Returns the title to be used for the dialog
|
|
* <p>If this returns null the DialogManager will
|
|
* lookup the title via the dialog configuration</p>
|
|
*
|
|
* @return The title or null if the title is to be acquired via configuration
|
|
*/
|
|
public String getContainerTitle();
|
|
|
|
/**
|
|
* Returns the subtitle to be used for the dialog
|
|
* <p>If this returns null the DialogManager will
|
|
* lookup the subtitle via the dialog configuration</p>
|
|
*
|
|
* @return The subtitle or null if the subtitle is to be acquired via configuration
|
|
*/
|
|
public String getContainerSubTitle();
|
|
|
|
/**
|
|
* Returns the description to be used for the dialog
|
|
* <p>If this returns null the DialogManager will
|
|
* lookup the description via the dialog configuration</p>
|
|
*
|
|
* @return The title or null if the title is to be acquired via configuration
|
|
*/
|
|
public String getContainerDescription();
|
|
|
|
/**
|
|
* Returns the object to use as the context for the main and more
|
|
* actions that may be configured by the dialog
|
|
*
|
|
* @return Object to use as the context for actions
|
|
*/
|
|
public Object getActionsContext();
|
|
}
|