📄 jeditorpane.html
字号:
<TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getContentType()">getContentType</A></B>()</CODE><BR> Gets the type of content that this editor is currently set to deal with.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getEditorKit()">getEditorKit</A></B>()</CODE><BR> Fetches the currently installed kit for handling content.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getEditorKitClassNameForContentType(java.lang.String)">getEditorKitClassNameForContentType</A></B>(<A HREF="../../java/lang/String.html">String</A> type)</CODE><BR> Returns the currently registered <code>EditorKit</code> class name for the type <code>type</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getEditorKitForContentType(java.lang.String)">getEditorKitForContentType</A></B>(<A HREF="../../java/lang/String.html">String</A> type)</CODE><BR> Fetches the editor kit to use for the given type of content.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/net/URL.html">URL</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getPage()">getPage</A></B>()</CODE><BR> Gets the current URL being displayed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getPreferredSize()">getPreferredSize</A></B>()</CODE><BR> Returns the preferred size for the <code>JEditorPane</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getScrollableTracksViewportHeight()">getScrollableTracksViewportHeight</A></B>()</CODE><BR> Returns true if a viewport should always force the height of this <code>Scrollable</code> to match the height of the viewport.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getScrollableTracksViewportWidth()">getScrollableTracksViewportWidth</A></B>()</CODE><BR> Returns true if a viewport should always force the width of this <code>Scrollable</code> to match the width of the viewport.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/io/InputStream.html">InputStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getStream(java.net.URL)">getStream</A></B>(<A HREF="../../java/net/URL.html">URL</A> page)</CODE><BR> Fetches a stream for the given URL, which is about to be loaded by the <code>setPage</code> method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getText()">getText</A></B>()</CODE><BR> Returns the text contained in this <code>TextComponent</code> in terms of the content type of this editor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#getUIClassID()">getUIClassID</A></B>()</CODE><BR> Gets the class ID for the UI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#isFocusCycleRoot()">isFocusCycleRoot</A></B>()</CODE><BR> Makes <code>JEditorPane</code> be the root of a focus cycle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#isManagingFocus()">isManagingFocus</A></B>()</CODE><BR> Turns off tab traversal once focus is gained.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JEditorPane.html#paramString()">paramString</A></B>()</CODE><BR> Returns a string representation of this <code>JEditorPane</code>.</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><A HREF="../../javax/swing/JEditorPane.html#processComponentKeyEvent(java.awt.event.KeyEvent)">processComponentKeyEvent</A></B>(<A HREF="../../java/awt/event/KeyEvent.html">KeyEvent</A> e)</CODE><BR> Overridden to handle processing of tab/shift tab.</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><A HREF="../../javax/swing/JEditorPane.html#processKeyEvent(java.awt.event.KeyEvent)">processKeyEvent</A></B>(<A HREF="../../java/awt/event/KeyEvent.html">KeyEvent</A> e)</CODE><BR> Make sure that TAB and Shift-TAB events get consumed, so that awt doesn't attempt focus traversal.</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><A HREF="../../javax/swing/JEditorPane.html#read(java.io.InputStream, java.lang.Object)">read</A></B>(<A HREF="../../java/io/InputStream.html">InputStream</A> in, <A HREF="../../java/lang/Object.html">Object</A> desc)</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -