Lines Matching defs:selection

159  * selection is always in terms of <code>JTable</code> so that when
166 * int[] selection = table.getSelectedRows();
167 * for (int i = 0; i &lt; selection.length; i++) {
168 * selection[i] = table.convertRowIndexToModel(selection[i]);
170 * // selection is now in terms of the underlying TableModel
174 * selection and variable row heights in terms of the model on
177 * underlying model will be selected. Visually the selection may
181 * was filtered out the selection will be empty after the sort.
323 /** True if row selection is allowed in this table. */
334 * If true, both a row selection and a column selection
387 * The last value of getValueIsAdjusting from the column selection models
393 * The last value of getValueIsAdjusting from the row selection models
409 * If true, on a sort the selection is reset.
553 * data model, a default column model, and a default selection
567 * and a default selection model.
580 * as the column model, and a default selection model.
593 * column model, and <code>sm</code> as the selection model.
603 * @param sm the row selection model for the table
1411 * an item (in single selection mode) or a selection (in other selection
1458 * affecting the actual selection in the table.
1699 * In some cases, the component may need to use it's internal selection
1702 * This state object can be used to store, and later restore, the selection
1709 * to save some state (because it is about to use the selection to show
1711 * any saved selection state. On a second call, let's say the drop location
1861 * Specifies whether the selection should be updated after sorting.
1862 * If true, on sorting the selection is reset such that
1866 * @param update whether or not to update the selection on sorting
1870 * description: Whether or not to update the selection on sorting
1881 * Returns true if the selection should be updated after sorting.
1883 * @return whether to update the selection on a sort
1894 * This method clears the selection and resets any variable row heights.
1943 * Sets the table's selection mode to allow only single selections, a single
1948 * column and row selection. When setting states,
1950 * updates the mode for the row selection model but also sets similar
1951 * values in the selection model of the <code>columnModel</code>.
1952 * If you want to have the row and column selection models operating
1955 * Both the row and column selection models for <code>JTable</code>
1963 * description: The selection mode used by the row and column selection models.
1977 * @param rowSelectionAllowed true if this model will allow row selection
2006 * @param columnSelectionAllowed true if this model will allow column selection
2033 * Sets whether this table allows both a column selection and a
2034 * row selection to exist simultaneously. When set,
2035 * the table treats the intersection of the row and column selection
2043 * selection is allowed
2061 * Returns true if both row and column selection models are enabled.
2065 * @return true if both row and column selection models are enabled
2184 * the current selection.
2197 * inclusive, to the current selection.
2394 * Updates the selection models of the table, depending on the state of the
2396 * to the selection that are the result of keyboard or mouse events received
2400 * selection, and may not call into this method for some selection changes.
2405 * Clear the previous selection and ensure the new cell is selected.
2407 * Extend the previous selection from the anchor to the specified cell,
2412 * Apply the selection state of the anchor to all cells between it and the
2415 * @param rowIndex affects the selection at <code>row</code>
2416 * @param columnIndex affects the selection at <code>column</code>
2418 * @param extend if true, extend the current selection
2445 // Check the selection here rather than in each selection model.
2446 // This is significant in cell selection mode if we are supposed
2447 // to be toggling the selection. In this case it is better to
2448 // ensure that the cell's selection state will indeed be changed.
2449 // If this were done in the code for the selection model it
2450 // might leave a cell in selection state if the row was
2460 // Scroll after changing the selection as blit scrolling is immediate,
3754 * Sets the row selection model for this table to <code>newModel</code>
3755 * and registers for listener notifications from the new selection model.
3757 * @param newModel the new selection model
3762 * description: The selection model for rows.
3786 * selection state.
3788 * @return the object that provides row selection state, <code>null</code>
3789 * if row selection is not allowed
3825 * SortManager provides support for managing the selection and variable
3836 // Set to true while in the process of changing the selection.
3837 // If this is true the selection change is ignored.
3839 // Temporary cache of selection, in terms of model. This is only used
3882 * Invoked when the selection, on the view, has changed.
3903 * Updates the internal cache of the selection based on the change.
3909 // is enabled we need to cache the selection in terms of the
3911 // the selection even if rows are filtered out.
3934 // Sorting changed, haven't cached selection in terms
3935 // of model and no filtering. Temporarily cache selection.
3939 // All the rows have changed, chuck any cached selection.
3942 // Table changed, reflect changes in cached selection model.
3972 * reapply the selection and variable row heights.
4017 * Restores the selection from that in terms of the model.
4190 * Restores the selection after a model event/sort order changes.
4193 private void restoreSortingSelection(int[] selection, int lead,
4195 // Convert the selection from model to view
4196 for (int i = selection.length - 1; i >= 0; i--) {
4197 selection[i] = convertRowIndexToView(selection[i], change);
4201 // Check for the common case of no change in selection for 1 row
4202 if (selection.length == 0 ||
4203 (selection.length == 1 && selection[0] == getSelectedRow())) {
4207 // And apply the new selection
4210 for (int i = selection.length - 1; i >= 0; i--) {
4211 if (selection[i] != -1) {
4212 selectionModel.addSelectionInterval(selection[i],
4213 selection[i]);
4323 * Converts the selection to model coordinates. This is used when
4327 int[] selection = getSelectedRows();
4328 for (int i = selection.length - 1; i >= 0; i--) {
4329 selection[i] = convertRowIndexToModel(e, selection[i]);
4331 return selection;
4364 * Note that as of 1.3, this method clears the selection, if any.
4468 // Adjust the selection to account for the new rows.
4507 // Adjust the selection to account for the new rows
4608 * Invoked when the selection model of the <code>TableColumnModel</code>
4669 * Invoked when the row selection changes -- repaints to show the new
4670 * selection.
5577 * Returns the default selection model object, which is
5579 * method to return a different selection model object.
5581 * @return the default selection model object
5689 * value and selection state
5695 * renderer without indicating selection or focus, to prevent
5719 // Only indicate the selection and focused cell if not printing
5769 * selection state of the cell at <code>row</code>, <code>column</code>.
6158 * during printing such that selection and focus are not indicated.
6408 * <code>JTable</code> itself will take care of hiding the selection
6609 * Track changes to selection model, column model, etc. so as to
6632 if (source == JTable.this) { // row selection model
6659 // and column's selection property listener as well
6890 * Track that the selection model of the TableColumnModel changed.
7066 // just one or more rows in selection
7070 // just one or more rows in selection
7083 * isn't a selection, or there are fewer children selected
7130 // in which the ith selection exists. Then we return
7227 * object to the object's selection. If the object supports
7229 * any existing selection, otherwise
7230 * it replaces any existing selection in the object. If the
7234 * individual cell selection enabled.
7248 * selection. If the specified item isn't currently selected, this
7252 * individual cell selection enabled.
7267 * Clears the selection in the object, so that no children in the
7277 * and if individual cell selection is enabled.