Package docking.widgets
Interface GComponent
-
- All Known Implementing Classes:
AbstractGCellRenderer
,AbstractGColumnRenderer
,AbstractGhidraColumnRenderer
,ClearFilterLabel
,CodeUnitTableCellRenderer
,CompositeGhidraTableCellRenderer
,DefaultTableCellRendererWrapper
,DefaultTimestampRenderer
,DockingMenuItem
,DropDownMultiSelectionTextField
,DropDownSelectionTextField
,DropDownTextField
,GBooleanCellRenderer
,GCheckBox
,GComboBox
,GDHtmlLabel
,GDLabel
,GenericDateCellRenderer
,GhidraComboBox
,GhidraTableCellRenderer
,GHtmlCheckBox
,GHtmlLabel
,GIconLabel
,GLabel
,GList
,GListCellRenderer
,GRadioButton
,GTableCellRenderer
,GTreeRenderer
,LogLevelTableCellRenderer
,LongRenderer
,PreviewDataTableCellRenderer
,StatusBarSpacer
public interface GComponent
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HTML_DISABLE_STRING
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
getHTMLRenderingEnabled()
Returns the current HTML rendering 'enable-ment' of this component.default void
setHTMLRenderingEnabled(boolean enabled)
Enables and disables the rendering of HTML content in this component.static void
setHTMLRenderingFlag(javax.swing.JComponent comp, boolean enabled)
Sets the HTML rendering flag for the specified component.static void
warnAboutHtmlText(java.lang.String text)
Helper function that logs a warning about a string text that looks like it has HTML text.
-
-
-
Field Detail
-
HTML_DISABLE_STRING
static final java.lang.String HTML_DISABLE_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHTMLRenderingEnabled
default void setHTMLRenderingEnabled(boolean enabled)
Enables and disables the rendering of HTML content in this component. If enabled, this component will interpret HTML content when the text this component is showing begins with<html>
- Parameters:
enabled
- true to enable HTML rendering; false to disable it
-
getHTMLRenderingEnabled
default boolean getHTMLRenderingEnabled()
Returns the current HTML rendering 'enable-ment' of this component.- Returns:
- boolean, true if HTML rendering is allowed
-
warnAboutHtmlText
static void warnAboutHtmlText(java.lang.String text)
Helper function that logs a warning about a string text that looks like it has HTML text.Use this when working with a string in a label that has already disabled HTML rendering.
- Parameters:
text
- string to test for HTML and warn about
-
setHTMLRenderingFlag
static void setHTMLRenderingFlag(javax.swing.JComponent comp, boolean enabled)
Sets the HTML rendering flag for the specified component.- Parameters:
comp
- the thingenabled
- boolean, if true html rendering will be allowed
-
-