⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 viewfactory.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches a factory that is suitable for producing  views of any models that are produced by this kit.</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> with parameters of type <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>View.</B><B><A HREF="../../../../javax/swing/text/View.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,             <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,             <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification that something was inserted into  the document in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>View.</B><B><A HREF="../../../../javax/swing/text/View.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,             <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,             <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification that something was removed from the document in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>View.</B><B><A HREF="../../../../javax/swing/text/View.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,              <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,              <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification from the document that attributes were changed in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B>View.</B><B><A HREF="../../../../javax/swing/text/View.html#updateChildren(javax.swing.event.DocumentEvent.ElementChange, javax.swing.event.DocumentEvent, javax.swing.text.ViewFactory)">updateChildren</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.ElementChange.html">DocumentEvent.ElementChange</A>&nbsp;ec,               <A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,               <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the child views in response to receiving notification that the model changed, and there is change record for the  element this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>View.</B><B><A HREF="../../../../javax/swing/text/View.html#forwardUpdate(javax.swing.event.DocumentEvent.ElementChange, javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">forwardUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.ElementChange.html">DocumentEvent.ElementChange</A>&nbsp;ec,              <A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,              <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,              <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forward the given DocumentEvent to the child views that need to be notified of the change to the model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>View.</B><B><A HREF="../../../../javax/swing/text/View.html#forwardUpdateToView(javax.swing.text.View, javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">forwardUpdateToView</A></B>(<A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;v,                    <A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,                    <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,                    <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forward the DocumentEvent to the give child view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>CompositeView.</B><B><A HREF="../../../../javax/swing/text/CompositeView.html#loadChildren(javax.swing.text.ViewFactory)">loadChildren</A></B>(<A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads all of the children to initialize the view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>GlyphView.</B><B><A HREF="../../../../javax/swing/text/GlyphView.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,             <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,             <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification that something was inserted into  the document in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>GlyphView.</B><B><A HREF="../../../../javax/swing/text/GlyphView.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,             <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,             <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification that something was removed from the document in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>GlyphView.</B><B><A HREF="../../../../javax/swing/text/GlyphView.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,              <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,              <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification from the document that attributes were changed in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>LabelView.</B><B><A HREF="../../../../javax/swing/text/LabelView.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,              <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,              <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification from the document that attributes were changed in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>BoxView.</B><B><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></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.ElementChange.html">DocumentEvent.ElementChange</A>&nbsp;ec,              <A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,              <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,              <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forward the given DocumentEvent to the child views that need to be notified of the change to the model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>FlowView.</B><B><A HREF="../../../../javax/swing/text/FlowView.html#loadChildren(javax.swing.text.ViewFactory)">loadChildren</A></B>(<A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads all of the children to initialize the view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>FlowView.</B><B><A HREF="../../../../javax/swing/text/FlowView.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,             <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,             <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification that something was inserted into the document in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>FlowView.</B><B><A HREF="../../../../javax/swing/text/FlowView.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,             <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,             <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification that something was removed from the document in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>FlowView.</B><B><A HREF="../../../../javax/swing/text/FlowView.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,              <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,              <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification from the document that attributes were changed in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>ParagraphView.</B><B><A HREF="../../../../javax/swing/text/ParagraphView.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,              <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,              <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification from the document that attributes were changed in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>PlainView.</B><B><A HREF="../../../../javax/swing/text/PlainView.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,             <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,             <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification that something was inserted into the document in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>PlainView.</B><B><A HREF="../../../../javax/swing/text/PlainView.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,             <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,             <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification that something was removed from the document in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>PlainView.</B><B><A HREF="../../../../javax/swing/text/PlainView.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,              <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,              <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification from the document that attributes were changed in a location that this view is responsible for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>FieldView.</B><B><A HREF="../../../../javax/swing/text/FieldView.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,             <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,             <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -