[Patch][gui] javax.swing.tree - reformatted

Michael Koch konqueror@gmx.de
Sun Oct 24 09:26:00 GMT 2004


Hi list,


I jsut commited the attached patch to reformat some parts of
javax.swing.tree.


Michael


2004-10-24  Michael Koch  <konqueror@gmx.de>

	* javax/swing/tree/DefaultTreeCellEditor.java,
	javax/swing/tree/DefaultTreeModel.java,
	javax/swing/tree/DefaultTreeSelectionModel.java:
	Jalopied.

-------------- next part --------------
Index: javax/swing/tree/DefaultTreeCellEditor.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/tree/DefaultTreeCellEditor.java,v
retrieving revision 1.2.18.2
diff -u -r1.2.18.2 DefaultTreeCellEditor.java
--- javax/swing/tree/DefaultTreeCellEditor.java	24 Oct 2004 09:00:50 -0000	1.2.18.2
+++ javax/swing/tree/DefaultTreeCellEditor.java	24 Oct 2004 09:20:24 -0000
@@ -67,25 +67,11 @@
 public class DefaultTreeCellEditor
   implements ActionListener, TreeCellEditor, TreeSelectionListener
 {
-
-	//-------------------------------------------------------------
-	// Classes ----------------------------------------------------
-	//-------------------------------------------------------------
-
-	/**
-	 * EditorContainer
-	 */
-	public class EditorContainer extends Container {
-
-		//-------------------------------------------------------------
-		// Variables --------------------------------------------------
-		//-------------------------------------------------------------
-
-
-		//-------------------------------------------------------------
-		// Initialization ---------------------------------------------
-		//-------------------------------------------------------------
-
+  /**
+   * EditorContainer
+   */
+  public class EditorContainer extends Container
+  {
     /**
      * Creates an <code>EditorContainer</code> object.
      */
@@ -94,11 +80,6 @@
       // Do nothing here.
     }
 
-
-		//-------------------------------------------------------------
-		// Methods ----------------------------------------------------
-		//-------------------------------------------------------------
-
     /**
      * This method only exists for API compatibility and is useless as it does
      * nothing. It got probably introduced by accident.
@@ -108,76 +89,65 @@
       // Do nothing here.
     }
 
-		/**
-		 * getPreferredSize
-		 * @returns Dimension
-		 */
-		public Dimension getPreferredSize() {
-			return null; // TODO
-		} // getPreferredSize()
-
-		/**
-		 * paint
-		 * @param value0 TODO
-		 */
-		public void paint(Graphics value0) {
-			// TODO
-		} // paint()
-
-		/**
-		 * doLayout
-		 */
-		public void doLayout() {
-			// TODO
-		} // doLayout()
-
-
-	} // EditorContainer
-
-	/**
-	 * DefaultTextField
-	 */
-	public class DefaultTextField extends JTextField {
-
-		//-------------------------------------------------------------
-		// Variables --------------------------------------------------
-		//-------------------------------------------------------------
-
-		/**
-		 * border
-		 */
-		protected Border border;
-
-
-		//-------------------------------------------------------------
-		// Initialization ---------------------------------------------
-		//-------------------------------------------------------------
+    /**
+     * getPreferredSize
+     * @return Dimension
+     */
+    public Dimension getPreferredSize()
+    {
+      return null; // TODO
+    }
 
+    /**
+     * paint
+     * @param value0 TODO
+     */
+    public void paint(Graphics value0)
+    {
+      // TODO
+    }
+
+    /**
+     * doLayout
+     */
+    public void doLayout()
+    {
+      // TODO
+    }
+  }
+
+  /**
+   * DefaultTextField
+   */
+  public class DefaultTextField extends JTextField
+  {
+    /**
+     * border
+     */
+    protected Border border;
 
     /**
      * Creates a <code>DefaultTextField</code> object.
-     * 
+     *
      * @param border the border to use
      */
     public DefaultTextField(Border border)
     {
       this.border = border;
     }
-		//-------------------------------------------------------------
-		// Methods ----------------------------------------------------
-		//-------------------------------------------------------------
-
-		/**
-		 * getFont
-		 * @returns Font
-		 */
-		public Font getFont() {
-			return null; // TODO
-		} // getFont()
+
+    /**
+     * getFont
+     * @return Font
+     */
+    public Font getFont()
+    {
+      return null; // TODO
+    }
 
     /**
      * Returns the border of the text field.
-     * 
+     *
      * @return the border
      */
     public Border getBorder()
@@ -185,227 +155,229 @@
       return border;
     }
 
-		/**
-		 * getPreferredSize
-		 * @returns Dimension
-		 */
-		public Dimension getPreferredSize() {
-			return null; // TODO
-		} // getPreferredSize()
+    /**
+     * getPreferredSize
+     * @return Dimension
+     */
+    public Dimension getPreferredSize()
+    {
+      return null; // TODO
+    }
+  }
 
+  private EventListenerList listenerList = new EventListenerList();
 
-	} // DefaultTextField
+  /**
+   * realEditor
+   */
+  protected TreeCellEditor realEditor;
+
+  /**
+   * renderer
+   */
+  protected DefaultTreeCellRenderer renderer;
 
+  /**
+   * editingContainer
+   */
+  protected Container editingContainer;
 
-	//-------------------------------------------------------------
-	// Variables --------------------------------------------------
-	//-------------------------------------------------------------
+  /**
+   * editingComponent
+   */
+  protected transient Component editingComponent;
 
-  private EventListenerList listenerList = new EventListenerList();
+  /**
+   * canEdit
+   */
+  protected boolean canEdit;
+
+  /**
+   * offset
+   */
+  protected transient int offset;
+
+  /**
+   * tree
+   */
+  protected transient JTree tree;
+
+  /**
+   * lastPath
+   */
+  protected transient TreePath lastPath;
+
+  /**
+   * timer
+   */
+  protected transient javax.swing.Timer timer; // TODO
+
+  /**
+   * lastRow
+   */
+  protected transient int lastRow;
+
+  /**
+   * borderSelectionColor
+   */
+  protected Color borderSelectionColor;
+
+  /**
+   * editingIcon
+   */
+  protected transient Icon editingIcon;
+
+  /**
+   * font
+   */
+  protected Font font;
+
+  /**
+   * Constructor DefaultTreeCellEditor
+   * @param value0 TODO
+   * @param value1 TODO
+   */
+  public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1)
+  {
+    // TODO
+  }
+
+  /**
+   * Constructor DefaultTreeCellEditor
+   * @param value0 TODO
+   * @param value1 TODO
+   * @param value2 TODO
+   */
+  public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1,
+                               TreeCellEditor value2)
+  {
+    // TODO
+  }
+
+  /**
+   * writeObject
+   * @param value0 TODO
+   * @exception IOException TODO
+   */
+  private void writeObject(ObjectOutputStream value0) throws IOException
+  {
+    // TODO
+  }
+
+  /**
+   * readObject
+   * @param value0 TODO
+   * @exception IOException TODO
+   * @exception ClassNotFoundException TODO
+   */
+  private void readObject(ObjectInputStream value0)
+    throws IOException, ClassNotFoundException
+  {
+    // TODO
+  }
+
+  /**
+   * setBorderSelectionColor
+   * @param value0 TODO
+   */
+  public void setBorderSelectionColor(Color value0)
+  {
+    // TODO
+  }
 
