jdk/src/share/classes/javax/swing/text/html/TableView.java
changeset 21278 ef8a3a2a72f2
parent 10320 fb28887eb9f2
child 23010 6dadb192ad81
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   618         return r;
   618         return r;
   619     }
   619     }
   620 
   620 
   621     /**
   621     /**
   622      * Perform layout for the minor axis of the box (i.e. the
   622      * Perform layout for the minor axis of the box (i.e. the
   623      * axis orthoginal to the axis that it represents).  The results
   623      * axis orthogonal to the axis that it represents).  The results
   624      * of the layout should be placed in the given arrays which represent
   624      * of the layout should be placed in the given arrays which represent
   625      * the allocations to the children along the minor axis.  This
   625      * the allocations to the children along the minor axis.  This
   626      * is called by the superclass whenever the layout needs to be
   626      * is called by the superclass whenever the layout needs to be
   627      * updated along the minor axis.
   627      * updated along the minor axis.
   628      * <p>
   628      * <p>
   630      * <a href="#layoutColumns">layoutColumns</a> method, and then
   630      * <a href="#layoutColumns">layoutColumns</a> method, and then
   631      * forward to the superclass to actually carry out the layout
   631      * forward to the superclass to actually carry out the layout
   632      * of the tables rows.
   632      * of the tables rows.
   633      *
   633      *
   634      * @param targetSpan the total span given to the view, which
   634      * @param targetSpan the total span given to the view, which
   635      *  whould be used to layout the children
   635      *  would be used to layout the children
   636      * @param axis the axis being layed out
   636      * @param axis the axis being layed out
   637      * @param offsets the offsets from the origin of the view for
   637      * @param offsets the offsets from the origin of the view for
   638      *  each of the child views.  This is a return value and is
   638      *  each of the child views.  This is a return value and is
   639      *  filled in by the implementation of this method
   639      *  filled in by the implementation of this method
   640      * @param spans the span of each child view;  this is a return
   640      * @param spans the span of each child view;  this is a return
   673      * table takes place.  This method is implemented to call the use
   673      * table takes place.  This method is implemented to call the use
   674      * the RowIterator and the CSS collapsing tile to layout
   674      * the RowIterator and the CSS collapsing tile to layout
   675      * with border spacing and border collapsing capabilities.
   675      * with border spacing and border collapsing capabilities.
   676      *
   676      *
   677      * @param targetSpan the total span given to the view, which
   677      * @param targetSpan the total span given to the view, which
   678      *  whould be used to layout the children
   678      *  would be used to layout the children
   679      * @param axis the axis being layed out
   679      * @param axis the axis being layed out
   680      * @param offsets the offsets from the origin of the view for
   680      * @param offsets the offsets from the origin of the view for
   681      *  each of the child views; this is a return value and is
   681      *  each of the child views; this is a return value and is
   682      *  filled in by the implementation of this method
   682      *  filled in by the implementation of this method
   683      * @param spans the span of each child view; this is a return
   683      * @param spans the span of each child view; this is a return
  1167                 adjustments = null;
  1167                 adjustments = null;
  1168             }
  1168             }
  1169         }
  1169         }
  1170 
  1170 
  1171         /**
  1171         /**
  1172          * Fixup preferences to accomodate a multi-row table cell
  1172          * Fixup preferences to accommodate a multi-row table cell
  1173          * if not already covered by existing preferences.  This is
  1173          * if not already covered by existing preferences.  This is
  1174          * a no-op if not all of the rows needed (to do this check/fixup)
  1174          * a no-op if not all of the rows needed (to do this check/fixup)
  1175          * have arrived yet.
  1175          * have arrived yet.
  1176          */
  1176          */
  1177         void adjustMultiRowSpan(int spanNeeded, int nrows, int rowIndex) {
  1177         void adjustMultiRowSpan(int spanNeeded, int nrows, int rowIndex) {
  1521          * This is re-implemented to give each child the span of the column
  1521          * This is re-implemented to give each child the span of the column
  1522          * width for the table, and to give cells that span multiple columns
  1522          * width for the table, and to give cells that span multiple columns
  1523          * the multi-column span.
  1523          * the multi-column span.
  1524          *
  1524          *
  1525          * @param targetSpan the total span given to the view, which
  1525          * @param targetSpan the total span given to the view, which
  1526          *  whould be used to layout the children
  1526          *  would be used to layout the children
  1527          * @param axis the axis being layed out
  1527          * @param axis the axis being layed out
  1528          * @param offsets the offsets from the origin of the view for
  1528          * @param offsets the offsets from the origin of the view for
  1529          *  each of the child views; this is a return value and is
  1529          *  each of the child views; this is a return value and is
  1530          *  filled in by the implementation of this method
  1530          *  filled in by the implementation of this method
  1531          * @param spans the span of each child view; this is a return
  1531          * @param spans the span of each child view; this is a return
  1562             }
  1562             }
  1563         }
  1563         }
  1564 
  1564 
  1565         /**
  1565         /**
  1566          * Perform layout for the minor axis of the box (i.e. the
  1566          * Perform layout for the minor axis of the box (i.e. the
  1567          * axis orthoginal to the axis that it represents).  The results
  1567          * axis orthogonal to the axis that it represents).  The results
  1568          * of the layout should be placed in the given arrays which represent
  1568          * of the layout should be placed in the given arrays which represent
  1569          * the allocations to the children along the minor axis.  This
  1569          * the allocations to the children along the minor axis.  This
  1570          * is called by the superclass whenever the layout needs to be
  1570          * is called by the superclass whenever the layout needs to be
  1571          * updated along the minor axis.
  1571          * updated along the minor axis.
  1572          * <p>
  1572          * <p>
  1573          * This is implemented to delegate to the superclass, then adjust
  1573          * This is implemented to delegate to the superclass, then adjust
  1574          * the span for any cell that spans multiple rows.
  1574          * the span for any cell that spans multiple rows.
  1575          *
  1575          *
  1576          * @param targetSpan the total span given to the view, which
  1576          * @param targetSpan the total span given to the view, which
  1577          *  whould be used to layout the children
  1577          *  would be used to layout the children
  1578          * @param axis the axis being layed out
  1578          * @param axis the axis being layed out
  1579          * @param offsets the offsets from the origin of the view for
  1579          * @param offsets the offsets from the origin of the view for
  1580          *  each of the child views; this is a return value and is
  1580          *  each of the child views; this is a return value and is
  1581          *  filled in by the implementation of this method
  1581          *  filled in by the implementation of this method
  1582          * @param spans the span of each child view; this is a return
  1582          * @param spans the span of each child view; this is a return
  1714          * tile the children.  If the target span is greater than
  1714          * tile the children.  If the target span is greater than
  1715          * was needed, the offsets are adjusted to align the children
  1715          * was needed, the offsets are adjusted to align the children
  1716          * (i.e. position according to the html valign attribute).
  1716          * (i.e. position according to the html valign attribute).
  1717          *
  1717          *
  1718          * @param targetSpan the total span given to the view, which
  1718          * @param targetSpan the total span given to the view, which
  1719          *  whould be used to layout the children
  1719          *  would be used to layout the children
  1720          * @param axis the axis being layed out
  1720          * @param axis the axis being layed out
  1721          * @param offsets the offsets from the origin of the view for
  1721          * @param offsets the offsets from the origin of the view for
  1722          *  each of the child views; this is a return value and is
  1722          *  each of the child views; this is a return value and is
  1723          *  filled in by the implementation of this method
  1723          *  filled in by the implementation of this method
  1724          * @param spans the span of each child view; this is a return
  1724          * @param spans the span of each child view; this is a return