/[classpath]/classpath/javax/swing/event/TreeSelectionEvent.java
ViewVC logotype

Diff of /classpath/javax/swing/event/TreeSelectionEvent.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mkoch, Fri Oct 22 12:44:00 2004 UTC revision 1.4 by mkoch, Sun Jun 5 09:22:21 2005 UTC
# Line 1  Line 1 
1  /* TreeSelectionEvent.java --  /* TreeSelectionEvent.java --
2     Copyright (C) 2002, 2004 Free Software Foundation, Inc.     Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 49  import javax.swing.tree.TreePath; Line 49  import javax.swing.tree.TreePath;
49   */   */
50  public class TreeSelectionEvent extends EventObject {  public class TreeSelectionEvent extends EventObject {
51    
52          //-------------------------------------------------------------    //-------------------------------------------------------------
53          // Variables --------------------------------------------------    // Variables --------------------------------------------------
54          //-------------------------------------------------------------    //-------------------------------------------------------------
55    
56          /**    /**
57           * paths     * paths
58           */     */
59          protected TreePath[] paths;    protected TreePath[] paths;
60    
61          /**    /**
62           * areNew     * areNew
63           */     */
64          protected boolean[] areNew;    protected boolean[] areNew;
65    
66          /**    /**
67           * oldLeadSelectionPath     * oldLeadSelectionPath
68           */     */
69          protected TreePath oldLeadSelectionPath;    protected TreePath oldLeadSelectionPath;
70    
71          /**    /**
72           * newLeadSelectionPath     * newLeadSelectionPath
73           */     */
74          protected TreePath newLeadSelectionPath;    protected TreePath newLeadSelectionPath;
75    
76    
77          //-------------------------------------------------------------    //-------------------------------------------------------------
78          // Initialization ---------------------------------------------    // Initialization ---------------------------------------------
79          //-------------------------------------------------------------    //-------------------------------------------------------------
80    
81          /**    /**
82           * Constructor TreeSelectionEvent     * Constructor TreeSelectionEvent
83           * @param source TODO     * @param source TODO
84           * @param paths TODO     * @param paths TODO
85           * @param areNew TODO     * @param areNew TODO
86           * @param oldLeadSelectionPath TODO     * @param oldLeadSelectionPath TODO
87           * @param newLeadSelectionPath TODO     * @param newLeadSelectionPath TODO
88           */     */
89          public TreeSelectionEvent(Object source, TreePath[] paths,    public TreeSelectionEvent(Object source, TreePath[] paths,
90                                  boolean[] areNew, TreePath oldLeadSelectionPath,                              boolean[] areNew, TreePath oldLeadSelectionPath,
91                                  TreePath newLeadSelectionPath) {                              TreePath newLeadSelectionPath)
92                  super(source);    {
93                  this.paths                                      = paths;      super(source);
94                  this.areNew                                     = areNew;      this.paths                                  = paths;
95                  this.oldLeadSelectionPath       = oldLeadSelectionPath;      this.areNew                                 = areNew;
96                  this.newLeadSelectionPath       = newLeadSelectionPath;      this.oldLeadSelectionPath   = oldLeadSelectionPath;
97          } // TreeSelectionEvent()      this.newLeadSelectionPath   = newLeadSelectionPath;
98      } // TreeSelectionEvent()
99          /**  
100           * Constructor TreeSelectionEvent    /**
101           * @param source TODO     * Constructor TreeSelectionEvent
102           * @param paths TODO     * @param source TODO
103           * @param areNew TODO     * @param paths TODO
104           * @param oldLeadSelectionPath TODO     * @param areNew TODO
105           * @param newLeadSelectionPath TODO     * @param oldLeadSelectionPath TODO
106           */     * @param newLeadSelectionPath TODO
107          public TreeSelectionEvent(Object source, TreePath path,     */
108                                  boolean isNew, TreePath oldLeadSelectionPath,    public TreeSelectionEvent(Object source, TreePath path,
109                                  TreePath newLeadSelectionPath) {                              boolean isNew, TreePath oldLeadSelectionPath,
110                  super(source);                              TreePath newLeadSelectionPath)
111  //TODO          this.paths                                      = new TreePath[1]{path};    {
112  //TODO          this.areNew                                     = new boolean[1]{isNew};      super(source);
113                  this.oldLeadSelectionPath       = oldLeadSelectionPath;      //TODO              this.paths                                      = new TreePath[1]{path};
114                  this.newLeadSelectionPath       = newLeadSelectionPath;      //TODO              this.areNew                                     = new boolean[1]{isNew};
115          } // TreeSelectionEvent()      this.oldLeadSelectionPath   = oldLeadSelectionPath;
116        this.newLeadSelectionPath   = newLeadSelectionPath;
117      } // TreeSelectionEvent()
118          //-------------------------------------------------------------  
119          // Methods ----------------------------------------------------  
120          //-------------------------------------------------------------    //-------------------------------------------------------------
121      // Methods ----------------------------------------------------
122          /**    //-------------------------------------------------------------
123           * getPath  
124           * @returns TreePath    /**
125           */     * getPath
126          public TreePath getPath() {     * @returns TreePath
127                  return paths[0];     */
128          } // getPath()    public TreePath getPath()
129      {
130          /**      return paths[0];
131           * getPaths    } // getPath()
132           * @returns TreePath[]  
133           */    /**
134          public TreePath[] getPaths() {     * getPaths
135                  return paths;     * @returns TreePath[]
136          } // getPaths()     */
137      public TreePath[] getPaths()
138          /**    {
139           * isAddedPath      return paths;
140           * @returns boolean    } // getPaths()
141           */  
142          public boolean isAddedPath() {    /**
143                  return false; // TODO     * isAddedPath
144          } // isAddedPath()     * @returns boolean
145       */
146          /**    public boolean isAddedPath()
147           * isAddedPath    {
148           * @param path TODO      return false; // TODO
149           * @returns boolean    } // isAddedPath()
150           */  
151          public boolean isAddedPath(TreePath path) {    /**
152                  return false; // TODO     * isAddedPath
153          } // isAddedPath()     * @param path TODO
154       * @returns boolean
155          /**     */
156           * isAddedPath    public boolean isAddedPath(TreePath path)
157           * @param index TODO    {
158           * @returns boolean      return false; // TODO
159           */    } // isAddedPath()
160          public boolean isAddedPath(int index) {  
161                  return false; // TODO    /**
162          } // isAddedPath()     * isAddedPath
163       * @param index TODO
164          /**     * @returns boolean
165           * getOldLeadSelectionPath     */
166           * @returns TreePath    public boolean isAddedPath(int index)
167           */    {
168          public TreePath getOldLeadSelectionPath() {      return false; // TODO
169                  return oldLeadSelectionPath;    } // isAddedPath()
170          } // getOldLeadSelectionPath()  
171      /**
172          /**     * getOldLeadSelectionPath
173           * getNewLeadSelectionPath     * @returns TreePath
174           * @returns TreePath     */
175           */    public TreePath getOldLeadSelectionPath()
176          public TreePath getNewLeadSelectionPath() {    {
177                  return newLeadSelectionPath;      return oldLeadSelectionPath;
178          } // getNewLeadSelectionPath()    } // getOldLeadSelectionPath()
179    
180          /**    /**
181           * cloneWithSource     * getNewLeadSelectionPath
182           * @param source TODO     * @returns TreePath
183           * @returns Object     */
184           */    public TreePath getNewLeadSelectionPath()
185          public Object cloneWithSource(Object source) {    {
186                  return null; // TODO      return newLeadSelectionPath;
187          } // cloneWithSource()    } // getNewLeadSelectionPath()
188    
189      /**
190       * cloneWithSource
191       * @param source TODO
192       * @returns Object
193       */
194      public Object cloneWithSource(Object source)
195      {
196        return null; // TODO
197      } // cloneWithSource()
198    
199    
200  } // TreeSelectionEvent  } // TreeSelectionEvent

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26