Class AbstractParser
- java.lang.Object
-
- org.fife.ui.rsyntaxtextarea.parser.AbstractParser
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractParser()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendedHyperlinkListener
getHyperlinkListener()
Returns the listener for hyperlink events fromFocusableTip
s, ornull
if none.URL
getImageBase()
Returnsnull
.boolean
isEnabled()
Returns whether this parser is enabled.void
setEnabled(boolean enabled)
Toggles whether this parser is enabled.void
setHyperlinkListener(ExtendedHyperlinkListener listener)
Returns the listener for this parser.
-
-
-
Method Detail
-
getHyperlinkListener
public ExtendedHyperlinkListener getHyperlinkListener()
Returns the listener for hyperlink events fromFocusableTip
s, ornull
if none.- Specified by:
getHyperlinkListener
in interfaceParser
- Returns:
- The listener.
-
getImageBase
public URL getImageBase()
Returnsnull
. Parsers that wish to show images in their tool tips should override this method to return the image base URL.- Specified by:
getImageBase
in interfaceParser
- Returns:
null
always.
-
isEnabled
public boolean isEnabled()
Returns whether this parser is enabled. If this returnsfalse
, it will not be run.
-
setEnabled
public void setEnabled(boolean enabled)
Toggles whether this parser is enabled.- Parameters:
enabled
- Whether this parser is enabled.- See Also:
isEnabled()
-
setHyperlinkListener
public void setHyperlinkListener(ExtendedHyperlinkListener listener)
Returns the listener for this parser.- Parameters:
listener
- The new listener.- See Also:
getHyperlinkListener()
-
-