Java Doc for GuardedDocument.java in  » Swing-Library » abeille-forms-designer » org » netbeans » editor » 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 » Swing Library » abeille forms designer » org.netbeans.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.editor.BaseDocument
   org.netbeans.editor.GuardedDocument

GuardedDocument
public class GuardedDocument extends BaseDocument implements StyledDocument(Code)
Extension to the guarded document that implements StyledDocument interface
author:
   Miloslav Metelka
version:
   1.00


Field Summary
final public static  StringFMT_GUARDED_INSERT_LOCALE
    
final public static  StringFMT_GUARDED_REMOVE_LOCALE
    
final public static  StringGUARDED_ATTRIBUTE
     Guarded attribute used for specifying that the inserted block will be guarded.
 booleanatomicAsUser
    
 booleanbreakGuarded
    
 MarkBlockChainguardedBlockChain
    
final public static  SimpleAttributeSetguardedSet
    
protected  StringnormalStyleName
     Name of the normal style.
protected  StyleContextstyles
    
protected  HashtablestylesToLayers
    
final public static  SimpleAttributeSetunguardedSet
    

Constructor Summary
public  GuardedDocument(Class kitClass)
    
public  GuardedDocument(Class kitClass, boolean addToRegistry, StyleContext styles)
     Create base document with a specified syntax and style context.

Method Summary
public  StyleaddStyle(String styleName, Style parent)
    
public  voidaddStyleToLayerMapping(String styleName, String layerName)
    
protected  DrawLayeraddStyledLayer(String layerName, Style style)
    
protected  BaseDocumentEventcreateDocumentEvent(int offset, int length, DocumentEvent.EventType type)
    
public  ColorgetBackground(AttributeSet attr)
     Takes a set of attributes and turn it into a background color specification.
public  ElementgetCharacterElement(int pos)
     Gets the element that represents the character that is at the given offset within the document.
public  FontgetFont(AttributeSet attr)
     Takes a set of attributes and turn it into a font specification.
public  ColorgetForeground(AttributeSet attr)
     Takes a set of attributes and turn it into a foreground color specification.
public  MarkBlockChaingetGuardedBlockChain()
    
public  StylegetLogicalStyle(int pos)
    
public  StylegetStyle(String styleName)
    
public  EnumerationgetStyleNames()
    
public  booleanisPosGuarded(int pos)
    
protected  voidpreInsertCheck(int offset, String text, AttributeSet a)
     This method is called automatically before the document is updated as result of removal.
protected  voidpreRemoveCheck(int offset, int len)
     This method is called automatically before the document is updated as result of removal.
public  voidremoveStyle(String styleName)
    
public  voidrunAtomic(Runnable r)
    
public  voidrunAtomicAsUser(Runnable r)
    
public  voidsetCharacterAttributes(int offset, int length, AttributeSet s, boolean replace)
    
public  voidsetLogicalStyle(int pos, Style s)
     Sets the logical style to use for the paragraph at the given position.
public  voidsetNormalStyleName(String normalStyleName)
     Set the name for normal style.
public  voidsetParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)
     Change attributes for part of the text.
public  StringtoStringDetail()
    

Field Detail
FMT_GUARDED_INSERT_LOCALE
final public static String FMT_GUARDED_INSERT_LOCALE(Code)



FMT_GUARDED_REMOVE_LOCALE
final public static String FMT_GUARDED_REMOVE_LOCALE(Code)



GUARDED_ATTRIBUTE
final public static String GUARDED_ATTRIBUTE(Code)
Guarded attribute used for specifying that the inserted block will be guarded.



atomicAsUser
boolean atomicAsUser(Code)



breakGuarded
boolean breakGuarded(Code)
Break the guarded flag, so inserts/removals over guarded areas will work



guardedBlockChain
MarkBlockChain guardedBlockChain(Code)



guardedSet
final public static SimpleAttributeSet guardedSet(Code)
AttributeSet with only guarded attribute



normalStyleName
protected String normalStyleName(Code)
Name of the normal style. The normal style is used to reset the effect of all styles applied to the line.



styles
protected StyleContext styles(Code)
Style context to hold the styles



stylesToLayers
protected Hashtable stylesToLayers(Code)
Style to layer name mapping



unguardedSet
final public static SimpleAttributeSet unguardedSet(Code)
AttributeSet with only break-guarded attribute




Constructor Detail
GuardedDocument
public GuardedDocument(Class kitClass)(Code)



GuardedDocument
public GuardedDocument(Class kitClass, boolean addToRegistry, StyleContext styles)(Code)
Create base document with a specified syntax and style context.
Parameters:
  kitClass - class used to initialize this document with proper settingscategory based on the editor kit for which this document iscreated
