swing/src/net/sf/xframe/swing JXTable.java, 1.32, 1.33
Kurt Riede <[email protected]> Fri, 15 Feb 2008 11:24:39 +0000
| Newsgroups | gmane.text.xml.xframe.xsddoc.devel |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xframe/swing/src/net/sf/xframe/swing
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv25624/src/net/sf/xframe/swing
Modified Files:
JXTable.java
Log Message:
checkstyle and findbugs settings corrected, all checkstyle and findbugs problems resolved
Index: JXTable.java
===================================================================
RCS file: /cvsroot/xframe/swing/src/net/sf/xframe/swing/JXTable.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** JXTable.java 25 Apr 2006 20:13:28 -0000 1.32
--- JXTable.java 15 Feb 2008 11:24:37 -0000 1.33
***************
*** 95,98 ****
--- 95,101 ----
CellEditorListener, Accessible {
+ /** serial version ID for serialization. */
+ private static final long serialVersionUID = 1L;
+
/**
* Used to set the horizontal scroll bar policy so that
***************
*** 1992,1996 ****
*/
public void setFont(final Font f) {
- final double f12 = 1d + (2d / (2d + 2d + 2d + 2d + 2d)); // 1.2
lockedTable.setFont(f);
scrollTable.setFont(f);
--- 1995,1998 ----
***************
*** 2001,2005 ****
height = (int) (rectangle2D.getHeight() + 1);
} else {
! height = (int) (f.getSize() * f12 + 2 * lockedTable.getRowMargin());
}
lockedTable.setRowHeight(height);
--- 2003,2007 ----
height = (int) (rectangle2D.getHeight() + 1);
} else {
! height = (int) (f.getSize() * 1.2 + 2 * lockedTable.getRowMargin());
}
lockedTable.setRowHeight(height);
***************
*** 2091,2094 ****
--- 2093,2098 ----
*/
private final class ScrollFirstAction extends AbstractAction {
+ /** serial version ID for serialization. */
+ private static final long serialVersionUID = 1L;
/** the original action. */
private final Action originalAction;
***************
*** 2114,2117 ****
--- 2118,2123 ----
*/
private final class LockedLastAction extends AbstractAction {
+ /** serial version ID for serialization. */
+ private static final long serialVersionUID = 1L;
/** the original action. */
private final Action originalAction;
***************
*** 2138,2141 ****
--- 2144,2149 ----
*/
private final class LockedNextAction extends AbstractAction {
+ /** serial version ID for serialization. */
+ private static final long serialVersionUID = 1L;
/** the original action. */
private final Action originalAction;
***************
*** 2161,2164 ****
--- 2169,2174 ----
*/
private final class ScrollNextAction extends AbstractAction {
+ /** serial version ID for serialization. */
+ private static final long serialVersionUID = 1L;
/** the original action. */
private final Action originalAction;
***************
*** 2184,2187 ****
--- 2194,2199 ----
*/
private final class ScrollPreviousAction extends AbstractAction {
+ /** serial version ID for serialization. */
+ private static final long serialVersionUID = 1L;
/** the original action. */
private final Action originalAction;
***************
*** 2207,2210 ****
--- 2219,2224 ----
*/
private final class LockedPreviousAction extends AbstractAction {
+ /** serial version ID for serialization. */
+ private static final long serialVersionUID = 1L;
/** the original action. */
private final Action originalAction;
***************
*** 2238,2241 ****
--- 2252,2258 ----
* the column model of the <code>JTableHeader</code> to <code>columnModel</code>.
*
+ * <p>If a JXTable should be serializable, the provided table model must
+ * also be serializable.</p>
+ *
* @param cm the new data source for this table
* @exception IllegalArgumentException if <code>columnModel</code> is <code>null</code>
***************
*** 3016,3020 ****
* @see #getMouseListeners
*/
! public EventListener[] getListeners(final Class listenerType) {
final EventListener l;
if (listenerType == MouseListener.class) {
--- 3033,3037 ----
* @see #getMouseListeners
*/
! public synchronized EventListener[] getListeners(final Class listenerType) {
final EventListener l;
if (listenerType == MouseListener.class) {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/