01: /*
02: * Copyright 2007 Giordano Maestro (giordano.maestro@assetdata.it)
03: *
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
06: * use this file except in compliance with the License.
07: *
08: * You may obtain a copy of the License at
09: * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
10: * or agreed to in writing, software distributed under the License is
11: * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
12: * KIND, either express or implied. See the License for the specific language
13: * governing permissions and limitations under the License.
14: */
15: package org.romaframework.module.designer.view.domain.radpage;
16:
17: import org.romaframework.core.flow.ObjectContext;
18: import org.romaframework.module.designer.domain.RadAction;
19: import org.romaframework.module.designer.view.domain.radpage.aspect.AspectsPage;
20: import org.romaframework.module.designer.view.domain.radpage.aspect.ChildPage;
21:
22: /**
23: * The action configuration page
24: *
25: *
26: * @author Giordano Maestro(giordano.maestro@assetdata.it) 09/nov/07
27: *
28: */
29: public class ActionAspectsPage extends AspectsPage {
30: protected RadActionPage action;
31:
32: public ActionAspectsPage(RadAction iRadAction) {
33: super ();
34: RadActionPage iAction = new RadActionPage(iRadAction);
35: action = iAction;
36: addPage(iAction);
37: addRegisteredAspects(iRadAction.getSchemaFeatures());
38: }
39:
40: @Override
41: public String toString() {
42: return "Action: " + action.getEntity().getName();
43: }
44:
45: @Override
46: public void cancel() {
47: ObjectContext.getInstance().show(getBackObject());
48: }
49:
50: @Override
51: public void ok() throws Exception {
52: for (ChildPage page : pages) {
53: page.apply();
54: }
55: ObjectContext.getInstance().show(getBackObject());
56: }
57:
58: }
|