swing/src/net/sf/xframe/swing JXTable.java,1.17,1.18

I?aqui Medina <[email protected]> Mon, 16 May 2005 16:26:44 +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-cvs1.sourceforge.net:/tmp/cvs-serv32315/src/net/sf/xframe/swing

Modified Files:
	JXTable.java 
Log Message:
Completion of fix for bug 1177993 and  fix for bug 1202938

Index: JXTable.java
===================================================================
RCS file: /cvsroot/xframe/swing/src/net/sf/xframe/swing/JXTable.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** JXTable.java	10 May 2005 11:36:32 -0000	1.17
--- JXTable.java	16 May 2005 16:26:41 -0000	1.18
***************
*** 2047,2050 ****
--- 2047,2077 ----
          return scrollPane.getHorizontalScrollBarPolicy();
      }
+     
+     /**
+      * Determines when the vertical scrollbar appears in the scrollpane. 
+      * Legal values are:
+      * <ul>
+      * <li>JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED
+      * <li>JScrollPane.VERTICAL_SCROLLBAR_NEVER
+      * <li>JScrollPane.VERTICAL_SCROLLBAR_ALWAYS
+      * </ul>
+      *
+      * @param policy one of the three values listed above
+      * @exception IllegalArgumentException if <code>policy</code> 
+      *				is not one of the legal values shown above
+      * @see #getVerticalScrollBarPolicy
+      */
+     public void setVerticalScrollBarPolicy(final int policy) {
+         scrollPane.setVerticalScrollBarPolicy(policy);
+     }
+     
+     /**
+      * Returns the vertical scroll bar policy value.
+      * @return the <code>verticalScrollBarPolicy</code> property
+      * @see #setVerticalScrollBarPolicy
+      */
+     public int getVerticalScrollBarPolicy() {
+         return scrollPane.getVerticalScrollBarPolicy();
+     }
  
      /**
***************
*** 2740,2743 ****
--- 2767,2783 ----
          getScrollTable().setTransferHandler(newHandler);
      }
+     
+     /**
+      * Gets the <code>transferHandler</code> property.
+      *
+      * @return  the value of the <code>transferHandler</code> property
+      *
+      * @see TransferHandler
+      * @see #setTransferHandler
+      */
+     public TransferHandler getTransferHandler() {
+         //Both KTables should have the same handler. Return any of those.
+         return getLockedTable().getTransferHandler();
+     }
  
      /**



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click