01: /*
02: * Copyright 2005 JBoss Inc
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.drools.brms.client;
18:
19: import org.drools.brms.client.decisiontable.EditableDTGrid;
20:
21: import com.google.gwt.user.client.ui.VerticalPanel;
22:
23: /**
24: * Demonstrates the various text widgets.
25: */
26: public class RuleBases extends JBRMSFeature {
27:
28: public static ComponentInfo init() {
29: return new ComponentInfo("RuleBases",
30: "A temporary place holder for DTs.") {
31: public JBRMSFeature createInstance() {
32: return new RuleBases();
33: }
34:
35: };
36: }
37:
38: public RuleBases() {
39: VerticalPanel panel = new VerticalPanel();
40: panel.setSpacing(8);
41: panel.add(new EditableDTGrid("Pricing rules"));
42: initWidget(panel);
43: }
44:
45: public void onShow() {
46: }
47:
48: }
|