|
||||||||||
| PREV CLASS Documentation homepage 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
ilog.cpl.table.IlpJTable
public class IlpJTable
Derived from JTable to delegate selection management to the
IlpTableView which contains this JTable.
This class also uses a specific UI class.
| Nested Class Summary |
|---|
| 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 | |
|---|---|
IlpJTable(IlpTableView tableView)
Constructs an IlpJTable. |
|
| Method Summary | |
|---|---|
void |
changeSelection(int rowIndex,
int columnIndex,
boolean toggle,
boolean extend)
Redefined here to forward selection to the IlpTableView
containing this JTable. |
void |
columnAdded(TableColumnModelEvent e)
Invoked when a column is added to the table column model. |
void |
columnMarginChanged(ChangeEvent e)
Invoked when a column is moved due to a margin change. |
void |
columnRemoved(TableColumnModelEvent tableColumnModelEvent)
Invoked when a column is removed from the table column model. |
TableCellEditor |
getCellEditor(int row,
int column)
Redefined here to delegate to the table view. |
TableCellRenderer |
getCellRenderer(int row,
int column)
Redefined here to delegate to the table view. |
int |
getColumnIndexInView(int columnIndex)
Returns the column index in the table view column system. |
IlpTableView |
getIlpTableView()
Returns the IlpTableView which uses this IlpJTable. |
String |
getUIClassID()
Returns the name of the look-and-feel class that renders this component. |
boolean |
isCellSelected(int row,
int column)
Redefined here to delegate the selection management to the IlpTableView containing this JTable. |
boolean |
isRowHeaderTable()
Returns true is this table is a row header table. |
Component |
prepareRenderer(TableCellRenderer renderer,
int row,
int column)
Redefined here to delegate the selection management to the IlpTableView containing this JTable. |
void |
scrollRectToVisible(Rectangle aRect)
Forwards the scrollRectToVisible() message to the
table if it is a row header table. |
void |
setRowHeaderTable(boolean flag)
Tell the table if it is a row header table or not. |
void |
sizeColumnsToFit(int resizingColumn)
Resizes one or more of the columns in the table so that the total width of all of this JTable's
columns is equal to the width of the table. |
void |
valueChanged(ListSelectionEvent e)
Redefined here to delegate the selection management to the IlpTableView containing this JTable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlpJTable(IlpTableView tableView)
| Method Detail |
|---|
public String getUIClassID()
getUIClassID in class JTableIlpTableUI (which is associated with
ilog.cpl.table.IlpBasicTableUI in the UIManager).JComponent.getUIClassID(),
UIDefaults.getUI(javax.swing.JComponent)public IlpTableView getIlpTableView()
IlpTableView which uses this IlpJTable.
IlpTableView using this IlpJTable.public boolean isRowHeaderTable()
public void setRowHeaderTable(boolean flag)
columnMarginChanged(javax.swing.event.ChangeEvent)public void columnMarginChanged(ChangeEvent e)
columnMarginChanged in interface TableColumnModelListenercolumnMarginChanged in class JTablepublic int getColumnIndexInView(int columnIndex)
public void changeSelection(int rowIndex,
int columnIndex,
boolean toggle,
boolean extend)
IlpTableView
containing this JTable.
changeSelection in class JTableJTable.changeSelection(int, int, boolean, boolean)
public boolean isCellSelected(int row,
int column)
IlpTableView containing this JTable.
isCellSelected in class JTableJTable.isCellSelected(int, int)
public TableCellRenderer getCellRenderer(int row,
int column)
getCellRenderer in class JTable
public TableCellEditor getCellEditor(int row,
int column)
getCellEditor in class JTable
public Component prepareRenderer(TableCellRenderer renderer,
int row,
int column)
IlpTableView containing this JTable.
prepareRenderer in class JTableJTable.isCellSelected(int, int)public void valueChanged(ListSelectionEvent e)
IlpTableView containing this JTable.
This method is invoked when the row selection changes -- repaints to show
the new selection.
The application code does not use these methods explicitly, they
are used internally by JTable.
valueChanged in interface ListSelectionListenervalueChanged in class JTablee - The event received.JTable.valueChanged(javax.swing.event.ListSelectionEvent)public void columnAdded(TableColumnModelEvent e)
Application code will not use these methods explicitly, they
are used internally by JTable.
Redefined here to make a little space for the new column inserted
at the end of the table when auto resize mode is
AUTO_RESIZE_LAST_COLUMN.
columnAdded in interface TableColumnModelListenercolumnAdded in class JTableTableColumnModelListenerpublic void columnRemoved(TableColumnModelEvent tableColumnModelEvent)
Application code will not use these methods explicitly, they are used internally by JTable. Redefined to resize the fixed column table if necessary
columnRemoved in interface TableColumnModelListenercolumnRemoved in class JTableTableColumnModelListenerpublic void sizeColumnsToFit(int resizingColumn)
JTable's
columns is equal to the width of the table.
See JTable.sizeColumnsToFit(boolean) for more information.
The method is redefined here to resize only the last column if auto
resize mode is AUTO_RESIZE_LAST_COLUMN even when
resizeColumn is equal to -1.
sizeColumnsToFit in class JTableresizingColumn - the column whose resizing made this adjustment
necessary or -1 if there is no such columnTableColumn.setWidth(int)public void scrollRectToVisible(Rectangle aRect)
scrollRectToVisible() message to the
table if it is a row header table. This fixes Sun's bug 4202002 :
JScrollPane: row header autoscrolling not reflected in content.
scrollRectToVisible in class JComponentaRect - the visible Rectangle|
| ||