001: /*
002: * This file is not part of the ItsNat framework.
003: *
004: * Original source code use and closed source derivatives are authorized
005: * to third parties with no restriction or fee.
006: * The original source code is owned by the author.
007: *
008: * This program is distributed AS IS in the hope that it will be useful,
009: * but WITHOUT ANY WARRANTY; without even the implied warranty of
010: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
011: *
012: * Author: Jose Maria Arranz Santamaria
013: * (C) Innowhere Software Services S.L., Spanish company, year 2007
014: */
015:
016: package org.itsnat.feashow.features.components.shared;
017:
018: import java.beans.PropertyChangeListener;
019: import java.beans.VetoableChangeListener;
020: import org.itsnat.comp.ItsNatComponent;
021: import org.itsnat.comp.ItsNatComponentManager;
022: import org.itsnat.comp.ui.ItsNatComponentUI;
023: import org.itsnat.core.ItsNatDocument;
024: import org.itsnat.core.event.ParamTransport;
025: import org.w3c.dom.Element;
026: import org.w3c.dom.Node;
027: import org.w3c.dom.events.EventListener;
028:
029: public abstract class MyCustomComponentBase implements ItsNatComponent {
030: protected Element parentElement;
031: protected ItsNatComponentManager compMgr;
032:
033: public MyCustomComponentBase(Element parentElement,
034: ItsNatComponentManager compMgr) {
035: this .parentElement = parentElement;
036: this .compMgr = compMgr;
037: }
038:
039: public Node getNode() {
040: return parentElement;
041: }
042:
043: public void setNode(Node node) {
044: throw new RuntimeException("REATTACHMENT IS NOT SUPPORTED");
045: }
046:
047: public ItsNatDocument getItsNatDocument() {
048: return compMgr.getItsNatDocument();
049: }
050:
051: public ItsNatComponentManager getItsNatComponentManager() {
052: return compMgr;
053: }
054:
055: public void addEventListener(String type, EventListener listener) {
056: throw new RuntimeException("NOT IMPLEMENTED");
057: }
058:
059: public void removeEventListener(String type, EventListener listener) {
060: throw new RuntimeException("NOT IMPLEMENTED");
061: }
062:
063: public void enableEventListener(String type) {
064: throw new RuntimeException("NOT IMPLEMENTED");
065: }
066:
067: public void disableEventListener(String type) {
068: throw new RuntimeException("NOT IMPLEMENTED");
069: }
070:
071: public ItsNatComponentUI getItsNatComponentUI() {
072: throw new RuntimeException("NOT IMPLEMENTED");
073: }
074:
075: public int getSyncMode() {
076: throw new RuntimeException("NOT IMPLEMENTED");
077: }
078:
079: public void setSyncMode(int syncMode) {
080: throw new RuntimeException("NOT IMPLEMENTED");
081: }
082:
083: public boolean hasFocus() {
084: throw new RuntimeException("NOT IMPLEMENTED");
085: }
086:
087: public void addPropertyChangeListener(
088: PropertyChangeListener listener) {
089: throw new RuntimeException("NOT IMPLEMENTED");
090: }
091:
092: public void removePropertyChangeListener(
093: PropertyChangeListener listener) {
094: throw new RuntimeException("NOT IMPLEMENTED");
095: }
096:
097: public PropertyChangeListener[] getPropertyChangeListeners() {
098: throw new RuntimeException("NOT IMPLEMENTED");
099: }
100:
101: public void addPropertyChangeListener(String propertyName,
102: PropertyChangeListener listener) {
103: throw new RuntimeException("NOT IMPLEMENTED");
104: }
105:
106: public void removePropertyChangeListener(String propertyName,
107: PropertyChangeListener listener) {
108: throw new RuntimeException("NOT IMPLEMENTED");
109: }
110:
111: public PropertyChangeListener[] getPropertyChangeListeners(
112: String propertyName) {
113: throw new RuntimeException("NOT IMPLEMENTED");
114: }
115:
116: public void addVetoableChangeListener(
117: VetoableChangeListener listener) {
118: throw new RuntimeException("NOT IMPLEMENTED");
119: }
120:
121: public void removeVetoableChangeListener(
122: VetoableChangeListener listener) {
123: throw new RuntimeException("NOT IMPLEMENTED");
124: }
125:
126: public VetoableChangeListener[] getVetoableChangeListeners() {
127: throw new RuntimeException("NOT IMPLEMENTED");
128: }
129:
130: public void registerArtifact(String name, Object value) {
131: throw new RuntimeException("NOT IMPLEMENTED");
132: }
133:
134: public Object getArtifact(String name) {
135: throw new RuntimeException("NOT IMPLEMENTED");
136: }
137:
138: public Object getArtifact(String name, boolean cascade) {
139: throw new RuntimeException("NOT IMPLEMENTED");
140: }
141:
142: public Object removeArtifact(String name) {
143: throw new RuntimeException("NOT IMPLEMENTED");
144: }
145:
146: public String[] getArtifactNames(String name) {
147: throw new RuntimeException("NOT IMPLEMENTED");
148: }
149:
150: public Object removeUserValue(String name) {
151: throw new RuntimeException("NOT IMPLEMENTED");
152: }
153:
154: public Object getUserValue(String name) {
155: throw new RuntimeException("NOT IMPLEMENTED");
156: }
157:
158: public Object setUserValue(String name, Object value) {
159: throw new RuntimeException("NOT IMPLEMENTED");
160: }
161:
162: public String[] getUserValueNames() {
163: throw new RuntimeException("NOT IMPLEMENTED");
164: }
165:
166: public boolean containsUserValueName(String name) {
167: throw new RuntimeException("NOT IMPLEMENTED");
168: }
169:
170: public void setEventListenerParams(String type, boolean useCapture,
171: int syncMode, ParamTransport[] extraParams,
172: String preSendCode, long ajaxTimeout) {
173: throw new RuntimeException("NOT IMPLEMENTED");
174: }
175: }
|