From 6f227bab6832ef1b2d5b40cda96338fa01b9febc Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 17 Jun 2013 09:15:46 +0000 Subject: [PATCH] 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 --- .../ui/SiteProxyPropertiesStep.java | 63 +++++++++---------- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/ccm-cms-types-siteproxy/src/com/arsdigita/cms/contenttypes/ui/SiteProxyPropertiesStep.java b/ccm-cms-types-siteproxy/src/com/arsdigita/cms/contenttypes/ui/SiteProxyPropertiesStep.java index 62c187341..97043befb 100755 --- a/ccm-cms-types-siteproxy/src/com/arsdigita/cms/contenttypes/ui/SiteProxyPropertiesStep.java +++ b/ccm-cms-types-siteproxy/src/com/arsdigita/cms/contenttypes/ui/SiteProxyPropertiesStep.java @@ -30,62 +30,59 @@ import com.arsdigita.cms.util.GlobalizationUtil; import com.arsdigita.toolbox.ui.DomainObjectPropertySheet; import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess; - /** - * Authoring step to edit the simple attributes of the SiteProxy content - * type (and its subclasses). + * Authoring step to edit the simple attributes of the SiteProxy content type (and its subclasses). */ 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"; /** * Constructor. - * + * * @param itemModel - * @param parent + * @param parent */ - public SiteProxyPropertiesStep( ItemSelectionModel itemModel, - AuthoringKitWizard parent ) { - super( itemModel, parent ); + public SiteProxyPropertiesStep(ItemSelectionModel itemModel, + AuthoringKitWizard parent) { + super(itemModel, parent); BasicPageForm editSheet; - editSheet = new SiteProxyPropertyForm( itemModel ); - add( EDIT_SHEET_NAME, + editSheet = new SiteProxyPropertyForm(itemModel); + add(EDIT_SHEET_NAME, SiteProxyGlobalizationUtil.globalize( - "cms.contenttypes.ui.siteproxy.edit_form_link"), - new WorkflowLockedComponentAccess(editSheet, itemModel), - editSheet.getSaveCancelSection().getCancelButton() ); + "cms.contenttypes.ui.siteproxy.edit_form_link"), + new WorkflowLockedComponentAccess(editSheet, itemModel), + editSheet.getSaveCancelSection().getCancelButton()); - setDisplayComponent( getSiteProxyPropertySheet( itemModel ) ); + setDefaultEditKey(EDIT_SHEET_NAME); + setDisplayComponent(getSiteProxyPropertySheet(itemModel)); } /** - * Returns a component that displays the properties of the SiteProxy - * specified by the ItemSelectionModel passed in. - * + * Returns a component that displays the properties of the SiteProxy specified by the ItemSelectionModel passed in. + * * @param itemModel The ItemSelectionModel to use * @pre itemModel != null - * @return A component to display the state of the basic properties - * of the release + * @return A component to display the state of the basic properties of the release */ - public static Component getSiteProxyPropertySheet( ItemSelectionModel - itemModel ) { - DomainObjectPropertySheet sheet = new DomainObjectPropertySheet( itemModel ); + public static Component getSiteProxyPropertySheet(ItemSelectionModel itemModel) { + DomainObjectPropertySheet sheet = new DomainObjectPropertySheet(itemModel); - sheet.add( GlobalizationUtil - .globalize("cms.contenttypes.ui.title"), - SiteProxy.TITLE ); - sheet.add( GlobalizationUtil - .globalize("cms.contenttypes.ui.name"), - SiteProxy.NAME ); - sheet.add( SiteProxyGlobalizationUtil - .globalize("cms.contenttypes.ui.siteproxy.url"), - SiteProxy.URL ); + sheet.add(GlobalizationUtil + .globalize("cms.contenttypes.ui.title"), + SiteProxy.TITLE); + sheet.add(GlobalizationUtil + .globalize("cms.contenttypes.ui.name"), + SiteProxy.NAME); + sheet.add(SiteProxyGlobalizationUtil + .globalize("cms.contenttypes.ui.siteproxy.url"), + SiteProxy.URL); return sheet; } } -