-	/**
-	 * realEditor
-	 */
-	protected TreeCellEditor realEditor;
-
-	/**
-	 * renderer
-	 */
-	protected DefaultTreeCellRenderer renderer;
-
-	/**
-	 * editingContainer
-	 */
-	protected Container editingContainer;
-
-	/**
-	 * editingComponent
-	 */
-	protected transient Component editingComponent;
-
-	/**
-	 * canEdit
-	 */
-	protected boolean canEdit;
-
-	/**
-	 * offset
-	 */
-	protected transient int offset;
-
-	/**
-	 * tree
-	 */
-	protected transient JTree tree;
-
-	/**
-	 * lastPath
-	 */
-	protected transient TreePath lastPath;
-
-	/**
-	 * timer
-	 */
-	protected transient javax.swing.Timer timer; // TODO
-
-	/**
-	 * lastRow
-	 */
-	protected transient int lastRow;
-
-	/**
-	 * borderSelectionColor
-	 */
-	protected Color borderSelectionColor;
-
-	/**
-	 * editingIcon
-	 */
-	protected transient Icon editingIcon;
-
-	/**
-	 * font
-	 */
-	protected Font font;
-
-
-	//-------------------------------------------------------------
-	// Initialization ---------------------------------------------
-	//-------------------------------------------------------------
-
-	/**
-	 * Constructor DefaultTreeCellEditor
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 */
-	public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1) {
-		// TODO
-	} // DefaultTreeCellEditor()
-
-	/**
-	 * Constructor DefaultTreeCellEditor
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 * @param value2 TODO
-	 */
-	public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1, TreeCellEditor value2) {
-		// TODO
-	} // DefaultTreeCellEditor()
-
-
-	//-------------------------------------------------------------
-	// Methods ----------------------------------------------------
-	//-------------------------------------------------------------
-
-	/**
-	 * writeObject
-	 * @param value0 TODO
-	 * @exception IOException TODO
-	 */
-	private void writeObject(ObjectOutputStream value0) throws IOException {
-		// TODO
-	} // writeObject()
-
-	/**
-	 * readObject
-	 * @param value0 TODO
-	 * @exception IOException TODO
-	 * @exception ClassNotFoundException TODO
-	 */
-	private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException {
-		// TODO
-	} // readObject()
-
-	/**
-	 * setBorderSelectionColor
-	 * @param value0 TODO
-	 */
-	public void setBorderSelectionColor(Color value0) {
-		// TODO
-	} // setBorderSelectionColor()
-
-	/**
-	 * getBorderSelectionColor
-	 * @returns Color
-	 */
-	public Color getBorderSelectionColor() {
-		return null; // TODO
-	} // getBorderSelectionColor()
-
-	/**
-	 * setFont
-	 * @param value0 TODO
-	 */
-	public void setFont(Font value0) {
-		// TODO
-	} // setFont()
-
-	/**
-	 * getFont
-	 * @returns Font
-	 */
-	public Font getFont() {
-		return null; // TODO
-	} // getFont()
-
-	/**
-	 * getTreeCellEditorComponent
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 * @param value2 TODO
-	 * @param value3 TODO
-	 * @param value4 TODO
-	 * @param value5 TODO
-	 * @returns Component
-	 */
-	public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) {
-		return null; // TODO
-	} // getTreeCellEditorComponent()
-
-	/**
-	 * getCellEditorValue
-	 * @returns Object
-	 */
-	public Object getCellEditorValue() {
-		return null; // TODO
-	} // getCellEditorValue()
-
-	/**
-	 * isCellEditable
-	 * @param value0 TODO
-	 * @returns boolean
-	 */
-	public boolean isCellEditable(EventObject value0) {
-		return false; // TODO
-	} // isCellEditable()
-
-	/**
-	 * shouldSelectCell
-	 * @param value0 TODO
-	 * @returns boolean
-	 */
-	public boolean shouldSelectCell(EventObject value0) {
-		return false; // TODO
-	} // shouldSelectCell()
-
-	/**
-	 * stopCellEditing
-	 * @returns boolean
-	 */
-	public boolean stopCellEditing() {
-		return false; // TODO
-	} // stopCellEditing()
-
-	/**
-	 * cancelCellEditing
-	 */
-	public void cancelCellEditing() {
-		// TODO
-	} // cancelCellEditing()
+  /**
+   * getBorderSelectionColor
+   * @return Color
+   */
+  public Color getBorderSelectionColor()
+  {
+    return null; // TODO
+  }
+
+  /**
+   * setFont
+   * @param value0 TODO
+   */
+  public void setFont(Font value0)
+  {
+    // TODO
+  }
+
+  /**
+   * getFont
+   * @return Font
+   */
+  public Font getFont()
+  {
+    return null; // TODO
+  }
+
+  /**
+   * getTreeCellEditorComponent
+   * @param value0 TODO
+   * @param value1 TODO
+   * @param value2 TODO
+   * @param value3 TODO
+   * @param value4 TODO
+   * @param value5 TODO
+   * @return Component
+   */
+  public Component getTreeCellEditorComponent(JTree value0, Object value1,
+                                              boolean value2, boolean value3,
+                                              boolean value4, int value5)
+  {
+    return null; // TODO
+  }
+
+  /**
+   * getCellEditorValue
+   * @return Object
+   */
+  public Object getCellEditorValue()
+  {
+    return null; // TODO
+  }
+
+  /**
+   * isCellEditable
+   * @param value0 TODO
+   * @return boolean
+   */
+  public boolean isCellEditable(EventObject value0)
+  {
+    return false; // TODO
+  }
+
+  /**
+   * shouldSelectCell
+   * @param value0 TODO
+   * @return boolean
+   */
+  public boolean shouldSelectCell(EventObject value0)
+  {
+    return false; // TODO
+  }
+
+  /**
+   * stopCellEditing
+   * @return boolean
+   */
+  public boolean stopCellEditing()
+  {
+    return false; // TODO
+  }
+
+  /**
+   * cancelCellEditing
+   */
+  public void cancelCellEditing()
+  {
+    // TODO
+  }
 
   /**
    * Adds a <code>CellEditorListener</code> object to this editor.
-   * 
+   *
    * @param listener the listener to add
    */
   public void addCellEditorListener(CellEditorListener listener)
