/[classpath]/classpath/javax/swing/JList.java
ViewVC logotype

Diff of /classpath/javax/swing/JList.java

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

revision 1.16 by mark, Thu Jul 22 19:45:39 2004 UTC revision 1.17 by mark, Sun Sep 5 11:31:06 2004 UTC
# Line 588  public class JList extends JComponent im Line 588  public class JList extends JComponent im
588      return getUI().locationToIndex(this, r.getLocation());            return getUI().locationToIndex(this, r.getLocation());      
589    }    }
590    
591    
592      /**
593       * Returns index of the cell to which specified location is closest to
594       * @param location for which to look for in the list
595       *
596       * @return index of the cell to which specified location is closest to.
597       */
598       public int locationToIndex(Point location) {
599         return getUI().locationToIndex(this, location);      
600       }
601    
602      /**
603       * Returns location of the cell located at the specified index in the list.
604       * @param index of the cell for which location will be determined
605       *
606       * @return location of the cell located at the specified index in the list.
607       */
608       public Point indexToLocation(int index){
609            //FIXME: Need to implement.
610            return null;
611       }
612    
613    /**    /**
614     * Returns the list index of the lower right or lower left corner of the     * Returns the list index of the lower right or lower left corner of the
615     * {@link #visibleRect} property, depending on the {@link     * {@link #visibleRect} property, depending on the {@link

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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