HelpModel
DefaultHelpModel
public interface TextHelpModel extends HelpModel
Modifier and Type | Interface | Description |
---|---|---|
static interface |
TextHelpModel.Highlight |
This is very similar to javax.swing.text.Highlighter.Highlight
except that it does not use the notion of HighlightPainter.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addHighlight(int pos0,
int pos1) |
Adds a highlight to a range of positions in a document.
|
void |
addTextHelpModelListener(TextHelpModelListener l) |
Adds a listener for a TextHelpModel.
|
java.lang.String |
getDocumentTitle() |
Gets the title of the document.
|
TextHelpModel.Highlight[] |
getHighlights() |
Gets all highlights.
|
void |
removeAllHighlights() |
Removes all highlights on the current document.
|
void |
removeTextHelpModelListener(TextHelpModelListener l) |
Removes a listener for a TextHelpModel.
|
void |
setDocumentTitle(java.lang.String title) |
Sets the title of the document.
|
void |
setHighlights(TextHelpModel.Highlight[] h) |
Sets the highlights to be a range of positions in a document.
|
addHelpModelListener, addPropertyChangeListener, getCurrentID, getCurrentURL, getHelpSet, removeHelpModelListener, removePropertyChangeListener, setCurrentID, setCurrentID, setCurrentURL, setCurrentURL, setHelpSet
java.lang.String getDocumentTitle()
void setDocumentTitle(java.lang.String title)
title
- The title currently shown.void removeAllHighlights()
void addHighlight(int pos0, int pos1)
pos0
- Start position.pos1
- End position.void setHighlights(TextHelpModel.Highlight[] h)
h
- The array of highlight objects.TextHelpModel.Highlight[] getHighlights()
void addTextHelpModelListener(TextHelpModelListener l)
void removeTextHelpModelListener(TextHelpModelListener l)