@@ -415,7 +387,7 @@
 
   /**
    * Removes a <code>CellEditorListener</code> object.
-   * 
+   *
    * @param listener the listener to remove
    */
   public void removeCellEditorListener(CellEditorListener listener)
@@ -427,109 +399,118 @@
    * Returns all added <code>CellEditorListener</code> objects to this editor.
    *
    * @return an array of listeners
-   * 
+   *
    * @since 1.4
    */
   public CellEditorListener[] getCellEditorListeners()
   {
-    return (CellEditorListener[])
-	     listenerList.getListeners(CellEditorListener.class);
+    return (CellEditorListener[]) listenerList.getListeners(CellEditorListener.class);
   }
 
-	/**
-	 * valueChanged
-	 * @param value0 TODO
-	 */
-	public void valueChanged(TreeSelectionEvent value0) {
-		// TODO
-	} // valueChanged()
-
-	/**
-	 * actionPerformed
-	 * @param value0 TODO
-	 */
-	public void actionPerformed(ActionEvent value0) {
-		// TODO
-	} // actionPerformed()
-
-	/**
-	 * setTree
-	 * @param value0 TODO
-	 */
-	protected void setTree(JTree value0) {
-		// TODO
-	} // setTree()
-
-	/**
-	 * shouldStartEditingTimer
-	 * @param value0 TODO
-	 * @returns boolean
-	 */
-	protected boolean shouldStartEditingTimer(EventObject value0) {
-		return false; // TODO
-	} // shouldStartEditingTimer()
-
-	/**
-	 * startEditingTimer
-	 */
-	protected void startEditingTimer() {
-		// TODO
-	} // startEditingTimer()
-
-	/**
-	 * canEditImmediately
-	 * @param value0 TODO
-	 * @returns boolean
-	 */
-	protected boolean canEditImmediately(EventObject value0) {
-		return false; // TODO
-	} // canEditImmediately()
-
-	/**
-	 * inHitRegion
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 * @returns boolean
-	 */
-	protected boolean inHitRegion(int value0, int value1) {
-		return false; // TODO
-	} // inHitRegion()
-
-	/**
-	 * determineOffset
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 * @param value2 TODO
-	 * @param value3 TODO
-	 * @param value4 TODO
-	 * @param value5 TODO
-	 */
-	protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) {
-		// TODO
-	} // determineOffset()
-
-	/**
-	 * prepareForEditing
-	 */
-	protected void prepareForEditing() {
-		// TODO
-	} // prepareForEditing()
-
-	/**
-	 * createContainer
-	 * @returns Container
-	 */
-	protected Container createContainer() {
-		return null; // TODO
-	} // createContainer()
-
-	/**
-	 * createTreeCellEditor
-	 * @returns TreeCellEditor
-	 */
-	protected TreeCellEditor createTreeCellEditor() {
-		return null; // TODO
-	} // createTreeCellEditor()
+  /**
+   * valueChanged
+   * @param value0 TODO
+   */
+  public void valueChanged(TreeSelectionEvent value0)
+  {
+    // TODO
+  }
 
+  /**
+   * actionPerformed
+   * @param value0 TODO
+   */
+  public void actionPerformed(ActionEvent value0)
+  {
+    // TODO
+  }
+
+  /**
+   * setTree
+   * @param value0 TODO
+   */
+  protected void setTree(JTree value0)
+  {
+    // TODO
+  }
+
+  /**
+   * shouldStartEditingTimer
+   * @param value0 TODO
+   * @return boolean
+   */
+  protected boolean shouldStartEditingTimer(EventObject value0)
+  {
+    return false; // TODO
+  }
+
+  /**
+   * startEditingTimer
+   */
+  protected void startEditingTimer()
+  {
+    // TODO
+  }
+
+  /**
+   * canEditImmediately
+   * @param value0 TODO
+   * @return boolean
+   */
+  protected boolean canEditImmediately(EventObject value0)
+  {
+    return false; // TODO
+  }
 
-} // DefaultTreeCellEditor
+  /**
+   * inHitRegion
+   * @param value0 TODO
+   * @param value1 TODO
+   * @return boolean
+   */
+  protected boolean inHitRegion(int value0, int value1)
+  {
+    return false; // TODO
+  }
+
+  /**
+   * determineOffset
+   * @param value0 TODO
+   * @param value1 TODO
+   * @param value2 TODO
+   * @param value3 TODO
+   * @param value4 TODO
+   * @param value5 TODO
+   */
+  protected void determineOffset(JTree value0, Object value1, boolean value2,
+                                 boolean value3, boolean value4, int value5)
+  {
+    // TODO
+  }
+
+  /**
+   * prepareForEditing
+   */
+  protected void prepareForEditing()
+  {
+    // TODO
+  }
+
+  /**
+   * createContainer
+   * @return Container
+   */
+  protected Container createContainer()
+  {
+    return null; // TODO
+  }
+
+  /**
+   * createTreeCellEditor
+   * @return TreeCellEditor
+   */
+  protected TreeCellEditor createTreeCellEditor()
+  {
+    return null; // TODO
+  }
+}
Index: javax/swing/tree/DefaultTreeModel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/tree/DefaultTreeModel.java,v
retrieving revision 1.3.18.2
diff -u -r1.3.18.2 DefaultTreeModel.java
--- javax/swing/tree/DefaultTreeModel.java	24 Oct 2004 09:00:50 -0000	1.3.18.2
+++ javax/swing/tree/DefaultTreeModel.java	24 Oct 2004 09:20:24 -0000
@@ -52,263 +52,275 @@
  * DefaultTreeModel
  * @author Andrew Selkirk
  */
