Class SelectReadOnlyText
java.lang.Object
com.marginallyclever.donatello.select.Select
com.marginallyclever.donatello.select.SelectReadOnlyText
Read only JEditorPane with an HyperlinkListener for text/html, contening or not, multiple html link.
With clickable link (Desktop.BROWSE) and ToolTips when hovered over.
- Since:
- 7.24.0
- Author:
- Dan Royer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attach
(JComponent panel, GridBagConstraints gbc) static JEditorPane
createJEditorPaneWithHyperlinkListenerAndToolTipsForDesktopBrowse
(String sToSetAsTextToTheHtmlEditorPane) Create a JEditorPane not editable for text/html contente, with an HyperLinkListener to Desktop Browse (when clicked) and show a ToolTips with the URL hovered.void
setReadOnly
(boolean state) Methods inherited from class com.marginallyclever.donatello.select.Select
addSelectListener, getName, removeSelectListener, setName
-
Constructor Details
-
SelectReadOnlyText
-
-
Method Details
-
attach
-
setReadOnly
public void setReadOnly(boolean state) - Specified by:
setReadOnly
in classSelect
-
createJEditorPaneWithHyperlinkListenerAndToolTipsForDesktopBrowse
public static JEditorPane createJEditorPaneWithHyperlinkListenerAndToolTipsForDesktopBrowse(String sToSetAsTextToTheHtmlEditorPane) Create a JEditorPane not editable for text/html contente, with an HyperLinkListener to Desktop Browse (when clicked) and show a ToolTips with the URL hovered.- Parameters:
sToSetAsTextToTheHtmlEditorPane
-- Returns:
-