Parameters:
  syntax - syntax scanner to use with this document
Parameters:
  styles - style context to use




Method Detail
addStyle
public Style addStyle(String styleName, Style parent)(Code)
Adds style to the document



addStyleToLayerMapping
public void addStyleToLayerMapping(String styleName, String layerName)(Code)



addStyledLayer
protected DrawLayer addStyledLayer(String layerName, Style style)(Code)



createDocumentEvent
protected BaseDocumentEvent createDocumentEvent(int offset, int length, DocumentEvent.EventType type)(Code)



getBackground
public Color getBackground(AttributeSet attr)(Code)
Takes a set of attributes and turn it into a background color specification. This might be used to specify things like brighter, more hue, etc.
Parameters:
  attr - the set of attributes the color



getCharacterElement
public Element getCharacterElement(int pos)(Code)
Gets the element that represents the character that is at the given offset within the document.
Parameters:
  pos - the offset >= 0 the element



getFont
public Font getFont(AttributeSet attr)(Code)
Takes a set of attributes and turn it into a font specification. This can be used to turn things like family, style, size, etc into a font that is available on the system the document is currently being used on.
Parameters:
  attr - the set of attributes the font



getForeground
public Color getForeground(AttributeSet attr)(Code)
Takes a set of attributes and turn it into a foreground color specification. This might be used to specify things like brighter, more hue, etc.
Parameters:
  attr - the set of attributes the color



getGuardedBlockChain
public MarkBlockChain getGuardedBlockChain()(Code)
Get the chain of the guarded blocks



getLogicalStyle
public Style getLogicalStyle(int pos)(Code)
Get logical style for position in paragraph



getStyle
public Style getStyle(String styleName)(Code)
Fetches style previously added



getStyleNames
public Enumeration getStyleNames()(Code)
Fetches the list of style names



isPosGuarded
public boolean isPosGuarded(int pos)(Code)



preInsertCheck
protected void preInsertCheck(int offset, String text, AttributeSet a) throws BadLocationException(Code)
This method is called automatically before the document is updated as result of removal. This function can throw BadLocationException or its descendants to stop the ongoing insert from being actually done.
Parameters:
  evt - document event containing the change including array ofcharacters that will be inserted



preRemoveCheck
protected void preRemoveCheck(int offset, int len) throws BadLocationException(Code)
This method is called automatically before the document is updated as result of removal.



removeStyle
public void removeStyle(String styleName)(Code)
Removes style from document



runAtomic
public void runAtomic(Runnable r)(Code)



runAtomicAsUser
public void runAtomicAsUser(Runnable r)(Code)



setCharacterAttributes
public void setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace)(Code)



setLogicalStyle
public void setLogicalStyle(int pos, Style s)(Code)
Sets the logical style to use for the paragraph at the given position. If attributes aren't explicitly set for character and paragraph attributes they will resolve through the logical style assigned to the paragraph, which in turn may resolve through some hierarchy completely independent of the element hierarchy in the document.
Parameters:
  pos - the starting position >= 0
Parameters:
  s - the style to set



setNormalStyleName
public void setNormalStyleName(String normalStyleName)(Code)
Set the name for normal style. Normal style is used to reset the effect of all aplied styles.



setParagraphAttributes
public void setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)(Code)
Change attributes for part of the text.



toStringDetail
public String toStringDetail()(Code)



Fields inherited from org.netbeans.editor.BaseDocument
final public static String BLOCKS_FINDER_PROP(Code)(Java Doc)
final public static String FILE_NAME_PROP(Code)(Java Doc)
final public static String ID_PROP(Code)(Java Doc)
final public static String KIT_CLASS_PROP(Code)(Java Doc)
final public static String LINE_BATCH_SIZE(Code)(Java Doc)
final public static String LINE_LIMIT_PROP(Code)(Java Doc)
final public static String LS_CR(Code)(Java Doc)
final public static String LS_CRLF(Code)(Java Doc)
final public static String LS_LF(Code)(Java Doc)
final public static String READ_LINE_SEPARATOR_PROP(Code)(Java Doc)
final public static String STRING_BWD_FINDER_PROP(Code)(Java Doc)
final public static String STRING_FINDER_PROP(Code)(Java Doc)
final public static String UNDO_MANAGER_PROP(Code)(Java Doc)
final public static String WRAP_SEARCH_MARK_PROP(Code)(Java Doc)
final public static String WRITE_LINE_SEPARATOR_PROP(Code)(Java Doc)
protected BaseElement defaultRootElem(Code)(Java Doc)
PropertyChangeListener findSupportListener(Code)(Java Doc)
protected boolean inited(Code)(Java Doc)
Class kitClass(Code)(Java Doc)
UndoableEdit lastModifyUndoEdit(Code)(Java Doc)
protected LineRootElement lineRootElement(Code)(Java Doc)
protected EventListenerList listenerList(Code)(Java Doc)
protected boolean modified(Code)(Java Doc)
DocOp op(Code)(Java Doc)
boolean undoMergeReset(Code)(Java Doc)

