|
||||||||||
| 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
org.vizzini.ui.SortTable
org.vizzini.ui.DescribedTable
public class DescribedTable
Provides a sort table user interface which uses a
TableDescriptor to provide the columns.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.vizzini.ui.SortTable |
|---|
SortTable.TableHeaderRenderer |
| Nested classes/interfaces inherited from class javax.swing.JTable |
|---|
JTable.AccessibleJTable, JTable.PrintMode |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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.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 | |
|---|---|
DescribedTable(DescribedTableModel tableModel)
Construct this object. |
|
DescribedTable(TableDescriptor tableDescriptor)
Construct this object. |
|
| Method Summary | |
|---|---|
void |
columnAdded(TableColumnModelEvent event)
Invoked when a column is added to the table column model. |
protected void |
configureCellEditor(ColumnDescriptor columnDescriptor)
Configure the cell editor for the column specified by the descriptor. |
protected void |
configureCellRenderer(ColumnDescriptor columnDescriptor)
Configure the cell renderer for the column specified by the descriptor. |
void |
ensureIndexIsVisible(int index)
Scrolls the viewport to make the specified cell completely visible. |
void |
removeSelectedRows()
Remove all the selected rows. |
void |
selectData(Object[] data)
Select the given data. |
void |
setEditMode(boolean isEditMode)
Set the edit mode flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DescribedTable(TableDescriptor tableDescriptor)
public DescribedTable(DescribedTableModel tableModel)
| Method Detail |
|---|
public void columnAdded(TableColumnModelEvent event)
columnAdded in interface TableColumnModelListenercolumnAdded in class JTablepublic void ensureIndexIsVisible(int index)
JList must be displayed within
a JViewport.
index - the index of the cell to make visibleJComponent.scrollRectToVisible(java.awt.Rectangle),
JComponent.getVisibleRect()public void removeSelectedRows()
public void selectData(Object[] data)
data - The data to select.public void setEditMode(boolean isEditMode)
protected void configureCellEditor(ColumnDescriptor columnDescriptor)
protected void configureCellRenderer(ColumnDescriptor columnDescriptor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |