Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.javatools.ui.table
Class RowHeaderSelectionModel

java.lang.Object
  extended by javax.swing.DefaultListSelectionModel
      extended by oracle.javatools.ui.table.RowHeaderSelectionModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.ListSelectionModel

public class RowHeaderSelectionModel
extends javax.swing.DefaultListSelectionModel

A selection model for the RowHeader component to adapt to the table selection

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled, listenerList
 
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
 
Constructor Summary
RowHeaderSelectionModel()
          Create a RowHeaderSelectionModel.
RowHeaderSelectionModel(javax.swing.JTable table)
          Create a RowHeaderSelectionModel for the specified table.
 
Method Summary
 void addSelectionInterval(int index0, int index1)
           
 void clearSelection()
           
 int getSelectionMode()
           
 void moveLeadSelectionIndex(int leadIndex)
           
 void removeSelectionInterval(int index0, int index1)
           
 void setAnchorSelectionIndex(int anchorIndex)
           
 void setLeadSelectionIndex(int leadIndex)
           
 void setSelectionInterval(int index0, int index1)
           
 void setTable(javax.swing.JTable table)
          Sets the table this RowSelectionModel is working for.
 
Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, removeIndexInterval, removeListSelectionListener, setLeadAnchorNotificationEnabled, setSelectionMode, setValueIsAdjusting, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RowHeaderSelectionModel

public RowHeaderSelectionModel()
Create a RowHeaderSelectionModel. Clients should call setTable before this selection model can work.


RowHeaderSelectionModel

public RowHeaderSelectionModel(javax.swing.JTable table)
Create a RowHeaderSelectionModel for the specified table.

Method Detail

setTable

public void setTable(javax.swing.JTable table)
Sets the table this RowSelectionModel is working for. table cannot be null.


setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)
Specified by:
setSelectionInterval in interface javax.swing.ListSelectionModel
Overrides:
setSelectionInterval in class javax.swing.DefaultListSelectionModel

addSelectionInterval

public void addSelectionInterval(int index0,
                                 int index1)
Specified by:
addSelectionInterval in interface javax.swing.ListSelectionModel
Overrides:
addSelectionInterval in class javax.swing.DefaultListSelectionModel

removeSelectionInterval

public void removeSelectionInterval(int index0,
                                    int index1)
Specified by:
removeSelectionInterval in interface javax.swing.ListSelectionModel
Overrides:
removeSelectionInterval in class javax.swing.DefaultListSelectionModel

setAnchorSelectionIndex

public void setAnchorSelectionIndex(int anchorIndex)
Specified by:
setAnchorSelectionIndex in interface javax.swing.ListSelectionModel
Overrides:
setAnchorSelectionIndex in class javax.swing.DefaultListSelectionModel

setLeadSelectionIndex

public void setLeadSelectionIndex(int leadIndex)
Specified by:
setLeadSelectionIndex in interface javax.swing.ListSelectionModel
Overrides:
setLeadSelectionIndex in class javax.swing.DefaultListSelectionModel

clearSelection

public void clearSelection()
Specified by:
clearSelection in interface javax.swing.ListSelectionModel
Overrides:
clearSelection in class javax.swing.DefaultListSelectionModel

getSelectionMode

public int getSelectionMode()
Specified by:
getSelectionMode in interface javax.swing.ListSelectionModel
Overrides:
getSelectionMode in class javax.swing.DefaultListSelectionModel

moveLeadSelectionIndex

public void moveLeadSelectionIndex(int leadIndex)
Overrides:
moveLeadSelectionIndex in class javax.swing.DefaultListSelectionModel

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.