-public class DefaultTreeModel implements Serializable, TreeModel
+public class DefaultTreeModel
+  implements Serializable, TreeModel
 {
   static final long serialVersionUID = -2621068368932566998L;
 
-	//-------------------------------------------------------------
-	// Variables --------------------------------------------------
-	//-------------------------------------------------------------
-
-	/**
-	 * root
-	 */
-	protected TreeNode root = null;
-
-	/**
-	 * listenerList
-	 */
-	protected EventListenerList listenerList = new EventListenerList();
-
-	/**
-	 * asksAllowsChildren
-	 */
-	protected boolean asksAllowsChildren;
-
-
-	//-------------------------------------------------------------
-	// Initialization ---------------------------------------------
-	//-------------------------------------------------------------
-
-	/**
-	 * Constructor DefaultTreeModel
-	 * @param value0 TODO
-	 */
-	public DefaultTreeModel(TreeNode root) {
-		setRoot(root);
-	} // DefaultTreeModel()
-
-	/**
-	 * Constructor DefaultTreeModel
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 */
-	public DefaultTreeModel(TreeNode root, boolean asksAllowsChildren) {
-		setRoot(root);
-		this.asksAllowsChildren = asksAllowsChildren;
-	} // DefaultTreeModel()
-
-
-	//-------------------------------------------------------------
-	// Methods ----------------------------------------------------
-	//-------------------------------------------------------------
-
-	/**
-	 * writeObject
-	 * @param value0 TODO
-	 * @exception IOException TODO
-	 */
-	private void writeObject(ObjectOutputStream value0) throws IOException {
-		// TODO
-	} // writeObject()
-
-	/**
-	 * readObject
-	 * @param value0 TODO
-	 * @exception IOException TODO
-	 * @exception ClassNotFoundException TODO
-	 */
-	private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException {
-		// TODO
-	} // readObject()
-
-	/**
-	 * asksAllowsChildren
-	 * @returns boolean
-	 */
-	public boolean asksAllowsChildren() {
-		return asksAllowsChildren;
-	} // asksAllowsChildren()
-
-	/**
-	 * setAsksAllowsChildren
-	 * @param value0 TODO
-	 */
-	public void setAsksAllowsChildren(boolean value) {
-		asksAllowsChildren = value; // TODO
-	} // setAsksAllowsChildren()
-
-	/**
-	 * setRoot
-	 * @param value0 TODO
-	 */
-	public void setRoot(TreeNode root) {
-
-		// Sanity Check
-		if (root == null) {
-			throw new IllegalArgumentException("null root");
-		} // if
-
-		// Set new root
-		this.root = root;
-
-		// TODO
-	} // setRoot()
-
-	/**
-	 * getRoot
-	 * @returns Object
-	 */
-	public Object getRoot() {
-		return root;
-	} // getRoot()
-
-	/**
-	 * getIndexOfChild
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 * @returns int
-	 */
-	public int getIndexOfChild(Object parent, Object child) {
-		return 0; // TODO
-	} // getIndexOfChild()
-
-	/**
-	 * getChild
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 * @returns Object
-	 */
-	public Object getChild(Object value0, int value1) {
-		return null; // TODO
-	} // getChild()
-
-	/**
-	 * getChildCount
-	 * @param value0 TODO
-	 * @returns int
-	 */
-	public int getChildCount(Object value0) {
-		return 0; // TODO
-	} // getChildCount()
-
-	/**
-	 * isLeaf
-	 * @param value0 TODO
-	 * @returns boolean
-	 */
-	public boolean isLeaf(Object value0) {
-		return false; // TODO
-	} // isLeaf()
-
-	/**
-	 * reload
-	 */
-	public void reload() {
-		// TODO
-	} // reload()
-
-	/**
-	 * reload
-	 * @param value0 TODO
-	 */
-	public void reload(TreeNode value0) {
-		// TODO
-	} // reload()
-
-	/**
-	 * valueForPathChanged
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 */
-	public void valueForPathChanged(TreePath value0, Object value1) {
-		// TODO
-	} // valueForPathChanged()
-
-	/**
-	 * insertNodeInto
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 * @param value2 TODO
-	 */
-	public void insertNodeInto(MutableTreeNode value0, MutableTreeNode value1, int value2) {
-		// TODO
-	} // insertNodeInto()
-
-	/**
-	 * removeNodeFromParent
-	 * @param value0 TODO
-	 */
-	public void removeNodeFromParent(MutableTreeNode value0) {
-		// TODO
-	} // removeNodeFromParent()
-
-	/**
-	 * nodeChanged
-	 * @param value0 TODO
-	 */
-	public void nodeChanged(TreeNode value0) {
-		// TODO
-	} // nodeChanged()
-
-	/**
-	 * nodesWereInserted
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 */
-	public void nodesWereInserted(TreeNode value0, int[] value1) {
-		// TODO
-	} // nodesWereInserted()
-
-	/**
-	 * nodesWereRemoved
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 * @param value2 TODO
-	 */
-	public void nodesWereRemoved(TreeNode value0, int[] value1, Object[] value2) {
-		// TODO
-	} // nodesWereRemoved()
-
-	/**
-	 * nodesChanged
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 */
-	public void nodesChanged(TreeNode value0, int[] value1) {
-		// TODO
-	} // nodesChanged()
-
-	/**
-	 * nodeStructureChanged
-	 * @param value0 TODO
-	 */
-	public void nodeStructureChanged(TreeNode value0) {
-		// TODO
-	} // nodeStructureChanged()
-
-	/**
-	 * getPathToRoot
-	 * @param value0 TODO
-	 * @returns TreeNode[]
-	 */
-	public TreeNode[] getPathToRoot(TreeNode value0) {
-		return null; // TODO
-	} // getPathToRoot()
-
-	/**
-	 * getPathToRoot
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 * @returns TreeNode[]
-	 */
-	protected TreeNode[] getPathToRoot(TreeNode value0, int value1) {
-		return null; // TODO
-	} // getPathToRoot()
+  /**
+   * root
+   */
+  protected TreeNode root = null;
+
+  /**
+   * listenerList
+   */
+  protected EventListenerList listenerList = new EventListenerList();
+
+  /**
+   * asksAllowsChildren
+   */
+  protected boolean asksAllowsChildren;
+
+  /**
+   * Constructor DefaultTreeModel
+   * @param value0 TODO
+   */
+  public DefaultTreeModel(TreeNode root)
+  {
+    setRoot(root);
+  }
+
+  /**
+   * Constructor DefaultTreeModel
+   * @param value0 TODO
+   * @param value1 TODO
+   */
+  public DefaultTreeModel(TreeNode root, boolean asksAllowsChildren)
+  {
+    setRoot(root);
+    this.asksAllowsChildren = asksAllowsChildren;
+  }
+
+  /**
+   * writeObject
+   * @param value0 TODO
+   * @exception IOException TODO
+   */
+  private void writeObject(ObjectOutputStream value0) throws IOException
+  {
+    // TODO
+  }
+
+  /**
+   * readObject
+   * @param value0 TODO
+   * @exception IOException TODO
+   * @exception ClassNotFoundException TODO
+   */
+  private void readObject(ObjectInputStream value0)
+    throws IOException, ClassNotFoundException
+  {
+    // TODO
+  }
+
+  /**
+   * asksAllowsChildren
+   * @return boolean
+   */
+  public boolean asksAllowsChildren()
+  {
+    return asksAllowsChildren;
+  }
+
+  /**
+   * setAsksAllowsChildren
+   * @param value0 TODO
+   */
+  public void setAsksAllowsChildren(boolean value)
+  {
+    asksAllowsChildren = value; // TODO
+  }
+
+  /**
+   * setRoot
+   * @param value0 TODO
+   */
+  public void setRoot(TreeNode root)
+  {
+    // Sanity Check
+    if (root == null)
+      {
+	throw new IllegalArgumentException("null root");
+      }
+    // Set new root
+    this.root = root;
+
+    // TODO
+  }
+
+  /**
+   * getRoot
+   * @return Object
+   */
+  public Object getRoot()
+  {
+    return root;
+  }
+
+  /**
+   * getIndexOfChild
+   * @param value0 TODO
+   * @param value1 TODO
+   * @return int
+   */
+  public int getIndexOfChild(Object parent, Object child)
+  {
+    return 0; // TODO
+  }
+
+  /**
+   * getChild
+   * @param value0 TODO
+   * @param value1 TODO
+   * @return Object
+   */
+  public Object getChild(Object value0, int value1)
+  {
+    return null; // TODO
+  }
+
+  /**
+   * getChildCount
+   * @param value0 TODO
+   * @return int
+   */
+  public int getChildCount(Object value0)
+  {
+    return 0; // TODO
+  }
+
+  /**
+   * isLeaf
+   * @param value0 TODO
+   * @return boolean
+   */
+  public boolean isLeaf(Object value0)
+  {
+    return false; // TODO
+  }
+
+  /**
+   * reload
+   */
+  public void reload()
+  {
+    // TODO
+  }
+
+  /**
+   * reload
+   * @param value0 TODO
+   */
+  public void reload(TreeNode value0)
+  {
+    // TODO
+  }
+
+  /**
+   * valueForPathChanged
+   * @param value0 TODO
+   * @param value1 TODO
+   */
+  public void valueForPathChanged(TreePath value0, Object value1)
+  {
+    // TODO
+  }
+
+  /**
+   * insertNodeInto
+   * @param value0 TODO
+   * @param value1 TODO
+   * @param value2 TODO
+   */
+  public void insertNodeInto(MutableTreeNode value0, MutableTreeNode value1,
+                             int value2)
+  {
+    // TODO
+  }
+
+  /**
+   * removeNodeFromParent
+   * @param value0 TODO
+   */
+  public void removeNodeFromParent(MutableTreeNode value0)
+  {
+    // TODO
+  }
+
+  /**
+   * nodeChanged
+   * @param value0 TODO
+   */
+  public void nodeChanged(TreeNode value0)
+  {
+    // TODO
+  }
+
+  /**
+   * nodesWereInserted
+   * @param value0 TODO
+   * @param value1 TODO
+   */
+  public void nodesWereInserted(TreeNode value0, int[] value1)
+  {
+    // TODO
+  }
+
+  /**
+   * nodesWereRemoved
+   * @param value0 TODO
+   * @param value1 TODO
+   * @param value2 TODO
+   */
+  public void nodesWereRemoved(TreeNode value0, int[] value1, Object[] value2)
+  {
+    // TODO
+  }
+
+  /**
+   * nodesChanged
+   * @param value0 TODO
+   * @param value1 TODO
+   */
+  public void nodesChanged(TreeNode value0, int[] value1)
+  {
+    // TODO
+  }
+
+  /**
+   * nodeStructureChanged
+   * @param value0 TODO
+   */
+  public void nodeStructureChanged(TreeNode value0)
+  {
+    // TODO
+  }
+
+  /**
+   * getPathToRoot
+   * @param value0 TODO
+   * @return TreeNode[]
+   */
+  public TreeNode[] getPathToRoot(TreeNode value0)
+  {
+    return null; // TODO
+  }
+
+  /**
+   * getPathToRoot
+   * @param value0 TODO
+   * @param value1 TODO
+   * @return TreeNode[]
+   */
+  protected TreeNode[] getPathToRoot(TreeNode value0, int value1)
+  {
+    return null; // TODO
+  }
 
   /**
    * Registers a listere to the model.
-   * 
+   *
    * @param listener the listener to add
    */
   public void addTreeModelListener(TreeModelListener listener)
@@ -318,7 +330,7 @@
 
   /**
    * Removes a listener from the model.
-   * 
+   *
    * @param listener the listener to remove
    */
   public void removeTreeModelListener(TreeModelListener listener)
@@ -340,15 +352,17 @@
 
   /**
    * fireTreeNodesChanged
-   * 
+   *
    * @param source the node being changed
    * @param path the path to the root node
    * @param childIndices the indices of the changed elements
    * @param children the changed elements
    */
-  protected void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children)
+  protected void fireTreeNodesChanged(Object source, Object[] path,
+                                      int[] childIndices, Object[] children)
   {
-    TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children);
+    TreeModelEvent event =
+      new TreeModelEvent(source, path, childIndices, children);
     TreeModelListener[] listeners = getTreeModelListeners();
 
     for (int i = listeners.length - 1; i >= 0; --i)
