swing/src/net/sf/xframe/swing JXTable.java,1.26,1.27

Kurt Riede <[email protected]> Wed, 29 Jun 2005 20:54:52 +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-serv25954/src/net/sf/xframe/swing

Modified Files:
	JXTable.java 
Log Message:
JavaDoc updates

Index: JXTable.java
===================================================================
RCS file: /cvsroot/xframe/swing/src/net/sf/xframe/swing/JXTable.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** JXTable.java	31 May 2005 23:38:55 -0000	1.26
--- JXTable.java	29 Jun 2005 20:54:50 -0000	1.27
***************
*** 41,44 ****
--- 41,45 ----
  import java.util.EventListener;
  import java.util.EventObject;
+ 
  import javax.accessibility.Accessible;
  import javax.swing.AbstractAction;
***************
*** 63,66 ****
--- 64,68 ----
  import javax.swing.event.TableModelEvent;
  import javax.swing.event.TableModelListener;
+ import javax.swing.plaf.ScrollPaneUI;
  import javax.swing.plaf.TableUI;
  import javax.swing.table.DefaultTableColumnModel;
***************
*** 72,75 ****
--- 74,78 ----
  import javax.swing.table.TableColumnModel;
  import javax.swing.table.TableModel;
+ 
  import net.sf.xframe.swing.scroll.JScrollPaneAdjuster;
  import net.sf.xframe.swing.table.ColumnGroupHeader;
***************
*** 347,355 ****
      }
  
!     public JScrollPane getScrollPane()
!     {
          return scrollPane;
      }
!     
      /**
       * Adjusts the action maps of the two tables to allow proper navigation
--- 350,362 ----
      }
  
!     /**
!      * Returns the underlying scroll pane.
!      *
!      * @return the underlying scroll pane
!      */
!     public JScrollPane getScrollPane() {
          return scrollPane;
      }
! 
      /**
       * Adjusts the action maps of the two tables to allow proper navigation
***************
*** 770,774 ****
              return lockedTable.getEditingRow();
          }
-         
          return scrollTable.getEditingRow();
      }
--- 777,780 ----
***************
*** 2055,2061 ****
          return scrollPane.getHorizontalScrollBarPolicy();
      }
!     
      /**
!      * Determines when the vertical scrollbar appears in the scrollpane. 
       * Legal values are:
       * <ul>
--- 2061,2067 ----
          return scrollPane.getHorizontalScrollBarPolicy();
      }
! 
      /**
!      * Determines when the vertical scrollbar appears in the scrollpane.
       * Legal values are:
       * <ul>
***************
*** 2066,2077 ****
       *
       * @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.
--- 2072,2083 ----
       *
       * @param policy one of the three values listed above
!      * @throws IllegalArgumentException if <code>policy</code> 
       *				is not one of the legal values shown above
       * @see #getVerticalScrollBarPolicy
       */
!     public void setVerticalScrollBarPolicy(final int policy) throws IllegalArgumentException {
          scrollPane.setVerticalScrollBarPolicy(policy);
      }
! 
      /**
       * Returns the vertical scroll bar policy value.
***************
*** 2505,2513 ****
          if (index1 < frozenColumns) {
              final int count = scrollTable.getColumnCount();
!             if (count>0) scrollTable.removeColumnSelectionInterval(0, count-1);
              lockedTable.setColumnSelectionInterval(index0, index1);
          } else if (index0 >= frozenColumns) {
              final int count = lockedTable.getColumnCount();
!             if (count>0) lockedTable.removeColumnSelectionInterval(0, count-1);
              scrollTable.setColumnSelectionInterval(index0 - frozenColumns, index1 - frozenColumns);
          } else {
--- 2511,2521 ----
          if (index1 < frozenColumns) {
              final int count = scrollTable.getColumnCount();
!             if (count > 0) scrollTable.removeColumnSelectionInterval(0, count-1);
              lockedTable.setColumnSelectionInterval(index0, index1);
          } else if (index0 >= frozenColumns) {
              final int count = lockedTable.getColumnCount();
!             if (count > 0) {
!             	lockedTable.removeColumnSelectionInterval(0, count-1);
!             }
              scrollTable.setColumnSelectionInterval(index0 - frozenColumns, index1 - frozenColumns);
          } else {
***************
*** 3021,3038 ****
          return AWTEventMulticaster.getListeners(l, listenerType);
      }
!     
!     /* (non-Javadoc)
       * @see javax.swing.JComponent#setBackground(java.awt.Color)
       */
!     public void setBackground(Color bg)
!     {
          scrollPane.setBackground(bg);
      }
!     
!     /* (non-Javadoc)
       * @see javax.swing.JComponent#setOpaque(boolean)
       */
!     public void setOpaque(boolean isOpaque)
!     {
          scrollPane.setOpaque(isOpaque);
      }
--- 3029,3044 ----
          return AWTEventMulticaster.getListeners(l, listenerType);
      }
! 
!     /**
       * @see javax.swing.JComponent#setBackground(java.awt.Color)
       */
!     public void setBackground(Color bg) {
          scrollPane.setBackground(bg);
      }
! 
!     /**
       * @see javax.swing.JComponent#setOpaque(boolean)
       */
!     public void setOpaque(boolean isOpaque) {
          scrollPane.setOpaque(isOpaque);
      }
***************
*** 3154,3156 ****
--- 3160,3169 ----
          }
      }
+ 
+     /**
+      * @see javax.swing.JScrollPane#setUI(javax.swing.plaf.ScrollPaneUI)
+      */
+     public void setScrollPaneUI(final ScrollPaneUI scrollpaneui) {
+ 		scrollPane.setUI(scrollpaneui);
+ 	}
  }



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click