| |
|
| javax.swing.JEditorPane javax.swing.JTextPane org.cougaar.tools.csmart.ui.console.ConsoleTextPane
ConsoleTextPane | public class ConsoleTextPane extends JTextPane (Code) | | A text pane that contains a ConsoleStyledDocument and supports
searching and highlighting that document.
|
Method Summary | |
public void | cleanUp() When you're done with this component, call this to free
up resources. | public void | clearNotify() Clear the notify highlighting and position. | public String | getNotifyCondition() Return notify condition in use. | public int | getNotifyCount() Return number of occurrences of notify string received from the
node. | public String | getSearchString() | public static void | main(String[] args) | public boolean | notifyNext() Search for and highlight the next instance of the notify string,
starting at the end of the last notify string found (or at the
beginning of the screen buffer, if the previous notify string
was removed from the buffer). | static void | printKeymap(javax.swing.text.Keymap m, int indent) | public boolean | search(String s) Search for the string starting at the current search position or
at the beginning of the document, and
highlight it if found. | public boolean | searchNext() Search for the "current" string (i.e. | public void | setNotifyCondition(String s) Specify a "notify" string. |
docListener | MyDocumentListener docListener(Code) | | |
notifyCount | int notifyCount(Code) | | |
notifyHighlightReference | Object notifyHighlightReference(Code) | | |
searchHighlightReference | Object searchHighlightReference(Code) | | |
cleanUp | public void cleanUp()(Code) | | When you're done with this component, call this to free
up resources. This recurses down to the document itself.
|
clearNotify | public void clearNotify()(Code) | | Clear the notify highlighting and position. Starts searching for
notify conditions with new text appended after this method is called.
Reset the count.
|
getNotifyCondition | public String getNotifyCondition()(Code) | | Return notify condition in use.
|
getNotifyCount | public int getNotifyCount()(Code) | | Return number of occurrences of notify string received from the
node. This number is reset when a new notify string is specified
or when the node status is reset (via clearNotify).
|
notifyNext | public boolean notifyNext()(Code) | | Search for and highlight the next instance of the notify string,
starting at the end of the last notify string found (or at the
beginning of the screen buffer, if the previous notify string
was removed from the buffer).
Search is case insensitive.
true if notify string is found and false otherwise |
search | public boolean search(String s)(Code) | | Search for the string starting at the current search position or
at the beginning of the document, and
highlight it if found.
Search is case insensitive.
Parameters: s - string to search for true if string found and false otherwise |
searchNext | public boolean searchNext()(Code) | | Search for the "current" string (i.e. the last string specified in
a call to the search method) starting at the end of the last
search string found (or at the beginning of the screen buffer,
if the previous search string was removed from the buffer).
Search is case insensitive.
true if string found and false otherwise |
setNotifyCondition | public void setNotifyCondition(String s)(Code) | | Specify a "notify" string. If this string
is detected in the output of the node, then the node status
button color is set to blue and remains set until the user resets it;
the first instance of the "notify" string is highlighted.
Search is case insensitive.
Parameters: s - string to watch for in node output |
|
|
|