|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
weka.gui.arffviewer.ArffTable
public class ArffTable
A specialized JTable for the Arff-Viewer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTable |
|---|
JTable.DropLocation, JTable.PrintMode |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JTable |
|---|
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS |
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ArffTable()
initializes with no model |
|
ArffTable(TableModel model)
initializes with the given model |
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener to the panel |
TableCellEditor |
getCellEditor(int row,
int column)
returns the cell editor for the given cell |
String |
getPlainColumnName(int columnIndex)
returns the basically the attribute name of the column and not the HTML column name via getColumnName(int) |
String |
getSearchString()
returns the search string, can be NULL if no search string is set |
StringSelection |
getStringSelection()
returns the selected content in a StringSelection that can be copied to the clipboard and used in Excel, if nothing is selected the whole table is copied to the clipboard |
boolean |
isReadOnly()
returns whether the model is read-only |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from the panel |
void |
setModel(TableModel model)
sets the new model |
void |
setReadOnly(boolean value)
sets whether the model is read-only |
void |
setSearchString(String searchString)
sets the search string to look for in the table, NULL or "" disables the search |
void |
setSelectedColumn(int index)
sets the selected column |
void |
tableChanged(TableModelEvent e)
This fine grain notification tells listeners the exact range of cells, rows, or columns that changed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArffTable()
public ArffTable(TableModel model)
model - the model to use| Method Detail |
|---|
public void setModel(TableModel model)
setModel in class JTablemodel - the model to use
public TableCellEditor getCellEditor(int row,
int column)
getCellEditor in class JTablerow - the row indexcolumn - the column index
public boolean isReadOnly()
public void setReadOnly(boolean value)
value - if true the model is set to read-onlypublic String getPlainColumnName(int columnIndex)
columnIndex - the column index
public StringSelection getStringSelection()
public void setSearchString(String searchString)
searchString - the search string to usepublic String getSearchString()
public void setSelectedColumn(int index)
index - the column to selectpublic void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListenertableChanged in class JTablee - the table eventpublic void addChangeListener(ChangeListener l)
l - the listener to addpublic void removeChangeListener(ChangeListener l)
l - the listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||