Searched refs:selectionModel (Results 1 - 9 of 9) sorted by relevance

/openjdk7/jdk/test/javax/swing/JTable/7027139/
H A Dbug7027139.java46 ListSelectionModel selectionModel = orderTable.getSelectionModel();
47 selectionModel.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
48 selectionModel.addListSelectionListener(new ListSelectionListener() {
/openjdk7/jdk/src/share/classes/javax/swing/table/
H A DDefaultTableColumnModel.java66 protected ListSelectionModel selectionModel; field in class:DefaultTableColumnModel
146 if (selectionModel != null) {
147 selectionModel.removeIndexInterval(columnIndex,columnIndex);
196 boolean selected = selectionModel.isSelectedIndex(columnIndex);
197 selectionModel.removeIndexInterval(columnIndex,columnIndex);
200 selectionModel.insertIndexInterval(newIndex, 1, true);
202 selectionModel.addSelectionInterval(newIndex, newIndex);
205 selectionModel.removeSelectionInterval(newIndex, newIndex);
376 ListSelectionModel oldModel = selectionModel;
383 selectionModel
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DJMenuBar.java96 private transient SingleSelectionModel selectionModel; field in class:JMenuBar
168 return selectionModel;
181 SingleSelectionModel oldValue = selectionModel;
182 this.selectionModel = model;
183 firePropertyChange("selectionModel", oldValue, selectionModel);
297 return selectionModel.isSelected();
737 if (selectionModel instanceof Serializable) {
738 kvData[n++] = "selectionModel";
739 kvData[n++] = selectionModel;
[all...]
H A DJColorChooser.java94 private ColorSelectionModel selectionModel; field in class:JColorChooser
105 public static final String SELECTION_MODEL_PROPERTY = "selectionModel";
213 selectionModel = model;
272 return selectionModel.getSelectedColor();
287 selectionModel.setSelectedColor(color);
495 return selectionModel;
510 ColorSelectionModel oldModel = selectionModel;
511 selectionModel = newModel;
H A DJTree.java161 transient protected TreeSelectionModel selectionModel; field in class:JTree
474 /** Bound property name for selectionModel. */
475 public final static String SELECTION_MODEL_PROPERTY = "selectionModel";
662 selectionModel = new DefaultTreeSelectionModel();
1866 return selectionModel.getSelectionCount();
2418 * <code>selectionModel</code> is used, which does not allow selections.
2422 * @param selectionModel the <code>TreeSelectionModel</code> to use,
2429 public void setSelectionModel(TreeSelectionModel selectionModel) { argument
2430 if(selectionModel == null)
2431 selectionModel
[all...]
H A DJTable.java287 protected ListSelectionModel selectionModel; field in class:JTable
2086 selModel = selectionModel;
2116 selectionModel.clearSelection();
2121 selectionModel.setValueIsAdjusting(true);
2126 selectionModel.setAnchorSelectionIndex(-1);
2127 selectionModel.setLeadSelectionIndex(-1);
2131 selectionModel.setValueIsAdjusting(false);
2165 selectionModel.setSelectionInterval(boundRow(index0), boundRow(index1));
2192 selectionModel.addSelectionInterval(boundRow(index0), boundRow(index1));
2219 selectionModel
[all...]
H A DJList.java323 private ListSelectionModel selectionModel; field in class:JList
432 selectionModel = createSelectionModel();
1761 return selectionModel;
1805 * the selectionModel to the JList ListSelectionListeners. The
1807 * source is the JList instead of the selectionModel itself.
1869 * Sets the <code>selectionModel</code> for the list to a
1877 * @param selectionModel the <code>ListSelectionModel</code> that
1879 * @exception IllegalArgumentException if <code>selectionModel</code>
1886 public void setSelectionModel(ListSelectionModel selectionModel) { argument
1887 if (selectionModel
[all...]
H A DJPopupMenu.java127 private SingleSelectionModel selectionModel; field in class:JPopupMenu
263 * @return the <code>selectionModel</code> property
267 return selectionModel;
280 selectionModel = model;
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicListUI.java689 * selectionModel. This method is called at installUI() time.
723 ListSelectionModel selectionModel = list.getSelectionModel();
724 if (selectionModel != null) {
725 selectionModel.addListSelectionListener(listSelectionListener);
732 * selectionModel. All of the listener fields, are reset to
752 ListSelectionModel selectionModel = list.getSelectionModel();
753 if (selectionModel != null) {
754 selectionModel.removeListSelectionListener(listSelectionListener);
1587 * model at installUI time, and whenever the JList.selectionModel property
1614 * the JLists by selectionModel a
[all...]

Completed in 647 milliseconds