jp.hishidama.swing.table
クラス RowHeaderSelectionModel

java.lang.Object
  上位を拡張 javax.swing.DefaultListSelectionModel
      上位を拡張 jp.hishidama.swing.table.RowHeaderSelectionModel
すべての実装されたインタフェース:
Serializable, Cloneable, EventListener, ListSelectionListener, ListSelectionModel

public class RowHeaderSelectionModel
extends DefaultListSelectionModel
implements ListSelectionListener

行ヘッダーのSelectionModel.

導入されたバージョン:
2009.03.13
バージョン:
2009.04.11 選択時にdataTableを行選択するよう変更
作成者:
ひしだま
関連項目:
RowHeaderTable, 直列化された形式

フィールドの概要
 
インタフェース javax.swing.ListSelectionModel から継承されたフィールド
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
 
コンストラクタの概要
RowHeaderSelectionModel(JTable dataTable)
          コンストラクター
 
メソッドの概要
 void addListSelectionListener(ListSelectionListener x)
           
 void addSelectionInterval(int index0, int index1)
           
 void clearSelection()
           
 int getAnchorSelectionIndex()
           
 int getLeadSelectionIndex()
           
 int getMaxSelectionIndex()
           
 int getMinSelectionIndex()
           
 int getSelectionMode()
           
 boolean getValueIsAdjusting()
           
 void insertIndexInterval(int index, int length, boolean before)
           
 boolean isSelectedIndex(int index)
           
 boolean isSelectionEmpty()
           
 void removeIndexInterval(int index0, int index1)
           
 void removeListSelectionListener(ListSelectionListener x)
           
 void removeSelectionInterval(int index0, int index1)
           
 void setAnchorSelectionIndex(int anchorIndex)
           
 void setLeadSelectionIndex(int leadIndex)
           
 void setSelectionInterval(int index0, int index1)
           
 void setSelectionMode(int selectionMode)
           
 void setValueIsAdjusting(boolean isAdjusting)
           
 void valueChanged(ListSelectionEvent e)
           
 
クラス javax.swing.DefaultListSelectionModel から継承されたメソッド
clone, getListeners, getListSelectionListeners, isLeadAnchorNotificationEnabled, moveLeadSelectionIndex, setLeadAnchorNotificationEnabled, toString
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

RowHeaderSelectionModel

public RowHeaderSelectionModel(JTable dataTable)
コンストラクター

パラメータ:
dataTable - データテーブル
メソッドの詳細

setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)
定義:
インタフェース ListSelectionModel 内の setSelectionInterval
オーバーライド:
クラス DefaultListSelectionModel 内の setSelectionInterval

addSelectionInterval

public void addSelectionInterval(int index0,
                                 int index1)
定義:
インタフェース ListSelectionModel 内の addSelectionInterval
オーバーライド:
クラス DefaultListSelectionModel 内の addSelectionInterval

removeSelectionInterval

public void removeSelectionInterval(int index0,
                                    int index1)
定義:
インタフェース ListSelectionModel 内の removeSelectionInterval
オーバーライド:
クラス DefaultListSelectionModel 内の removeSelectionInterval

getMinSelectionIndex

public int getMinSelectionIndex()
定義:
インタフェース ListSelectionModel 内の getMinSelectionIndex
オーバーライド:
クラス DefaultListSelectionModel 内の getMinSelectionIndex

getMaxSelectionIndex

public int getMaxSelectionIndex()
定義:
インタフェース ListSelectionModel 内の getMaxSelectionIndex
オーバーライド:
クラス DefaultListSelectionModel 内の getMaxSelectionIndex

isSelectedIndex

public boolean isSelectedIndex(int index)
定義:
インタフェース ListSelectionModel 内の isSelectedIndex
オーバーライド:
クラス DefaultListSelectionModel 内の isSelectedIndex

getAnchorSelectionIndex

public int getAnchorSelectionIndex()
定義:
インタフェース ListSelectionModel 内の getAnchorSelectionIndex
オーバーライド:
クラス DefaultListSelectionModel 内の getAnchorSelectionIndex

setAnchorSelectionIndex

public void setAnchorSelectionIndex(int anchorIndex)
定義:
インタフェース ListSelectionModel 内の setAnchorSelectionIndex
オーバーライド:
クラス DefaultListSelectionModel 内の setAnchorSelectionIndex

getLeadSelectionIndex

public int getLeadSelectionIndex()
定義:
インタフェース ListSelectionModel 内の getLeadSelectionIndex
オーバーライド:
クラス DefaultListSelectionModel 内の getLeadSelectionIndex

setLeadSelectionIndex

public void setLeadSelectionIndex(int leadIndex)
定義:
インタフェース ListSelectionModel 内の setLeadSelectionIndex
オーバーライド:
クラス DefaultListSelectionModel 内の setLeadSelectionIndex

clearSelection

public void clearSelection()
定義:
インタフェース ListSelectionModel 内の clearSelection
オーバーライド:
クラス DefaultListSelectionModel 内の clearSelection

isSelectionEmpty

public boolean isSelectionEmpty()
定義:
インタフェース ListSelectionModel 内の isSelectionEmpty
オーバーライド:
クラス DefaultListSelectionModel 内の isSelectionEmpty

insertIndexInterval

public void insertIndexInterval(int index,
                                int length,
                                boolean before)
定義:
インタフェース ListSelectionModel 内の insertIndexInterval
オーバーライド:
クラス DefaultListSelectionModel 内の insertIndexInterval

removeIndexInterval

public void removeIndexInterval(int index0,
                                int index1)
定義:
インタフェース ListSelectionModel 内の removeIndexInterval
オーバーライド:
クラス DefaultListSelectionModel 内の removeIndexInterval

setValueIsAdjusting

public void setValueIsAdjusting(boolean isAdjusting)
定義:
インタフェース ListSelectionModel 内の setValueIsAdjusting
オーバーライド:
クラス DefaultListSelectionModel 内の setValueIsAdjusting

getValueIsAdjusting

public boolean getValueIsAdjusting()
定義:
インタフェース ListSelectionModel 内の getValueIsAdjusting
オーバーライド:
クラス DefaultListSelectionModel 内の getValueIsAdjusting

setSelectionMode

public void setSelectionMode(int selectionMode)
定義:
インタフェース ListSelectionModel 内の setSelectionMode
オーバーライド:
クラス DefaultListSelectionModel 内の setSelectionMode

getSelectionMode

public int getSelectionMode()
定義:
インタフェース ListSelectionModel 内の getSelectionMode
オーバーライド:
クラス DefaultListSelectionModel 内の getSelectionMode

addListSelectionListener

public void addListSelectionListener(ListSelectionListener x)
定義:
インタフェース ListSelectionModel 内の addListSelectionListener
オーバーライド:
クラス DefaultListSelectionModel 内の addListSelectionListener

removeListSelectionListener

public void removeListSelectionListener(ListSelectionListener x)
定義:
インタフェース ListSelectionModel 内の removeListSelectionListener
オーバーライド:
クラス DefaultListSelectionModel 内の removeListSelectionListener

valueChanged

public void valueChanged(ListSelectionEvent e)
定義:
インタフェース ListSelectionListener 内の valueChanged