Java Doc for ConsoleTextPane.java in  » Science » Cougaar12_4 » org » cougaar » tools » csmart » ui » console » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.tools.csmart.ui.console 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.

Inner Class :class MyDocumentListener implements DocumentListener

Field Summary
 ConsoleStyledDocumentdoc
    
 MyDocumentListenerdocListener
    
 Highlighterhighlighter
    
 StringnotifyCondition
    
 intnotifyCount
    
 DefaultHighlighter.DefaultHighlightPainternotifyHighlight
    
 ObjectnotifyHighlightReference
    
 PositionnotifyPosition
    
 DefaultHighlighter.DefaultHighlightPaintersearchHighlight
    
 ObjectsearchHighlightReference
    
 PositionsearchPosition
    
 StringsearchString
    
 NodeStatusButtonstatusButton
    

Constructor Summary
public  ConsoleTextPane(ConsoleStyledDocument doc, NodeStatusButton statusButton)
    

Method Summary
public  voidcleanUp()
     When you're done with this component, call this to free up resources.
public  voidclearNotify()
     Clear the notify highlighting and position.
public  StringgetNotifyCondition()
     Return notify condition in use.
public  intgetNotifyCount()
     Return number of occurrences of notify string received from the node.
public  StringgetSearchString()
    
public static  voidmain(String[] args)
    
public  booleannotifyNext()
     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  voidprintKeymap(javax.swing.text.Keymap m, int indent)
    
public  booleansearch(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  booleansearchNext()
     Search for the "current" string (i.e.
public  voidsetNotifyCondition(String s)
     Specify a "notify" string.

Field Detail
doc
ConsoleStyledDocument doc(Code)



docListener
MyDocumentListener docListener(Code)



highlighter
Highlighter highlighter(Code)



notifyCondition
String notifyCondition(Code)



notifyCount
int notifyCount(Code)



notifyHighlight
DefaultHighlighter.DefaultHighlightPainter notifyHighlight(Code)



notifyHighlightReference
Object notifyHighlightReference(Code)



notifyPosition
Position notifyPosition(Code)



searchHighlight
DefaultHighlighter.DefaultHighlightPainter searchHighlight(Code)



searchHighlightReference
Object searchHighlightReference(Code)



searchPosition
Position searchPosition(Code)



searchString
String searchString(Code)



statusButton
NodeStatusButton statusButton(Code)




Constructor Detail
ConsoleTextPane
public ConsoleTextPane(ConsoleStyledDocument doc, NodeStatusButton statusButton)(Code)




Method Detail
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).



getSearchString
public String getSearchString()(Code)



main
public static void main(String[] args)(Code)



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



printKeymap
static void printKeymap(javax.swing.text.Keymap m, int indent)(Code)



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



Methods inherited from javax.swing.JTextPane
public Style addStyle(String nm, Style parent)(Code)(Java Doc)
protected EditorKit createDefaultEditorKit()(Code)(Java Doc)
public AttributeSet getCharacterAttributes()(Code)(Java Doc)
public MutableAttributeSet getInputAttributes()(Code)(Java Doc)
public Style getLogicalStyle()(Code)(Java Doc)
public AttributeSet getParagraphAttributes()(Code)(Java Doc)
public Style getStyle(String nm)(Code)(Java Doc)
public StyledDocument getStyledDocument()(Code)(Java Doc)
final protected StyledEditorKit getStyledEditorKit()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public void insertComponent(Component c)(Code)(Java Doc)
public void insertIcon(Icon g)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void removeStyle(String nm)(Code)(Java Doc)
public void replaceSelection(String content)(Code)(Java Doc)
public void setCharacterAttributes(AttributeSet attr, boolean replace)(Code)(Java Doc)
public void setDocument(Document doc)(Code)(Java Doc)
final public void setEditorKit(EditorKit kit)(Code)(Java Doc)
public void setLogicalStyle(Style s)(Code)(Java Doc)
public void setParagraphAttributes(AttributeSet attr, boolean replace)(Code)(Java Doc)
public void setStyledDocument(StyledDocument doc)(Code)(Java Doc)

Fields inherited from javax.swing.JEditorPane
final public static String HONOR_DISPLAY_PROPERTIES(Code)(Java Doc)
final public static String W3C_LENGTH_UNITS(Code)(Java Doc)

Methods inherited from javax.swing.JEditorPane
public synchronized void addHyperlinkListener(HyperlinkListener listener)(Code)(Java Doc)
protected EditorKit createDefaultEditorKit()(Code)(Java Doc)
public static EditorKit createEditorKitForContentType(String type)(Code)(Java Doc)
public void fireHyperlinkUpdate(HyperlinkEvent e)(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
final public String getContentType()(Code)(Java Doc)
public EditorKit getEditorKit()(Code)(Java Doc)
public static String getEditorKitClassNameForContentType(String type)(Code)(Java Doc)
public EditorKit getEditorKitForContentType(String type)(Code)(Java Doc)
public synchronized HyperlinkListener[] getHyperlinkListeners()(Code)(Java Doc)
public URL getPage()(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public boolean getScrollableTracksViewportHeight()(Code)(Java Doc)
public boolean getScrollableTracksViewportWidth()(Code)(Java Doc)
protected InputStream getStream(URL page) throws IOException(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void read(InputStream in, Object desc) throws IOException(Code)(Java Doc)
public static void registerEditorKitForContentType(String type, String classname)(Code)(Java Doc)
public static void registerEditorKitForContentType(String type, String classname, ClassLoader loader)(Code)(Java Doc)
public synchronized void removeHyperlinkListener(HyperlinkListener listener)(Code)(Java Doc)
public void replaceSelection(String content)(Code)(Java Doc)
public void scrollToReference(String reference)(Code)(Java Doc)
final public void setContentType(String type)(Code)(Java Doc)
public void setEditorKit(EditorKit kit)(Code)(Java Doc)
public void setEditorKitForContentType(String type, EditorKit k)(Code)(Java Doc)
public void setPage(URL page) throws IOException(Code)(Java Doc)
public void setPage(String url) throws IOException(Code)(Java Doc)
public void setText(String t)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.