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

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

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

revision 1.7 by rabbit78, Wed Jul 13 21:22:44 2005 UTC revision 1.8 by rabbit78, Tue Sep 13 09:17:21 2005 UTC
# Line 46  import javax.swing.event.ListSelectionLi Line 46  import javax.swing.event.ListSelectionLi
46   */   */
47  public interface ListSelectionModel  public interface ListSelectionModel
48  {  {
49    
50    int SINGLE_SELECTION = 0;    int SINGLE_SELECTION = 0;
51    
52    int SINGLE_INTERVAL_SELECTION = 1;    int SINGLE_INTERVAL_SELECTION = 1;
53    
54    int MULTIPLE_INTERVAL_SELECTION = 2;    int MULTIPLE_INTERVAL_SELECTION = 2;
55    
56    void setSelectionMode(int a);    void setSelectionMode(int a);
57    
58    int getSelectionMode();    int getSelectionMode();
59      
60    void clearSelection();    void clearSelection();
61        
62    int getMinSelectionIndex();    int getMinSelectionIndex();
63    
64    int getMaxSelectionIndex();    int getMaxSelectionIndex();
65    
66    boolean isSelectedIndex(int a);    boolean isSelectedIndex(int a);
67    
68    boolean isSelectionEmpty();    boolean isSelectionEmpty();
69    
70    void setSelectionInterval(int index0, int index1);    void setSelectionInterval(int index0, int index1);
71    void addSelectionInterval(int index0,  
72                              int index1);    void addSelectionInterval(int index0, int index1);
73    void removeSelectionInterval(int index0,  
74                                 int index1);    void removeSelectionInterval(int index0, int index1);
75    void insertIndexInterval(int index,  
76                             int length,    void insertIndexInterval(int index, int length, boolean before);
77                             boolean before);  
78    void removeIndexInterval(int index0,    void removeIndexInterval(int index0, int index1);
                            int index1);  
79    
80    int getAnchorSelectionIndex();    int getAnchorSelectionIndex();
81    
82    void setAnchorSelectionIndex(int index);    void setAnchorSelectionIndex(int index);
83    
84    int getLeadSelectionIndex();    int getLeadSelectionIndex();
85    
86    void setLeadSelectionIndex(int index);    void setLeadSelectionIndex(int index);
87    
88    void setValueIsAdjusting(boolean valueIsAdjusting);    void setValueIsAdjusting(boolean valueIsAdjusting);
89    
90    boolean getValueIsAdjusting();    boolean getValueIsAdjusting();
91    
92    void addListSelectionListener(ListSelectionListener listener);    void addListSelectionListener(ListSelectionListener listener);
93    void removeListSelectionListener(ListSelectionListener listener);      
94      void removeListSelectionListener(ListSelectionListener listener);
95    
96  }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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