|
||||||||||
| 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
net.sf.doolin.gui.field.table.support.GUITable<V,E>
V - Type of object for the viewE - Type of item in the tablepublic class GUITable<V,E>
JTable implementation for the Doolin GUI framework, for integration
as a Field.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTable |
|---|
JTable.AccessibleJTable, JTable.DropLocation, 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.BaselineResizeBehavior, 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 | |
|---|---|
GUITable(GUITableField<V,E> tableField)
Instantiates a new GUI table. |
|
| Method Summary | |
|---|---|
protected void |
configureEnclosingScrollPane()
|
ca.odell.glazedlists.swing.EventTableModel<E> |
getEventTableModel()
Gets the table model that is based on EventList. |
E |
getItemAt(int row)
Gets an item from the table |
E |
getSelectedItem()
Gets the selected item. |
List<E> |
getSelectedItems()
Gets the list of selected items. |
GUITableField<V,E> |
getTableField()
Gets the table field. |
TableStyle |
getTableStyle()
Gets the style for this table |
protected void |
initColumns()
Initialises the columns. |
protected void |
initModel()
Initialises the model. |
protected void |
initSorting()
Initializes sorting capabilities |
void |
reinit()
Reinitialises the table: model, columns and sorting. |
protected void |
setupColumn(int colIndex,
TableColumn tableColumn,
Column column,
boolean setupWidth)
Set-up a column |
protected void |
setupEditor(int colIndex,
TableColumn tableColumn,
Column column)
Setup the editor for one column |
protected void |
setupRenderer(int colIndex,
TableColumn tableColumn,
Column column)
Setup the renderer for one column |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GUITable(GUITableField<V,E> tableField)
tableField - Associated table field| Method Detail |
|---|
protected void configureEnclosingScrollPane()
configureEnclosingScrollPane in class JTablepublic ca.odell.glazedlists.swing.EventTableModel<E> getEventTableModel()
EventList.
public E getItemAt(int row)
row - Row index
public E getSelectedItem()
null if the selection is emptypublic List<E> getSelectedItems()
null if the selection is emptypublic GUITableField<V,E> getTableField()
public TableStyle getTableStyle()
GUITableField.getTableDescriptor(),
FieldTable.getTableStyle()protected void initColumns()
protected void initModel()
protected void initSorting()
public void reinit()
protected void setupColumn(int colIndex,
TableColumn tableColumn,
Column column,
boolean setupWidth)
colIndex - Column indextableColumn - Associated column modelcolumn - Column descriptorsetupWidth - true if the width must be set
protected void setupEditor(int colIndex,
TableColumn tableColumn,
Column column)
colIndex - Column indextableColumn - Column in the JTable column modelcolumn - Column definition
protected void setupRenderer(int colIndex,
TableColumn tableColumn,
Column column)
colIndex - Column indextableColumn - Column in the JTable column modelcolumn - Column definition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||