@@ -357,15 +371,17 @@
 
   /**
    * fireTreeNodesInserted
-   * 
+   *
    * @param source the node where new nodes got inserted
    * @param path the path to the root node
    * @param childIndices the indices of the new elements
    * @param children the new elements
    */
-  protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)
+  protected void fireTreeNodesInserted(Object source, Object[] path,
+                                       int[] childIndices, Object[] children)
   {
-    TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children);
+    TreeModelEvent event =
+      new TreeModelEvent(source, path, childIndices, children);
     TreeModelListener[] listeners = getTreeModelListeners();
 
     for (int i = listeners.length - 1; i >= 0; --i)
@@ -374,15 +390,17 @@
 
   /**
    * fireTreeNodesRemoved
-   * 
+   *
    * @param source the node where nodes got removed-
    * @param path the path to the root node
    * @param childIndices the indices of the removed elements
    * @param children the removed elements
    */
-  protected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)
+  protected void fireTreeNodesRemoved(Object source, Object[] path,
+                                      int[] childIndices, Object[] children)
   {
-    TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children);
+    TreeModelEvent event =
+      new TreeModelEvent(source, path, childIndices, children);
     TreeModelListener[] listeners = getTreeModelListeners();
 
     for (int i = listeners.length - 1; i >= 0; --i)
@@ -391,15 +409,17 @@
 
   /**
    * fireTreeStructureChanged
-   * 
+   *
    * @param source the node where the model has changed
    * @param path the path to the root node
    * @param childIndices the indices of the affected elements
    * @param children the affected elements
    */
