📄 tableview.html
字号:
<A NAME="forwardUpdate(javax.swing.event.DocumentEvent.ElementChange, javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><!-- --></A><H3>forwardUpdate</H3><PRE>protected void <B>forwardUpdate</B>(<A HREF="../../../javax/swing/event/DocumentEvent.ElementChange.html">DocumentEvent.ElementChange</A> ec, <A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A> e, <A HREF="../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></CODE></B></DD><DD>Forward the given DocumentEvent to the child views that need to be notified of the change to the model. If a child changed it's requirements and the allocation was valid prior to forwarding the portion of the box from the starting child to the end of the box will be repainted.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/BoxView.html#forwardUpdate(javax.swing.event.DocumentEvent.ElementChange, javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">forwardUpdate</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></CODE></DL></DD><DD>Following copied from class: <CODE>javax.swing.text.BoxView</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ec</CODE> - changes to the element this view is responsible for (may be null if there were no changes).<DD><CODE>e</CODE> - the change information from the associated document<DD><CODE>a</CODE> - the current allocation of the view<DD><CODE>f</CODE> - the factory to use to rebuild if the view has children<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><CODE>View.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)</CODE></A>, <A HREF="../../../javax/swing/text/View.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><CODE>View.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)</CODE></A>, <A HREF="../../../javax/swing/text/View.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><CODE>View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)</CODE></A></DL></DD></DL><HR><A NAME="replace(int, int, javax.swing.text.View[])"><!-- --></A><H3>replace</H3><PRE>public void <B>replace</B>(int offset, int length, <A HREF="../../../javax/swing/text/View.html">View</A>[] views)</PRE><DL><DD>Change the child views. This is implemented to provide the superclass behavior and invalidate the grid so that rows and columns will be recalculated.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/BoxView.html#replace(int, int, javax.swing.text.View[])">replace</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></CODE></DL></DD><DD>Following copied from class: <CODE>javax.swing.text.BoxView</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the starting index into the child views to insert the new views. This should be a value >= 0 and <= getViewCount.<DD><CODE>length</CODE> - the number of existing child views to remove. This should be a value >= 0 and <= (getViewCount() - offset).<DD><CODE>views</CODE> - the child views to add. This value can be null to indicate no children are being added (useful to remove).</DL></DD></DL><HR><A NAME="layoutColumns(int, int[], int[], javax.swing.SizeRequirements[])"><!-- --></A><H3>layoutColumns</H3><PRE>protected void <B>layoutColumns</B>(int targetSpan, int[] offsets, int[] spans, <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A>[] reqs)</PRE><DL><DD>Layout the columns to fit within the given target span.<DD><DL><DT><B>Parameters:</B><DD><CODE>targetSpan</CODE> - the given span for total of all the table columns.<DD><CODE>reqs</CODE> - the requirements desired for each column. This is the column maximum of the cells minimum, preferred, and maximum requested span.<DD><CODE>spans</CODE> - the return value of how much to allocated to each column.<DD><CODE>offsets</CODE> - the return value of the offset from the origin for each column.</DL></DD></DL><HR><A NAME="layoutMinorAxis(int, int, int[], int[])"><!-- --></A><H3>layoutMinorAxis</H3><PRE>protected void <B>layoutMinorAxis</B>(int targetSpan, int axis, int[] offsets, int[] spans)</PRE><DL><DD>Perform layout for the minor axis of the box (i.e. the axis orthoginal to the axis that it represents). The results of the layout should be placed in the given arrays which represent the allocations to the children along the minor axis. This is called by the superclass whenever the layout needs to be updated along the minor axis. <p> This is implemented to call the <a href="#layoutColumns">layoutColumns</a> method, and then forward to the superclass to actually carry out the layout of the tables rows.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/BoxView.html#layoutMinorAxis(int, int, int[], int[])">layoutMinorAxis</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>targetSpan</CODE> - the total span given to the view, which whould be used to layout the children.<DD><CODE>axis</CODE> - the axis being layed out.<DD><CODE>offsets</CODE> - the offsets from the origin of the view for each of the child views. This is a return value and is filled in by the implementation of this method.<DD><CODE>spans</CODE> - the span of each child view. This is a return value and is filled in by the implementation of this method.</DL></DD></DL><HR><A NAME="calculateMinorAxisRequirements(int, javax.swing.SizeRequirements)"><!-- --></A><H3>calculateMinorAxisRequirements</H3><PRE>protected <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A> <B>calculateMinorAxisRequirements</B>(int axis, <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A> r)</PRE><DL><DD>Calculate the requirements for the minor axis. This is called by the superclass whenever the requirements need to be updated (i.e. a preferenceChanged was messaged through this view). <p> This is implemented to calculate the requirements as the sum of the requirements of the columns.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/BoxView.html#calculateMinorAxisRequirements(int, javax.swing.SizeRequirements)">calculateMinorAxisRequirements</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></CODE></DL></DD></DL><HR><A NAME="getViewAtPosition(int, java.awt.Rectangle)"><!-- --></A><H3>getViewAtPosition</H3><PRE>protected <A HREF="../../../javax/swing/text/View.html">View</A> <B>getViewAtPosition</B>(int pos, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> a)</PRE><DL><DD>Fetches the child view that represents the given position in the model. This is implemented to walk through the children looking for a range that contains the given position. In this view the children do not necessarily have a one to one mapping with the child elements.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/CompositeView.html#getViewAtPosition(int, java.awt.Rectangle)">getViewAtPosition</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pos</CODE> - the search position >= 0<DD><CODE>a</CODE> - the allocation to the table on entry, and the allocation of the view containing the position on exit</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TableView.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/swing/text/StyledEditorKit.UnderlineAction.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/swing/text/TableView.TableCell.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="TableView.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#fields_inherited_from_class_javax.swing.text.View">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -