Package docking.widgets
Interface GComponent
- All Known Implementing Classes:
AbstractGCellRenderer
,AbstractGColumnRenderer
,AbstractGhidraColumnRenderer
,AbstractHtmlLabel
,ClearFilterLabel
,CodeUnitTableCellRenderer
,CompositeGhidraTableCellRenderer
,DefaultTableCellRendererWrapper
,DefaultTimestampRenderer
,DockingMenuItem
,DropDownMultiSelectionTextField
,DropDownSelectionTextField
,DropDownTextField
,DropDownTextField.DropDownList
,GBooleanCellRenderer
,GCheckBox
,GComboBox
,GComboBoxCellRenderer
,GDHtmlLabel
,GDLabel
,GenericDateCellRenderer
,GhidraComboBox
,GhidraTableCellRenderer
,GHtmlCheckBox
,GHtmlLabel
,GIconLabel
,GLabel
,GList
,GListCellRenderer
,GRadioButton
,GTableCellRenderer
,GTreeRenderer
,HiddenValuesButton
,LogLevelTableCellRenderer
,LongRenderer
,MonospacedByteRenderer
,PreviewDataTableCellRenderer
,StatusBarSpacer
public interface GComponent
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returns the current HTML rendering enablement of this component.default void
setHTMLRenderingEnabled
(boolean enabled) Enables and disables the rendering of HTML content in this component.static void
setHTMLRenderingFlag
(JComponent comp, boolean enabled) Sets the HTML rendering flag for the specified component.static void
warnAboutHtmlText
(String text) Helper function that logs a warning about a string text that looks like it has HTML text.
-
Field Details
-
HTML_DISABLE_STRING
- See Also:
-
-
Method Details
-
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
-
isHTMLRenderingEnabled
default boolean isHTMLRenderingEnabled()Returns the current HTML rendering enablement of this component.- Returns:
- boolean, true if HTML rendering is allowed
-
warnAboutHtmlText
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
Sets the HTML rendering flag for the specified component.- Parameters:
comp
- the thingenabled
- boolean, if true html rendering will be allowed
-