-  protected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)
+  protected void fireTreeStructureChanged(Object source, Object[] path,
+                                          int[] childIndices, Object[] children)
   {
-    TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children);
+    TreeModelEvent event =
+      new TreeModelEvent(source, path, childIndices, children);
     TreeModelListener[] listeners = getTreeModelListeners();
 
     for (int i = listeners.length - 1; i >= 0; --i)
@@ -408,9 +428,9 @@
 
   /**
    * Returns the registered listeners of a given type.
-   * 
+   *
    * @param listenerType the listener type to return
-   * 
+   *
    * @return an array of listeners
    *
    * @since 1.3
@@ -419,6 +439,4 @@
   {
     return listenerList.getListeners(listenerType);
   }
-
-
-} // DefaultTreeModel
+}
Index: javax/swing/tree/DefaultTreeSelectionModel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/tree/DefaultTreeSelectionModel.java,v
retrieving revision 1.3.18.2
diff -u -r1.3.18.2 DefaultTreeSelectionModel.java
--- javax/swing/tree/DefaultTreeSelectionModel.java	24 Oct 2004 09:00:50 -0000	1.3.18.2
+++ javax/swing/tree/DefaultTreeSelectionModel.java	24 Oct 2004 09:20:24 -0000
@@ -35,7 +35,6 @@
 obligated to do so.  If you do not wish to do so, delete this
 exception statement from your version. */
 
-
 package javax.swing.tree;
 
 import java.beans.PropertyChangeListener;
@@ -45,13 +44,13 @@
 import java.io.Serializable;
 import java.util.EventListener;
 import java.util.Vector;
-
 import javax.swing.DefaultListSelectionModel;
 import javax.swing.event.EventListenerList;
 import javax.swing.event.SwingPropertyChangeSupport;
 import javax.swing.event.TreeSelectionEvent;
 import javax.swing.event.TreeSelectionListener;
 
