📄 viewfactory.html
字号:
<BR> Fetches a factory that is suitable for producing views of any models that are produced by this kit.</TD></TR></TABLE> <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> 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> e, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> e, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> e, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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 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> ec, <A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A> e, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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 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> 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)</CODE><BR> 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 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> v, <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)</CODE><BR> 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 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> f)</CODE><BR> 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> 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> e, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> e, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> e, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> e, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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 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> 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)</CODE><BR> 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 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> f)</CODE><BR> 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> 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> changes, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> changes, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> changes, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> changes, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> changes, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> changes, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> changes, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE><BR> 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> 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> changes, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A> f)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -