|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JTable
|
+--uic.widgets.MWTable
A replacement for the JTable to make the programmers life a lot easier.
This table uses various settings by default that makes your table look
quite finished without any tweaking.
On top of that the table provides tooltips per row and provides getters
for the various models a table uses, which tend te get quite confusing in the
original JTable.
Specific changes;
| 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 | |
MWTable()
|
|
MWTable(TableModel tm)
|
|
| Method Summary | |
void |
clearToolTipTexts()
Remove all row specific tooltiptexts |
DefaultTableModel |
getDataModel()
Get the data model which you need to use to alter the data of this table. |
TableCellRenderer |
getDefaultRenderer(Class columnClass)
|
String |
getToolTipText(MouseEvent evt)
Override the getToolTipText from JTable to check for row specific tooltip texts first. |
uic.widgets.TableViewInterface |
getViewModel()
Get the (top) view model. |
uic.widgets.TableViewInterface |
getViewModel(Class modelClass)
Get the (top) view model. |
void |
setFont(Font f)
Override setfont to adjust the rowheight |
void |
setToolTipText(String text,
int row)
Set the tooltip text per row. |
void |
sizeColumnsToFit(int resizingColumn)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MWTable(TableModel tm)
public MWTable()
| Method Detail |
public TableCellRenderer getDefaultRenderer(Class columnClass)
getDefaultRenderer in class JTablepublic String getToolTipText(MouseEvent evt)
getToolTipText in class JTable
public void setToolTipText(String text,
int row)
text - the tooltiptextrow - the row this tooltip is meant forpublic void clearToolTipTexts()
public DefaultTableModel getDataModel()
public uic.widgets.TableViewInterface getViewModel()
public uic.widgets.TableViewInterface getViewModel(Class modelClass)
public void sizeColumnsToFit(int resizingColumn)
sizeColumnsToFit in class JTablepublic void setFont(Font f)
setFont in class JComponentf - the new font settings
fix swing bug 27
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||