+
 /**
  * DefaultTreeSelectionModel
  * @author Andrew Selkirk
@@ -61,244 +60,252 @@
 {
   static final long serialVersionUID = 3288129636638950196L;
 
-	//-------------------------------------------------------------
-	// Variables --------------------------------------------------
-	//-------------------------------------------------------------
-
-	/**
-	 * SELECTION_MODE_PROPERTY
-	 */
-	public static final String SELECTION_MODE_PROPERTY = "selectionMode";
-
-	/**
-	 * changeSupport
-	 */
-	protected SwingPropertyChangeSupport changeSupport;
-
-	/**
-	 * selection
-	 */
-	protected TreePath[] selection;
-
-	/**
-	 * listenerList
-	 */
-	protected EventListenerList listenerList;
-
-	/**
-	 * rowMapper
-	 */
-	protected transient RowMapper rowMapper;
-
-	/**
-	 * listSelectionModel
-	 */
-	protected DefaultListSelectionModel listSelectionModel;
-
-	/**
-	 * selectionMode
-	 */
-	protected int selectionMode;
-
-	/**
-	 * leadPath
-	 */
-	protected TreePath leadPath;
-
-	/**
-	 * leadIndex
-	 */
-	protected int leadIndex;
-
-	/**
-	 * leadRow
-	 */
-	protected int leadRow;
-
-
-	//-------------------------------------------------------------
-	// Initialization ---------------------------------------------
-	//-------------------------------------------------------------
-
-	/**
-	 * Constructor DefaultTreeSelectionModel
-	 */
-	public DefaultTreeSelectionModel() {
-		// TODO
-	} // DefaultTreeSelectionModel()
-
-
-	//-------------------------------------------------------------
-	// Methods ----------------------------------------------------
-	//-------------------------------------------------------------
-
-	/**
-	 * clone
-	 * @exception CloneNotSupportedException TODO
-	 * @returns Object
-	 */
-	public Object clone() throws CloneNotSupportedException {
-		return null; // TODO
-	} // clone()
-
-	/**
-	 * toString
-	 * @returns String
-	 */
-	public String toString() {
-		return null; // TODO
-	} // toString()
-
-	/**
-	 * writeObject
-	 * @param value0 TODO
-	 * @exception IOException TODO
-	 */
-	private void writeObject(ObjectOutputStream value0) throws IOException {
-		// TODO
-	} // writeObject()
-
-	/**
-	 * readObject
-	 * @param value0 TODO
-	 * @exception IOException TODO
-	 * @exception ClassNotFoundException TODO
-	 */
-	private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException {
-		// TODO
-	} // readObject()
-
-	/**
-	 * setRowMapper
-	 * @param value0 TODO
-	 */
-	public void setRowMapper(RowMapper value0) {
-		// TODO
-	} // setRowMapper()
-
-	/**
-	 * getRowMapper
-	 * @returns RowMapper
-	 */
-	public RowMapper getRowMapper() {
-		return null; // TODO
-	} // getRowMapper()
-
-	/**
-	 * setSelectionMode
-	 * @param value0 TODO
-	 */
-	public void setSelectionMode(int value0) {
-		// TODO
-	} // setSelectionMode()
-
-	/**
-	 * getSelectionMode
-	 * @returns int
-	 */
-	public int getSelectionMode() {
-		return 0; // TODO
-	} // getSelectionMode()
-
-	/**
-	 * setSelectionPath
-	 * @param value0 TODO
-	 */
-	public void setSelectionPath(TreePath value0) {
-		// TODO
-	} // setSelectionPath()
-
-	/**
-	 * setSelectionPaths
-	 * @param value0 TODO
-	 */
-	public void setSelectionPaths(TreePath[] value0) {
-		// TODO
-	} // setSelectionPaths()
-
-	/**
-	 * addSelectionPath
-	 * @param value0 TODO
-	 */
-	public void addSelectionPath(TreePath value0) {
-		// TODO
-	} // addSelectionPath()
-
-	/**
-	 * addSelectionPaths
-	 * @param value0 TODO
-	 */
-	public void addSelectionPaths(TreePath[] value0) {
-		// TODO
-	} // addSelectionPaths()
-
-	/**
-	 * removeSelectionPath
-	 * @param value0 TODO
-	 */
-	public void removeSelectionPath(TreePath value0) {
-		// TODO
-	} // removeSelectionPath()
-
-	/**
-	 * removeSelectionPaths
-	 * @param value0 TODO
-	 */
-	public void removeSelectionPaths(TreePath[] value0) {
-		// TODO
-	} // removeSelectionPaths()
-
-	/**
-	 * getSelectionPath
-	 * @returns TreePath
-	 */
-	public TreePath getSelectionPath() {
-		return null; // TODO
-	} // getSelectionPath()
-
-	/**
-	 * getSelectionPaths
-	 * @returns TreePath[]
-	 */
-	public TreePath[] getSelectionPaths() {
-		return null; // TODO
-	} // getSelectionPaths()
-
-	/**
-	 * getSelectionCount
-	 * @returns int
-	 */
-	public int getSelectionCount() {
-		return 0; // TODO
-	} // getSelectionCount()
-
-	/**
-	 * isPathSelected
-	 * @param value0 TODO
-	 * @returns boolean
-	 */
-	public boolean isPathSelected(TreePath value0) {
-		return false; // TODO
-	} // isPathSelected()
-
-	/**
-	 * isSelectionEmpty
-	 * @returns boolean
-	 */
-	public boolean isSelectionEmpty() {
-		return false; // TODO
-	} // isSelectionEmpty()
-
-	/**
-	 * clearSelection
-	 */
-	public void clearSelection() {
-		// TODO
-	} // clearSelection()
+  /**
+   * SELECTION_MODE_PROPERTY
+   */
+  public static final String SELECTION_MODE_PROPERTY = "selectionMode";
+
+  /**
+   * changeSupport
+   */
+  protected SwingPropertyChangeSupport changeSupport;
+
+  /**
+   * selection
+   */
+  protected TreePath[] selection;
+
+  /**
+   * listenerList
+   */
+  protected EventListenerList listenerList;
+
+  /**
+   * rowMapper
+   */
+  protected transient RowMapper rowMapper;
+
+  /**
+   * listSelectionModel
+   */
+  protected DefaultListSelectionModel listSelectionModel;
+
+  /**
+   * selectionMode
+   */
+  protected int selectionMode;
+
+  /**
+   * leadPath
+   */
+  protected TreePath leadPath;
+
+  /**
+   * leadIndex
+   */
+  protected int leadIndex;
+
+  /**
+   * leadRow
+   */
+  protected int leadRow;
+
+  /**
+   * Constructor DefaultTreeSelectionModel
+   */
+  public DefaultTreeSelectionModel()
+  {
+    // TODO
+  }
+
+  /**
+   * clone
+   * @exception CloneNotSupportedException TODO
+   * @return Object
+   */
+  public Object clone() throws CloneNotSupportedException
+  {
+    return null; // TODO
+  }
+
+  /**
+   * toString
+   * @return String
+   */
+  public String toString()
+  {
+    return null; // TODO
+  }
+
+  /**
+   * writeObject
+   * @param value0 TODO
+   * @exception IOException TODO
+   */
+  private void writeObject(ObjectOutputStream value0) throws IOException
+  {
+    // TODO
+  }
+
+  /**
+   * readObject
+   * @param value0 TODO
+   * @exception IOException TODO
+   * @exception ClassNotFoundException TODO
+   */
+  private void readObject(ObjectInputStream value0)
+    throws IOException, ClassNotFoundException
+  {
+    // TODO
+  }
+
+  /**
+   * setRowMapper
+   * @param value0 TODO
+   */
+  public void setRowMapper(RowMapper value0)
+  {
+    // TODO
+  }
+
+  /**
+   * getRowMapper
+   * @return RowMapper
+   */
+  public RowMapper getRowMapper()
+  {
+    return null; // TODO
+  }
+
+  /**
+   * setSelectionMode
+   * @param value0 TODO
+   */
+  public void setSelectionMode(int value0)
+  {
+    // TODO
+  }
+
+  /**
+   * getSelectionMode
+   * @return int
+   */
+  public int getSelectionMode()
+  {
+    return 0; // TODO
+  }
+
+  /**
+   * setSelectionPath
+   * @param value0 TODO
+   */
+  public void setSelectionPath(TreePath value0)
+  {
+    // TODO
+  }
+
+  /**
+   * setSelectionPaths
+   * @param value0 TODO
+   */
+  public void setSelectionPaths(TreePath[] value0)
+  {
+    // TODO
+  }
+
+  /**
+   * addSelectionPath
+   * @param value0 TODO
+   */
+  public void addSelectionPath(TreePath value0)
+  {
+    // TODO
+  }
+
+  /**
+   * addSelectionPaths
+   * @param value0 TODO
+   */
+  public void addSelectionPaths(TreePath[] value0)
+  {
+    // TODO
+  }
+
+  /**
+   * removeSelectionPath
+   * @param value0 TODO
+   */
+  public void removeSelectionPath(TreePath value0)
+  {
+    // TODO
+  }
+
+  /**
+   * removeSelectionPaths
+   * @param value0 TODO
+   */
+  public void removeSelectionPaths(TreePath[] value0)
+  {
+    // TODO
+  }
+
+  /**
+   * getSelectionPath
+   * @return TreePath
+   */
+  public TreePath getSelectionPath()
+  {
+    return null; // TODO
+  }
+
+  /**
+   * getSelectionPaths
+   * @return TreePath[]
+   */
+  public TreePath[] getSelectionPaths()
+  {
+    return null; // TODO
+  }
+
+  /**
+   * getSelectionCount
+   * @return int
+   */
+  public int getSelectionCount()
+  {
+    return 0; // TODO
+  }
+
+  /**
+   * isPathSelected
+   * @param value0 TODO
+   * @return boolean
+   */
+  public boolean isPathSelected(TreePath value0)
+  {
+    return false; // TODO
+  }
+
+  /**
+   * isSelectionEmpty
+   * @return boolean
+   */
+  public boolean isSelectionEmpty()
+  {
+    return false; // TODO
+  }
+
+  /**
+   * clearSelection
+   */
+  public void clearSelection()
+  {
+    // TODO
+  }
 
   /**
    * Adds a <code>TreeSelectionListener</code> object to this model.
-   * 
+   *
    * @param listener the listener to add
    */
   public void addTreeSelectionListener(TreeSelectionListener listener)
@@ -308,7 +315,7 @@
 
   /**
    * Removes a <code>TreeSelectionListener</code> object from this model.
-   * 
+   *
    * @param listener the listener to remove
    */
   public void removeTreeSelectionListener(TreeSelectionListener listener)
@@ -318,20 +325,19 @@
 
   /**
    * Returns all <code>TreeSelectionListener</code> added to this model.
-   * 
+   *
    * @return an array of listeners
    *
    * @since 1.4
    */
   public TreeSelectionListener[] getTreeSelectionListeners()
   {
-    return (TreeSelectionListener[])
-	      listenerList.getListeners(TreeSelectionListener.class);
+    return (TreeSelectionListener[]) listenerList.getListeners(TreeSelectionListener.class);
   }
 
   /**
    * fireValueChanged
-   * 
+   *
    * @param event the event to fire.
    */
   protected void fireValueChanged(TreeSelectionEvent event)
