01: package org.netbeans.modules.web.jsf.navigation.graph;
02:
03: import java.awt.Image;
04: import java.io.IOException;
05: import org.openide.nodes.Node;
06:
07: /*
08: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
09: *
10: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
11: *
12: * The contents of this file are subject to the terms of either the GNU
13: * General Public License Version 2 only ("GPL") or the Common
14: * Development and Distribution License("CDDL") (collectively, the
15: * "License"). You may not use this file except in compliance with the
16: * License. You can obtain a copy of the License at
17: * http://www.netbeans.org/cddl-gplv2.html
18: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
19: * specific language governing permissions and limitations under the
20: * License. When distributing the software, include this License Header
21: * Notice in each file and include the License file at
22: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
23: * particular file as subject to the "Classpath" exception as provided
24: * by Sun in the GPL Version 2 section of the License file that
25: * accompanied this code. If applicable, add the following below the
26: * License Header, with the fields enclosed by brackets [] replaced by
27: * your own identifying information:
28: * "Portions Copyrighted [year] [name of copyright owner]"
29: *
30: * Contributor(s):
31: *
32: * To change this template, choose Tools | Template Manager
33: * and open the template in the editor.
34: */
35: import org.openide.util.HelpCtx;
36:
37: /**
38: *
39: * @author joelle
40: */
41: public abstract class PageFlowSceneElement {
42: private String name;
43:
44: public PageFlowSceneElement() {
45: }
46:
47: public boolean equals(Object obj) {
48: return (this == obj);
49: }
50:
51: @Override
52: public int hashCode() {
53: return System.identityHashCode(this );
54: }
55:
56: public void setName(String name) {
57: this .name = name;
58: }
59:
60: public String getName() {
61: return name;
62: }
63:
64: private boolean modifiable = true;
65:
66: public boolean isModifiable() {
67: return modifiable;
68: }
69:
70: public void setModifiable(boolean modifiable) {
71: this .modifiable = modifiable;
72: }
73:
74: public abstract Node getNode();
75:
76: public abstract HelpCtx getHelpCtx();
77:
78: public abstract void destroy() throws IOException;
79:
80: public abstract boolean canDestroy();
81:
82: public abstract boolean canRename();
83:
84: public abstract Image getIcon(int type);
85: }
|