01: package org.enhydra.jawe.base.panel.panels;
02:
03: import java.awt.Window;
04:
05: import javax.swing.JPanel;
06:
07: import org.enhydra.jawe.base.editor.XPDLElementEditor;
08: import org.enhydra.jawe.base.panel.PanelContainer;
09: import org.enhydra.shark.xpdl.XMLElement;
10:
11: /**
12: * Standard interface for creating all panels for editing XPDL content.
13: *
14: * @author Sasa Bojanic
15: */
16: public abstract class XMLPanel extends JPanel {
17:
18: public abstract void setOwner(XMLElement el);
19:
20: public abstract XPDLElementEditor getEditor();
21:
22: public abstract XMLElement getOwner();
23:
24: // public abstract XMLElement getOrginalOwner ();
25:
26: public abstract void setBorder(String title, boolean hasBorder,
27: boolean hasEmptyBorder);
28:
29: public abstract String getTitle();
30:
31: public abstract boolean validateEntry();
32:
33: // Always returns true, this is set because of panels that are never empty
34: // but this method is used when checking emptiness of group panel,
35: // and panels that do not override this method should not be ever considered
36: public abstract boolean isEmpty();
37:
38: public abstract void setElements();
39:
40: public abstract Object getValue();
41:
42: public abstract void updateView();
43:
44: public abstract void cleanup();
45:
46: // public abstract JComponent getMainComponent();
47:
48: public abstract Window getWindow();
49:
50: public abstract PanelContainer getPanelContainer();
51:
52: public abstract void canceled();
53: }
|