@@ -344,9 +350,9 @@
 
   /**
    * Returns all added listeners of a special type.
-   * 
+   *
    * @param listenerType the listener type
-   * 
+   *
    * @return an array of listeners
    *
    * @since 1.3
@@ -356,65 +362,72 @@
     return listenerList.getListeners(listenerType);
   }
 
-	/**
-	 * getSelectionRows
-	 * @returns int[]
-	 */
-	public int[] getSelectionRows() {
-		return null; // TODO
-	} // getSelectionRows()
-
-	/**
-	 * getMinSelectionRow
-	 * @returns int
-	 */
-	public int getMinSelectionRow() {
-		return 0; // TODO
-	} // getMinSelectionRow()
-
-	/**
-	 * getMaxSelectionRow
-	 * @returns int
-	 */
-	public int getMaxSelectionRow() {
-		return 0; // TODO
-	} // getMaxSelectionRow()
-
-	/**
-	 * isRowSelected
-	 * @param value0 TODO
-	 * @returns boolean
-	 */
-	public boolean isRowSelected(int value0) {
-		return false; // TODO
-	} // isRowSelected()
-
-	/**
-	 * resetRowSelection
-	 */
-	public void resetRowSelection() {
-		// TODO
-	} // resetRowSelection()
-
-	/**
-	 * getLeadSelectionRow
-	 * @returns int
-	 */
-	public int getLeadSelectionRow() {
-		return 0; // TODO
-	} // getLeadSelectionRow()
-
-	/**
-	 * getLeadSelectionPath
-	 * @returns TreePath
-	 */
-	public TreePath getLeadSelectionPath() {
-		return null; // TODO
-	} // getLeadSelectionPath()
+  /**
+   * getSelectionRows
+   * @return int[]
+   */
+  public int[] getSelectionRows()
+  {
+    return null; // TODO
+  }
+
+  /**
+   * getMinSelectionRow
+   * @return int
+   */
+  public int getMinSelectionRow()
+  {
+    return 0; // TODO
+  }
+
+  /**
+   * getMaxSelectionRow
+   * @return int
+   */
+  public int getMaxSelectionRow()
+  {
+    return 0; // TODO
+  }
+
+  /**
+   * isRowSelected
+   * @param value0 TODO
+   * @return boolean
+   */
+  public boolean isRowSelected(int value0)
+  {
+    return false; // TODO
+  }
+
+  /**
+   * resetRowSelection
+   */
+  public void resetRowSelection()
+  {
+    // TODO
+  }
+
+  /**
+   * getLeadSelectionRow
+   * @return int
+   */
+  public int getLeadSelectionRow()
+  {
+    return 0; // TODO
+  }
+
+  /**
+   * getLeadSelectionPath
+   * @return TreePath
+   */
+  public TreePath getLeadSelectionPath()
+  {
+    return null; // TODO
+  }
 
   /**
    * Adds a <code>PropertyChangeListener</code> object to this model.
-   * 
+   *
    * @param listener the listener to add.
    */
   public void addPropertyChangeListener(PropertyChangeListener listener)
@@ -424,7 +437,7 @@
 
   /**
    * Removes a <code>PropertyChangeListener</code> object from this model.
-   * 
+   *
    * @param listener the listener to remove.
    */
   public void removePropertyChangeListener(PropertyChangeListener listener)
@@ -436,7 +449,7 @@
    * Returns all added <code>PropertyChangeListener</code> objects.
    *
    * @return an array of listeners.
-   * 
+   *
    * @since 1.4
    */
   public PropertyChangeListener[] getPropertyChangeListeners()
@@ -444,62 +457,67 @@
     return changeSupport.getPropertyChangeListeners();
   }
 
-	/**
-	 * insureRowContinuity
-	 */
-	protected void insureRowContinuity() {
-		// TODO
-	} // insureRowContinuity()
-
-	/**
-	 * arePathsContiguous
-	 * @param value0 TODO
-	 * @returns boolean
-	 */
-	protected boolean arePathsContiguous(TreePath[] value0) {
-		return false; // TODO
-	} // arePathsContiguous()
-
-	/**
-	 * canPathsBeAdded
-	 * @param value0 TODO
-	 * @returns boolean
-	 */
-	protected boolean canPathsBeAdded(TreePath[] value0) {
-		return false; // TODO
-	} // canPathsBeAdded()
-
-	/**
-	 * canPathsBeRemoved
-	 * @param value0 TODO
-	 * @returns boolean
-	 */
-	protected boolean canPathsBeRemoved(TreePath[] value0) {
-		return false; // TODO
-	} // canPathsBeRemoved()
-
-	/**
-	 * notifyPathChange
-	 * @param value0 TODO
-	 * @param value1 TODO
-	 */
-	protected void notifyPathChange(Vector value0, TreePath value1) {
-		// TODO
-	} // notifyPathChange()
-
-	/**
-	 * updateLeadIndex
-	 */
-	protected void updateLeadIndex() {
-		// TODO
-	} // updateLeadIndex()
-
-	/**
-	 * insureUniqueness
-	 */
-	protected void insureUniqueness() {
-		// TODO
-	} // insureUniqueness()
+  /**
+   * insureRowContinuity
+   */
+  protected void insureRowContinuity()
+  {
+    // TODO
+  }
 
+  /**
+   * arePathsContiguous
+   * @param value0 TODO
+   * @return boolean
+   */
+  protected boolean arePathsContiguous(TreePath[] value0)
+  {
+    return false; // TODO
+  }
+
+  /**
+   * canPathsBeAdded
+   * @param value0 TODO
+   * @return boolean
+   */
+  protected boolean canPathsBeAdded(TreePath[] value0)
+  {
+    return false; // TODO
+  }
+
+  /**
+   * canPathsBeRemoved
+   * @param value0 TODO
+   * @return boolean
+   */
+  protected boolean canPathsBeRemoved(TreePath[] value0)
+  {
+    return false; // TODO
+  }
+
+  /**
+   * notifyPathChange
+   * @param value0 TODO
+   * @param value1 TODO
+   */
+  protected void notifyPathChange(Vector value0, TreePath value1)
+  {
+    // TODO
+  }
 
-} // DefaultTreeSelectionModel
+  /**
+   * updateLeadIndex
+   */
+  protected void updateLeadIndex()
+  {
+    // TODO
+  }
+
+  /**
+   * insureUniqueness
+   */
+  protected void insureUniqueness()
+  {
+    // TODO
+  }
+}


More information about the Java-patches mailing list