Methods inherited from org.netbeans.editor.BaseDocument
public boolean addLayer(DrawLayer layer, int visibility)(Code)(Java Doc)
final public synchronized void atomicLock()(Code)(Java Doc)
final public synchronized void atomicUnlock()(Code)(Java Doc)
final public void breakAtomicLock()(Code)(Java Doc)
protected BaseDocumentEvent createDocumentEvent(int pos, int length, DocumentEvent.EventType type)(Code)(Java Doc)
public Position createPosition(int offset, Position.Bias bias) throws BadLocationException(Code)(Java Doc)
final public synchronized void extWriteLock()(Code)(Java Doc)
final public synchronized void extWriteUnlock()(Code)(Java Doc)
public int find(Finder finder, int startPos, int limitPos) throws BadLocationException(Code)(Java Doc)
public DrawLayer findLayer(String layerName)(Code)(Java Doc)
protected void fireChangedUpdate(DocumentEvent e)(Code)(Java Doc)
protected void fireInsertUpdate(DocumentEvent e)(Code)(Java Doc)
protected void fireRemoveUpdate(DocumentEvent e)(Code)(Java Doc)
public synchronized Annotations getAnnotations()(Code)(Java Doc)
final protected int getAtomicDepth()(Code)(Java Doc)
public synchronized Bookmarks getBookmarks()(Code)(Java Doc)
public char[] getChars(int pos, int len) throws BadLocationException(Code)(Java Doc)
public char[] getChars(int[] block) throws BadLocationException(Code)(Java Doc)
public void getChars(int pos, char ret, int offset, int len) throws BadLocationException(Code)(Java Doc)
public Element getDefaultRootElement()(Code)(Java Doc)
final DrawLayerList getDrawLayerList()(Code)(Java Doc)
public Formatter getFormatter()(Code)(Java Doc)
Syntax getFreeSyntax()(Code)(Java Doc)
final public Class getKitClass()(Code)(Java Doc)
final public int getLength()(Code)(Java Doc)
public int getNextBookmark(int pos, boolean wrap) throws BadLocationException(Code)(Java Doc)
public Element getParagraphElement(int pos)(Code)(Java Doc)
public Element[] getRootElements()(Code)(Java Doc)
public int getShiftWidth()(Code)(Java Doc)
int getStoredPosition(int posID)(Code)(Java Doc)
public SyntaxSupport getSyntaxSupport()(Code)(Java Doc)
public int getTabSize()(Code)(Java Doc)
public String getText(int[] block) throws BadLocationException(Code)(Java Doc)
public void insertString(int offset, String text, AttributeSet a) throws BadLocationException(Code)(Java Doc)
public void invalidateSyntaxMarks()(Code)(Java Doc)
final public boolean isAtomicLock()(Code)(Java Doc)
public boolean isIdentifierPart(char ch)(Code)(Java Doc)
public boolean isModified()(Code)(Java Doc)
public boolean isWhitespace(char ch)(Code)(Java Doc)
protected void preInsertCheck(int offset, String text, AttributeSet a) throws BadLocationException(Code)(Java Doc)
protected void preRemoveCheck(int offset, int len) throws BadLocationException(Code)(Java Doc)
public void print(PrintContainer container)(Code)(Java Doc)
public int processText(TextBatchProcessor tbp, int startPos, int endPos) throws BadLocationException(Code)(Java Doc)
public void read(Reader reader, int pos) throws IOException, BadLocationException(Code)(Java Doc)
void releaseSyntax(Syntax syntax)(Code)(Java Doc)
public void remove(int offset, int len) throws BadLocationException(Code)(Java Doc)
void removeStoredPosition(int posID)(Code)(Java Doc)
public void render(Runnable r)(Code)(Java Doc)
public void repaintBlock(int startOffset, int endOffset)(Code)(Java Doc)
public void resetUndoMerge()(Code)(Java Doc)
public void runAtomic(Runnable r)(Code)(Java Doc)
public void runAtomicAsUser(Runnable r)(Code)(Java Doc)
public void settingsChange(SettingsChangeEvent evt)(Code)(Java Doc)
int storePosition(int pos) throws BadLocationException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toStringDetail()(Code)(Java Doc)
public boolean toggleBookmark(int pos) throws BadLocationException(Code)(Java Doc)
public void write(Writer writer, int pos, int len) throws IOException, BadLocationException(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.