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,14 +30,14 @@ 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";
/** /**
@ -59,20 +59,18 @@ public class SiteProxyPropertiesStep extends SimpleEditStep {
new WorkflowLockedComponentAccess(editSheet, itemModel), new WorkflowLockedComponentAccess(editSheet, itemModel),
editSheet.getSaveCancelSection().getCancelButton()); editSheet.getSaveCancelSection().getCancelButton());
setDefaultEditKey(EDIT_SHEET_NAME);
setDisplayComponent(getSiteProxyPropertySheet(itemModel)); 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
@ -88,4 +86,3 @@ public class SiteProxyPropertiesStep extends SimpleEditStep {
return sheet; return sheet;
} }
} }