|
|||||||||||
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.JPanel
wt.clients.csm.widgets.CSMResultsTable
A Panel that has a table with scroll bars
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected Color |
bgColor
|
protected CSMResultsTableCellRenderer |
cellRenderer
|
protected Vector |
colNames
|
(package private) boolean |
columnSelected
|
protected CSMResultsTableSelectionListenerManager |
csmResultsTableSelectionListenerManager
|
(package private) int |
defaultColumnWidth
|
protected Color |
gridColor
|
protected TableCellRenderer |
headerRenderer
|
(package private) MouseListener |
listener
|
protected Vector |
maxColumnWidth
|
protected String |
ms
|
(package private) boolean |
rowSelected
|
protected JScrollPane |
scrollPane
|
static int |
SELECTION
|
protected JTable |
table
|
protected CSMResultsTableModel |
tableModel
|
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
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 | |
CSMResultsTable()
Construct a JCSMTable |
|
CSMResultsTable(Vector data,
Vector columnNames)
Construct a JCSMTable |
Method Summary | |
void |
addCSMResultsTableSelectionListener(CSMResultsTableSelectionEventListener obj)
|
void |
addMouseListener(MouseListener listener)
|
void |
clearTable()
|
void |
clearTableData()
Clears the table (Removes all the entries) |
protected CSMResultsTableModel |
createModel()
|
protected CSMResultsTableModel |
createModel(Vector data,
Vector columnNames)
|
void |
fireSelectionChangedEvent(CSMResultsTableSelectionEvent obj)
|
Object |
getCellComponent(int row,
int col)
Get the cell component |
int |
getColumnCount()
Return the column count |
int[] |
getColWidths()
|
protected int |
getHeaderRowHeight()
return the header row height |
String |
getMeasurementSystem()
|
int |
getRankingColumn()
|
Color |
getRowColor(int row)
|
int |
getRowCount()
Return the row count |
int[] |
getRowHeights()
Get the row heights |
int |
getSelectedColumn()
Get the selected column |
int[] |
getSelectedColumns()
Get the selected columns Get an array of indices of the selected columns |
int |
getSelectedRow()
Get the selectedRow |
int[] |
getSelectedRows()
Get the selected Rows |
void |
removeCSMResultsTableSelectionListener(CSMResultsTableSelectionEventListener obj)
|
void |
removeMouseListener(MouseListener listener)
|
void |
setAutoResizeMode(int mode)
Set the auto resize mode |
void |
setColor(Hashtable colorTable)
|
void |
setColumnNames(Vector columnNames)
|
void |
setColumnSelectionInterval(int index0,
int index1)
|
void |
setColumnWidth()
|
void |
setColumnWidth(int width)
Set the column width |
void |
setColumnWidth(int columnNo,
int width)
Set the column width for a specified column |
protected void |
setComponents()
Set the components |
void |
setHeaderBackground(Color color)
Set the header background color |
void |
setHeaderFont(Font font)
Set the headerFont |
void |
setHeaderForeground(Color color)
Set the header foreground color |
protected void |
setHeaderRenderer(TableCellRenderer headerRenderer)
|
void |
setMaxColumnWidth(Vector v)
|
void |
setMeasurementSystem(String ms)
|
void |
setRankingColumn(int i)
|
void |
setRowColor(int row,
Color color)
|
void |
setRowHeight(int height)
Set the row height |
void |
setRowSelectionInterval(int index0,
int index1)
|
protected void |
setTable()
Set the table |
void |
setTableBackground(Color color)
Set the table background |
void |
setTableData(Vector data)
Set the data for the table |
void |
setTableIntercellSpacing(Dimension d)
Set the table cell spacing |
void |
setTableSize(Dimension dimension)
Set the table size |
private void |
setTheColors()
|
void |
stopCellEditing()
|
void |
validateTable()
Validate the table |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SELECTION
protected CSMResultsTableModel tableModel
protected JTable table
protected JScrollPane scrollPane
protected Color bgColor
protected Color gridColor
protected TableCellRenderer headerRenderer
protected CSMResultsTableCellRenderer cellRenderer
protected String ms
protected Vector colNames
protected Vector maxColumnWidth
int defaultColumnWidth
boolean rowSelected
boolean columnSelected
MouseListener listener
protected CSMResultsTableSelectionListenerManager csmResultsTableSelectionListenerManager
Constructor Detail |
public CSMResultsTable()
public CSMResultsTable(Vector data, Vector columnNames)
data
- - vector of (columns) vector of (rows)datacolumnNames
- - vector columnNamesMethod Detail |
protected CSMResultsTableModel createModel()
protected CSMResultsTableModel createModel(Vector data, Vector columnNames)
public void setColumnNames(Vector columnNames)
public void setRankingColumn(int i)
public int getRankingColumn()
private void setTheColors()
protected void setHeaderRenderer(TableCellRenderer headerRenderer)
public void setTableData(Vector data)
public void stopCellEditing()
public void clearTableData()
public void clearTable()
public void validateTable()
public int getRowCount()
public int getColumnCount()
public int getSelectedRow()
public int[] getSelectedRows()
public int getSelectedColumn()
public int[] getSelectedColumns()
public Object getCellComponent(int row, int col)
public void setColor(Hashtable colorTable)
public void setRowColor(int row, Color color)
public Color getRowColor(int row)
public void setTableBackground(Color color)
color
- public void setHeaderForeground(Color color)
public void setHeaderBackground(Color color)
public void setHeaderFont(Font font)
public void setColumnWidth()
public void setColumnWidth(int width)
width
- public void setColumnWidth(int columnNo, int width)
width
- public void setRowHeight(int height)
height
- of the rowpublic void setAutoResizeMode(int mode)
mode
- (JTables AutoResize modes)public int[] getColWidths()
public int[] getRowHeights()
protected int getHeaderRowHeight()
public void setTableIntercellSpacing(Dimension d)
public void setTableSize(Dimension dimension)
dimension
- public void addCSMResultsTableSelectionListener(CSMResultsTableSelectionEventListener obj)
public void removeCSMResultsTableSelectionListener(CSMResultsTableSelectionEventListener obj)
public void fireSelectionChangedEvent(CSMResultsTableSelectionEvent obj)
public void addMouseListener(MouseListener listener)
public void removeMouseListener(MouseListener listener)
protected void setComponents()
protected void setTable()
public void setMaxColumnWidth(Vector v)
public void setMeasurementSystem(String ms)
public String getMeasurementSystem()
public void setRowSelectionInterval(int index0, int index1)
public void setColumnSelectionInterval(int index0, int index1)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |