|
||||||||||
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.UICTable
public class UICTable
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;
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 | |
---|---|
UICTable()
Default constructor |
|
UICTable(TableModel tm)
Constructor using a table model |
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. |
TableViewInterface |
getViewModel()
Get the (top) view model. |
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 UICTable()
public UICTable(TableModel tm)
Method Detail |
---|
public TableCellRenderer getDefaultRenderer(Class columnClass)
getDefaultRenderer
in class JTable
public 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 TableViewInterface getViewModel()
public TableViewInterface getViewModel(Class modelClass)
modelClass
- the class which the model has in its inheritance tree.
public void sizeColumnsToFit(int resizingColumn)
sizeColumnsToFit
in class JTable
public void setFont(Font f)
setFont
in class JComponent
f
- the new font settings
fix swing bug 27
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |