TableSorterを拝借する
戻る
※TableSorter.javaは、サンのサイトよりお借りしています。
::::::::::::::
Samarium.java
::::::::::::::
/**
* <pre>
* $Id: TableSorter.html,v 1.1 2009/06/22 16:12:00 kishi Exp kishi $
*
* サマリウム (Samarium) は原子番号62の元素。元素記号はSm。希土類元素の一つ(ランタノイドにも属す)。灰白色の軟らかい金属で、常温、常圧の安定構造は三方晶(六回対称を持った蜂の巣格子状の層が、9層づつ繰り返している構造)。比重、7.54、融点は摂氏1072℃、沸点は摂氏1800℃(沸点は異なる実験値あり)。 加熱下で酸化され、酸(無機酸)に易溶。熱水とも反応する。モナズ石(モナザイト)に含まれる。 原子価は、2価、3価である。サマリウムは単体でも原子価揺動(Valence fluctuation)を起こす。固体では、(4f)5(ds)3であるが、原子、表面上のサマリウム原子は、(4f)6(ds)2となっている。 天然に存在するサマリウム147(サマリウム中におよそ15%存在)はα崩壊する(弱い放射能を持つ)。 サマリウムコバルト磁石(Co5Sm:金属間化合物)は、強力な磁石として使用される。また、触媒としても注目されている。
</pre>
@author Y.Kishi
*/
public class Samarium {
/** 基数 */
static private final int NUMBER = 62;
/**
<pre>
z列以下の62文字で構成される
'0'-'9' 10文字
'A'-'Z' 26文字
'a'-'z' 26文字
</pre>
*/
static private Character[] base = new Character[ NUMBER ];
static {
// from '0' to '9'
for ( int i = 0;i < 10;i++ ) {
base[ i + 0 ] = new Character( ( char ) ( 48 + i ) );
}
// from 'A' to 'Z'
for ( int i = 0;i < 26;i++ ) {
base[ i + 10 ] = new Character( ( char ) ( 65 + i ) );
}
// from 'a' to 'z'
for ( int i = 0;i < 26;i++ ) {
base[ i + 36 ] = new Character( ( char ) ( 97 + i ) );
}
}
/** ダンプする */
static private void dump() {
for ( int i = 0;i < NUMBER;i++ ) {
System.out.println( i + ": " + ( char ) base[ i ] );
}
}
/**
* 10進数を62進数に変換します
* @param decimal 10進数
* @param length ゼロパディングした全体の桁数
* @return 62進数で記述された文字列
*/
static String convert( int decimal, int length ) {
StringBuffer result = new StringBuffer();
int mod = 0;
// System.out.println( "decimal=" + decimal );
// 基数で割っていきその余りを求めていく
while ( decimal >= NUMBER ) {
mod = decimal % NUMBER;
// System.err.println( "mod=" + mod + ":" + (char)base[mod]);
// 先頭にインサート
result.insert( 0, ( char ) base[ mod ] );
decimal = decimal / NUMBER;
}
// System.err.println( "rest=" + rest + ":" + (char)base[rest]);
// 先頭にインサート
result.insert( 0, ( char ) base[ decimal ] );
// 先頭にゼロパディング
while ( result.length() < length ) {
result.insert( 0, "0" );
}
return result.toString();
}
/**
* 62進数を10進数で表します
* 10進数 = 62^n * d0 + 62^(n-1) * d1 + ... + 62^0 * dn ( d[0-n] must be between 0 and 61 )
* @param in
* @return 10進数
*/
static public long getDecimalValue( String in ) throws Exception {
long longValue = 0;
for ( int i = 0;i < in.length();i++ ) {
int order = in.length() - i - 1;
char c = in.charAt( i );
int digit = 0;
if ( c >= '0' && c <= '9' ) {
digit = ( c - '0' );
} else if ( c >= 'A' && c <= 'Z' ) {
digit = ( c - 'A' + 10 );
} else if ( c >= 'a' && c <= 'z' ) {
digit = ( c - 'a' + 36 );
} else {
throw new SamariumUnsupportedCharacterException( "文字 " + c + " はサポートされていません!" );
}
System.err.println( "c=" + c + "\tdigit=" + digit + "\torder=" + order );
longValue += digit * power( order );
}
return longValue;
}
/**
* 基数62のべき乗を返します
* @param order 桁数
* @return 10進数
*/
static private long power( int order ) {
long result = 1;
for ( int i = 0;i < order;i++ ) {
result *= NUMBER;
}
return result;
}
/**
* 単体試験用のメインメソッド
*/
static public void main( String[] args ) {
// this can be verified by calculating inthe follwoing way
// ( 2*62*62 + 37*62 + 18 ) comes to be 10000
System.out.println( "10進数: 10000 → 62進数: " + convert( 10000, 8 ) );
System.out.println( "10進数: 61 → 62進数: " + convert( 61, 8 ) );
System.out.println( "10進数: 62 → 62進数: " + convert( 62, 8 ) );
System.out.println( );
try {
System.out.println( "\"2bI\" comes to be " + getDecimalValue( "2bI" ) );
System.out.println( "\"Az1\" comes to be " + getDecimalValue( "Az1" ) );
System.out.println( "\"1\" comes to be " + getDecimalValue( "1" ) );
System.out.println( "\"10\" comes to be " + getDecimalValue( "10" ) );
System.out.println( "\"z\" comes to be " + getDecimalValue( "z" ) );
System.out.println( "\"0z\" comes to be " + getDecimalValue( "0z" ) );
// SamariumUnsupportedCharacterExceptionを拾えるか確認する
System.out.println( "\"-34\" comes to be " + getDecimalValue( "-34" ) );
} catch ( Exception e ) {
e.printStackTrace();
}
}
}
::::::::::::::
SamariumUnsupportedCharacterException.java
::::::::::::::
/**
$Id: TableSorter.html,v 1.1 2009/06/22 16:12:00 kishi Exp kishi $
@author KISHI Yasuhiro
*/
public class SamariumUnsupportedCharacterException extends Exception {
public SamariumUnsupportedCharacterException( String errmsg ) {
super( "(" + errmsg + ")" );
}
}
::::::::::::::
TableSorter.java
::::::::::::::
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.util.List;
import javax.swing.*;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
import javax.swing.table.*;
/**
* TableSorter is a decorator for TableModels; adding sorting
* functionality to a supplied TableModel. TableSorter does
* not store or copy the data in its TableModel; instead it maintains
* a map from the row indexes of the view to the row indexes of the
* model. As requests are made of the sorter (like getValueAt(row, col))
* they are passed to the underlying model after the row numbers
* have been translated via the internal mapping array. This way,
* the TableSorter appears to hold another copy of the table
* with the rows in a different order.
* <p/>
* TableSorter registers itself as a listener to the underlying model,
* just as the JTable itself would. Events recieved from the model
* are examined, sometimes manipulated (typically widened), and then
* passed on to the TableSorter's listeners (typically the JTable).
* If a change to the model has invalidated the order of TableSorter's
* rows, a note of this is made and the sorter will resort the
* rows the next time a value is requested.
* <p/>
* When the tableHeader property is set, either by using the
* setTableHeader() method or the two argument constructor, the
* table header may be used as a complete UI for TableSorter.
* The default renderer of the tableHeader is decorated with a renderer
* that indicates the sorting status of each column. In addition,
* a mouse listener is installed with the following behavior:
* <ul>
* <li>
* Mouse-click: Clears the sorting status of all other columns
* and advances the sorting status of that column through three
* values: {NOT_SORTED, ASCENDING, DESCENDING} (then back to
* NOT_SORTED again).
* <li>
* SHIFT-mouse-click: Clears the sorting status of all other columns
* and cycles the sorting status of the column through the same
* three values, in the opposite order: {NOT_SORTED, DESCENDING, ASCENDING}.
* <li>
* CONTROL-mouse-click and CONTROL-SHIFT-mouse-click: as above except
* that the changes to the column do not cancel the statuses of columns
* that are already sorting - giving a way to initiate a compound
* sort.
* </ul>
* <p/>
* This is a long overdue rewrite of a class of the same name that
* first appeared in the swing table demos in 1997.
*
* @author Philip Milne
* @author Brendon McLean
* @author Dan van Enckevort
* @author Parwinder Sekhon
* @version 2.0 02/27/04
*/
public class TableSorter extends AbstractTableModel {
protected TableModel tableModel;
public static final int DESCENDING = -1;
public static final int NOT_SORTED = 0;
public static final int ASCENDING = 1;
private static Directive EMPTY_DIRECTIVE = new Directive( -1, NOT_SORTED );
public static final Comparator COMPARABLE_COMAPRATOR = new Comparator() {
public int compare( Object o1, Object o2 ) {
return ( ( Comparable ) o1 ).compareTo( o2 );
}
};
public static final Comparator LEXICAL_COMPARATOR = new Comparator() {
public int compare( Object o1, Object o2 ) {
return o1.toString().compareTo( o2.toString() );
}
};
private Row[] viewToModel;
private int[] modelToView;
private JTableHeader tableHeader;
private MouseListener mouseListener;
private TableModelListener tableModelListener;
private Map columnComparators = new HashMap();
private List sortingColumns = new ArrayList();
public TableSorter() {
this.mouseListener = new MouseHandler();
this.tableModelListener = new TableModelHandler();
}
public TableSorter( TableModel tableModel ) {
this();
setTableModel( tableModel );
}
public TableSorter( TableModel tableModel, JTableHeader tableHeader ) {
this();
setTableHeader( tableHeader );
setTableModel( tableModel );
}
private void clearSortingState() {
viewToModel = null;
modelToView = null;
}
public TableModel getTableModel() {
return tableModel;
}
public void setTableModel( TableModel tableModel ) {
if ( this.tableModel != null ) {
this.tableModel.removeTableModelListener( tableModelListener );
}
this.tableModel = tableModel;
if ( this.tableModel != null ) {
this.tableModel.addTableModelListener( tableModelListener );
}
clearSortingState();
fireTableStructureChanged();
}
public JTableHeader getTableHeader() {
return tableHeader;
}
public void setTableHeader( JTableHeader tableHeader ) {
if ( this.tableHeader != null ) {
this.tableHeader.removeMouseListener( mouseListener );
TableCellRenderer defaultRenderer = this.tableHeader.getDefaultRenderer();
if ( defaultRenderer instanceof SortableHeaderRenderer ) {
this.tableHeader.setDefaultRenderer( ( ( SortableHeaderRenderer ) defaultRenderer ).tableCellRenderer );
}
}
this.tableHeader = tableHeader;
if ( this.tableHeader != null ) {
this.tableHeader.addMouseListener( mouseListener );
this.tableHeader.setDefaultRenderer(
new SortableHeaderRenderer( this.tableHeader.getDefaultRenderer() ) );
}
}
public boolean isSorting() {
return sortingColumns.size() != 0;
}
private Directive getDirective( int column ) {
for ( int i = 0; i < sortingColumns.size(); i++ ) {
Directive directive = ( Directive ) sortingColumns.get( i );
if ( directive.column == column ) {
return directive;
}
}
return EMPTY_DIRECTIVE;
}
public int getSortingStatus( int column ) {
return getDirective( column ).direction;
}
private void sortingStatusChanged() {
clearSortingState();
fireTableDataChanged();
if ( tableHeader != null ) {
tableHeader.repaint();
}
}
public void setSortingStatus( int column, int status ) {
Directive directive = getDirective( column );
if ( directive != EMPTY_DIRECTIVE ) {
sortingColumns.remove( directive );
}
if ( status != NOT_SORTED ) {
sortingColumns.add( new Directive( column, status ) );
}
sortingStatusChanged();
}
protected Icon getHeaderRendererIcon( int column, int size ) {
Directive directive = getDirective( column );
if ( directive == EMPTY_DIRECTIVE ) {
return null;
}
return new Arrow( directive.direction == DESCENDING, size, sortingColumns.indexOf( directive ) );
}
private void cancelSorting() {
sortingColumns.clear();
sortingStatusChanged();
}
public void setColumnComparator( Class type, Comparator comparator ) {
if ( comparator == null ) {
columnComparators.remove( type );
} else {
columnComparators.put( type, comparator );
}
}
protected Comparator getComparator( int column ) {
Class columnType = tableModel.getColumnClass( column );
Comparator comparator = ( Comparator ) columnComparators.get( columnType );
if ( comparator != null ) {
return comparator;
}
if ( Comparable.class.isAssignableFrom( columnType ) ) {
return COMPARABLE_COMAPRATOR;
}
return LEXICAL_COMPARATOR;
}
private Row[] getViewToModel() {
if ( viewToModel == null ) {
int tableModelRowCount = tableModel.getRowCount();
viewToModel = new Row[ tableModelRowCount ];
for ( int row = 0; row < tableModelRowCount; row++ ) {
viewToModel[ row ] = new Row( row );
}
if ( isSorting() ) {
Arrays.sort( viewToModel );
}
}
return viewToModel;
}
public int modelIndex( int viewIndex ) {
return getViewToModel() [ viewIndex ].modelIndex;
}
private int[] getModelToView() {
if ( modelToView == null ) {
int n = getViewToModel().length;
modelToView = new int[ n ];
for ( int i = 0; i < n; i++ ) {
modelToView[ modelIndex( i ) ] = i;
}
}
return modelToView;
}
// TableModel interface methods
public int getRowCount() {
return ( tableModel == null ) ? 0 : tableModel.getRowCount();
}
public int getColumnCount() {
return ( tableModel == null ) ? 0 : tableModel.getColumnCount();
}
public String getColumnName( int column ) {
return tableModel.getColumnName( column );
}
public Class getColumnClass( int column ) {
return tableModel.getColumnClass( column );
}
public boolean isCellEditable( int row, int column ) {
return tableModel.isCellEditable( modelIndex( row ), column );
}
public Object getValueAt( int row, int column ) {
return tableModel.getValueAt( modelIndex( row ), column );
}
public void setValueAt( Object aValue, int row, int column ) {
tableModel.setValueAt( aValue, modelIndex( row ), column );
}
// Helper classes
private class Row implements Comparable {
private int modelIndex;
public Row( int index ) {
this.modelIndex = index;
}
public int compareTo( Object o ) {
int row1 = modelIndex;
int row2 = ( ( Row ) o ).modelIndex;
for ( Iterator it = sortingColumns.iterator(); it.hasNext(); ) {
Directive directive = ( Directive ) it.next();
int column = directive.column;
Object o1 = tableModel.getValueAt( row1, column );
Object o2 = tableModel.getValueAt( row2, column );
int comparison = 0;
// Define null less than everything, except null.
if ( o1 == null && o2 == null ) {
comparison = 0;
} else if ( o1 == null ) {
comparison = -1;
} else if ( o2 == null ) {
comparison = 1;
} else {
comparison = getComparator( column ).compare( o1, o2 );
}
if ( comparison != 0 ) {
return directive.direction == DESCENDING ? -comparison : comparison;
}
}
return 0;
}
}
private class TableModelHandler implements TableModelListener {
public void tableChanged( TableModelEvent e ) {
// If we're not sorting by anything, just pass the event along.
if ( !isSorting() ) {
clearSortingState();
fireTableChanged( e );
return ;
}
// If the table structure has changed, cancel the sorting; the
// sorting columns may have been either moved or deleted from
// the model.
if ( e.getFirstRow() == TableModelEvent.HEADER_ROW ) {
cancelSorting();
fireTableChanged( e );
return ;
}
// We can map a cell event through to the view without widening
// when the following conditions apply:
//
// a) all the changes are on one row (e.getFirstRow() == e.getLastRow()) and,
// b) all the changes are in one column (column != TableModelEvent.ALL_COLUMNS) and,
// c) we are not sorting on that column (getSortingStatus(column) == NOT_SORTED) and,
// d) a reverse lookup will not trigger a sort (modelToView != null)
//
// Note: INSERT and DELETE events fail this test as they have column == ALL_COLUMNS.
//
// The last check, for (modelToView != null) is to see if modelToView
// is already allocated. If we don't do this check; sorting can become
// a performance bottleneck for applications where cells
// change rapidly in different parts of the table. If cells
// change alternately in the sorting column and then outside of
// it this class can end up re-sorting on alternate cell updates -
// which can be a performance problem for large tables. The last
// clause avoids this problem.
int column = e.getColumn();
if ( e.getFirstRow() == e.getLastRow()
&& column != TableModelEvent.ALL_COLUMNS
&& getSortingStatus( column ) == NOT_SORTED
&& modelToView != null ) {
int viewIndex = getModelToView() [ e.getFirstRow() ];
fireTableChanged( new TableModelEvent( TableSorter.this,
viewIndex, viewIndex,
column, e.getType() ) );
return ;
}
// Something has happened to the data that may have invalidated the row order.
clearSortingState();
fireTableDataChanged();
return ;
}
}
private class MouseHandler extends MouseAdapter {
public void mouseClicked( MouseEvent e ) {
JTableHeader h = ( JTableHeader ) e.getSource();
TableColumnModel columnModel = h.getColumnModel();
int viewColumn = columnModel.getColumnIndexAtX( e.getX() );
int column = columnModel.getColumn( viewColumn ).getModelIndex();
if ( column != -1 ) {
int status = getSortingStatus( column );
if ( !e.isControlDown() ) {
cancelSorting();
}
// Cycle the sorting states through {NOT_SORTED, ASCENDING, DESCENDING} or
// {NOT_SORTED, DESCENDING, ASCENDING} depending on whether shift is pressed.
status = status + ( e.isShiftDown() ? -1 : 1 );
status = ( status + 4 ) % 3 - 1; // signed mod, returning {-1, 0, 1}
setSortingStatus( column, status );
}
}
}
private static class Arrow implements Icon {
private boolean descending;
private int size;
private int priority;
public Arrow( boolean descending, int size, int priority ) {
this.descending = descending;
this.size = size;
this.priority = priority;
}
public void paintIcon( Component c, Graphics g, int x, int y ) {
Color color = c == null ? Color.GRAY : c.getBackground();
// In a compound sort, make each succesive triangle 20%
// smaller than the previous one.
int dx = ( int ) ( size / 2 * Math.pow( 0.8, priority ) );
int dy = descending ? dx : -dx;
// Align icon (roughly) with font baseline.
y = y + 5 * size / 6 + ( descending ? -dy : 0 );
int shift = descending ? 1 : -1;
g.translate( x, y );
// Right diagonal.
g.setColor( color.darker() );
g.drawLine( dx / 2, dy, 0, 0 );
g.drawLine( dx / 2, dy + shift, 0, shift );
// Left diagonal.
g.setColor( color.brighter() );
g.drawLine( dx / 2, dy, dx, 0 );
g.drawLine( dx / 2, dy + shift, dx, shift );
// Horizontal line.
if ( descending ) {
g.setColor( color.darker().darker() );
} else {
g.setColor( color.brighter().brighter() );
}
g.drawLine( dx, 0, 0, 0 );
g.setColor( color );
g.translate( -x, -y );
}
public int getIconWidth() {
return size;
}
public int getIconHeight() {
return size;
}
}
private class SortableHeaderRenderer implements TableCellRenderer {
private TableCellRenderer tableCellRenderer;
public SortableHeaderRenderer( TableCellRenderer tableCellRenderer ) {
this.tableCellRenderer = tableCellRenderer;
}
public Component getTableCellRendererComponent( JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column ) {
Component c = tableCellRenderer.getTableCellRendererComponent( table,
value, isSelected, hasFocus, row, column );
if ( c instanceof JLabel ) {
JLabel l = ( JLabel ) c;
l.setHorizontalTextPosition( JLabel.LEFT );
int modelColumn = table.convertColumnIndexToModel( column );
l.setIcon( getHeaderRendererIcon( modelColumn, l.getFont().getSize() ) );
}
return c;
}
}
private static class Directive {
private int column;
private int direction;
public Directive( int column, int direction ) {
this.column = column;
this.direction = direction;
}
}
}
::::::::::::::
TableTest.java
::::::::::::::
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.table.*;
/**
$Id: TableSorter.html,v 1.1 2009/06/22 16:12:00 kishi Exp kishi $
@author KISHI Yasuhiro
*/
public class TableTest extends JFrame implements ActionListener {
private String[][] rowData = {
{"沖縄", "500", "400", "700", "200"},
{"埼玉", "300", "100", "150", "250"},
{"北海道", "400", "400", "400", "400"},
{"宮城", "300", "450", "200", "550"},
};
private String[] columnNames = {"都道府県名", "男性", "女性", "20歳未満", "20歳以上"};
private DefaultTableModel model;
private long start;
public static void main( String[] args ) {
TableTest test = new TableTest();
/* 終了処理を追加 */
test.addWindowListener( new WindowAdapter() {
public void windowClosing( WindowEvent e ) {
System.exit( 0 );
}
}
);
test.setBounds( 10, 10, 440, 600 );
test.setVisible( true );
}
public TableTest() {
super( "TableSorterってこんなに便利!" );
start = System.currentTimeMillis(); // インスタンス化された時間
model = new DefaultTableModel( rowData, columnNames );
TableSorter sorter = new TableSorter( model );
JTable table = new JTable( sorter );
sorter.setTableHeader( table.getTableHeader() );
// スクロールペイン
JScrollPane scrPane = new JScrollPane();
scrPane.getViewport().setView( table );
scrPane.setPreferredSize( new Dimension( 400, 500 ) );
// 上部のパネル
JPanel panel = new JPanel();
panel.add( scrPane );
// ボタン
JButton misc = new JButton( "MISC" );
misc.addActionListener( this );
// クリアボタン
JButton delete = new JButton( "DELETE_ALL" );
delete.addActionListener( this );
// 下部のパネル
JPanel lowerPanel = new JPanel();
lowerPanel.add( misc );
lowerPanel.add( delete );
// 全体
Container content = this.getContentPane();
content.add( panel, BorderLayout.CENTER );
content.add( lowerPanel, BorderLayout.SOUTH );
}
public synchronized void actionPerformed( ActionEvent e ) {
String action = e.getActionCommand();
if ( action.equals( "MISC" ) ) {
long now = System.currentTimeMillis(); // 現在時間
int elapsedTime = ( int ) ( now - start ) ;
String[] rowData1 = {
Samarium.convert( elapsedTime * 5, 4 ),
new Integer( elapsedTime % 101 ).toString() ,
new Integer( elapsedTime % 543 ).toString() ,
Samarium.convert( elapsedTime, 3 ),
new Integer( elapsedTime % 137 ).toString()
};
model.addRow( rowData1 );
}
if ( action.equals( "DELETE_ALL" ) ) {
System.out.println( "DELETE_ALLボタンがクリックされました!" );
System.out.println( "現在の行数は、" + model.getRowCount() + " です。" );
// truncateするにはこうすればいいようだ・・・
model.setRowCount( 0 );
System.out.println( "全件削除されました!" );
}
}
}
/*
$ javap javax.swing.table.DefaultTableModel
Compiled from "DefaultTableModel.java"
public class javax.swing.table.DefaultTableModel extends javax.swing.table.AbstractTableModel implements java.io.Serializable{
protected java.util.Vector dataVector;
protected java.util.Vector columnIdentifiers;
public javax.swing.table.DefaultTableModel();
public javax.swing.table.DefaultTableModel(int, int);
public javax.swing.table.DefaultTableModel(java.util.Vector, int);
public javax.swing.table.DefaultTableModel(java.lang.Object[], int);
public javax.swing.table.DefaultTableModel(java.util.Vector, java.util.Vector);
public javax.swing.table.DefaultTableModel(java.lang.Object[][], java.lang.Object[]);
public java.util.Vector getDataVector();
public void setDataVector(java.util.Vector, java.util.Vector);
public void setDataVector(java.lang.Object[][], java.lang.Object[]);
public void newDataAvailable(javax.swing.event.TableModelEvent);
public void newRowsAdded(javax.swing.event.TableModelEvent);
public void rowsRemoved(javax.swing.event.TableModelEvent);
public void setNumRows(int);
public void setRowCount(int);
public void addRow(java.util.Vector);
public void addRow(java.lang.Object[]);
public void insertRow(int, java.util.Vector);
public void insertRow(int, java.lang.Object[]);
public void moveRow(int, int, int);
public void removeRow(int);
public void setColumnIdentifiers(java.util.Vector);
public void setColumnIdentifiers(java.lang.Object[]);
public void setColumnCount(int);
public void addColumn(java.lang.Object);
public void addColumn(java.lang.Object, java.util.Vector);
public void addColumn(java.lang.Object, java.lang.Object[]);
public int getRowCount();
public int getColumnCount();
public java.lang.String getColumnName(int);
public boolean isCellEditable(int, int);
public java.lang.Object getValueAt(int, int);
public void setValueAt(java.lang.Object, int, int);
protected static java.util.Vector convertToVector(java.lang.Object[]);
protected static java.util.Vector convertToVector(java.lang.Object[][]);
}
*/
戻る