SiteProxy leitet jetzt nach dem Erzeugen zum Bearbeiten der BasicProperties weiter (Ticket #1765).

git-svn-id: https://svn.libreccm.org/ccm/trunk@2216 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2013-06-17 09:15:46 +00:00
parent 443db79fae
commit 6f227bab68
1 changed files with 30 additions and 33 deletions

View File

@ -30,62 +30,59 @@ import com.arsdigita.cms.util.GlobalizationUtil;
import com.arsdigita.toolbox.ui.DomainObjectPropertySheet; import com.arsdigita.toolbox.ui.DomainObjectPropertySheet;
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess; import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
/** /**
* Authoring step to edit the simple attributes of the SiteProxy content * Authoring step to edit the simple attributes of the SiteProxy content type (and its subclasses).
* type (and its subclasses).
*/ */
public class SiteProxyPropertiesStep extends SimpleEditStep { public class SiteProxyPropertiesStep extends SimpleEditStep {
/** The name of the editing sheet added to this step */ /**
* The name of the editing sheet added to this step
*/
public static final String EDIT_SHEET_NAME = "edit"; public static final String EDIT_SHEET_NAME = "edit";
/** /**
* Constructor. * Constructor.
* *
* @param itemModel * @param itemModel
* @param parent * @param parent
*/ */
public SiteProxyPropertiesStep( ItemSelectionModel itemModel, public SiteProxyPropertiesStep(ItemSelectionModel itemModel,
AuthoringKitWizard parent ) { AuthoringKitWizard parent) {
super( itemModel, parent ); super(itemModel, parent);
BasicPageForm editSheet; BasicPageForm editSheet;
editSheet = new SiteProxyPropertyForm( itemModel ); editSheet = new SiteProxyPropertyForm(itemModel);
add( EDIT_SHEET_NAME, add(EDIT_SHEET_NAME,
SiteProxyGlobalizationUtil.globalize( SiteProxyGlobalizationUtil.globalize(
"cms.contenttypes.ui.siteproxy.edit_form_link"), "cms.contenttypes.ui.siteproxy.edit_form_link"),
new WorkflowLockedComponentAccess(editSheet, itemModel), new WorkflowLockedComponentAccess(editSheet, itemModel),
editSheet.getSaveCancelSection().getCancelButton() ); editSheet.getSaveCancelSection().getCancelButton());
setDisplayComponent( getSiteProxyPropertySheet( itemModel ) ); setDefaultEditKey(EDIT_SHEET_NAME);
setDisplayComponent(getSiteProxyPropertySheet(itemModel));
} }
/** /**
* Returns a component that displays the properties of the SiteProxy * Returns a component that displays the properties of the SiteProxy specified by the ItemSelectionModel passed in.
* specified by the ItemSelectionModel passed in. *
*
* @param itemModel The ItemSelectionModel to use * @param itemModel The ItemSelectionModel to use
* @pre itemModel != null * @pre itemModel != null
* @return A component to display the state of the basic properties * @return A component to display the state of the basic properties of the release
* of the release
*/ */
public static Component getSiteProxyPropertySheet( ItemSelectionModel public static Component getSiteProxyPropertySheet(ItemSelectionModel itemModel) {
itemModel ) { DomainObjectPropertySheet sheet = new DomainObjectPropertySheet(itemModel);
DomainObjectPropertySheet sheet = new DomainObjectPropertySheet( itemModel );
sheet.add( GlobalizationUtil sheet.add(GlobalizationUtil
.globalize("cms.contenttypes.ui.title"), .globalize("cms.contenttypes.ui.title"),
SiteProxy.TITLE ); SiteProxy.TITLE);
sheet.add( GlobalizationUtil sheet.add(GlobalizationUtil
.globalize("cms.contenttypes.ui.name"), .globalize("cms.contenttypes.ui.name"),
SiteProxy.NAME ); SiteProxy.NAME);
sheet.add( SiteProxyGlobalizationUtil sheet.add(SiteProxyGlobalizationUtil
.globalize("cms.contenttypes.ui.siteproxy.url"), .globalize("cms.contenttypes.ui.siteproxy.url"),
SiteProxy.URL ); SiteProxy.URL);
return sheet; return sheet;
} }
} }