Java Doc for BaseKit.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) 


javax.swing.text.DefaultEditorKit
   org.netbeans.editor.BaseKit

All known Subclasses:   org.netbeans.editor.ext.ExtKit,
BaseKit
public class BaseKit extends DefaultEditorKit (Code)
Editor kit implementation for base document
author:
   Miloslav Metelka
version:
   1.00

Inner Class :public static class DefaultKeyTypedAction extends BaseAction
Inner Class :public static class InsertBreakAction extends BaseAction
Inner Class :public static class InsertTabAction extends BaseAction
Inner Class :public static class CompoundAction extends BaseAction
Inner Class :public static class KitCompoundAction extends BaseAction
Inner Class :public static class InsertContentAction extends BaseAction
Inner Class :public static class InsertStringAction extends BaseAction
Inner Class :public static class DeleteCharAction extends BaseAction
Inner Class :public static class ReadOnlyAction extends BaseAction
Inner Class :public static class WritableAction extends BaseAction
Inner Class :public static class CutAction extends BaseAction
Inner Class :public static class CopyAction extends BaseAction
Inner Class :public static class PasteAction extends BaseAction
Inner Class :public static class BeepAction extends BaseAction
Inner Class :public static class UpAction extends BaseAction
Inner Class :public static class DownAction extends BaseAction
Inner Class :public static class PageUpAction extends BaseAction
Inner Class :public static class ForwardAction extends BaseAction
Inner Class :public static class PageDownAction extends BaseAction
Inner Class :public static class BackwardAction extends BaseAction
Inner Class :public static class BeginLineAction extends BaseAction
Inner Class :public static class EndLineAction extends BaseAction
Inner Class :public static class BeginAction extends BaseAction
Inner Class :public static class EndAction extends BaseAction
Inner Class :public static class NextWordAction extends BaseAction
Inner Class :public static class PreviousWordAction extends BaseAction
Inner Class :public static class BeginWordAction extends BaseAction
Inner Class :public static class EndWordAction extends BaseAction
Inner Class :public static class SelectWordAction extends KitCompoundAction
Inner Class :public static class SelectLineAction extends KitCompoundAction
Inner Class :public static class SelectAllAction extends KitCompoundAction

Field Summary
final public static  StringabbrevExpandAction
    
final public static  StringabbrevResetAction
    
final public static  StringadjustCaretBottomAction
    
final public static  StringadjustCaretCenterAction
    
final public static  StringadjustCaretTopAction
    
final public static  StringadjustWindowBottomAction
    
final public static  StringadjustWindowCenterAction
    
final public static  StringadjustWindowTopAction
    
final public static  StringannotationsCyclingAction
    
final public static  StringfindNextAction
    
final public static  StringfindPreviousAction
    
final public static  StringfindSelectionAction
    
final public static  StringfirstNonWhiteAction
    
final public static  StringformatAction
    
final public static  StringgenerateGutterPopupAction
    
final public static  StringgotoNextBookmarkAction
    
final public static  StringinsertDateTimeAction
    
final public static  StringjumpListNextAction
    
final public static  StringjumpListNextComponentAction
    
final public static  StringjumpListPrevAction
    
final public static  StringjumpListPrevComponentAction
    
static  MapkitActionMaps
    
static  MapkitActions
    
static  MapkitKeymaps
    
static  Mapkits
    
final public static  StringlastNonWhiteAction
    
final public static  StringlineFirstColumnAction
    
final public static  StringmacroActionPrefix
    
final public static  StringredoAction
    
final public static  StringremoveLineAction
    
final public static  StringremoveLineBeginAction
    
final public static  StringremoveSelectionAction
    
final public static  StringremoveTabAction
    
final public static  StringremoveWordAction
    
final public static  StringscrollDownAction
    
final public static  StringscrollUpAction
    
final public static  StringselectIdentifierAction
    
final public static  StringselectNextParameterAction
    
final public static  StringselectionFirstNonWhiteAction
    
final public static  StringselectionLastNonWhiteAction
    
final public static  StringselectionLineFirstColumnAction
    
final public static  StringselectionPageDownAction
    
final public static  StringselectionPageUpAction
    
final static  longserialVersionUID
    
static  SettingsChangeListenersettingsListener
    
final public static  StringshiftLineLeftAction
    
final public static  StringshiftLineRightAction
    
final public static  StringstartMacroRecordingAction
     Start recording of macro.
final public static  StringstopMacroRecordingAction
    
final public static  StringswitchCaseAction
    
final public static  StringtoLowerCaseAction
    
final public static  StringtoUpperCaseAction
    
final public static  StringtoggleBookmarkAction
    
final public static  StringtoggleHighlightSearchAction
    
final public static  StringtoggleLineNumbersAction
    
final public static  StringtoggleTypingModeAction
    
final public static  StringundoAction
    
final public static  StringwordMatchNextAction
    
final public static  StringwordMatchPrevAction
    

Constructor Summary
public  BaseKit()
    

Method Summary
public static  MapactionsToMap(Action[] actions)
     Creates map with [name, action] pairs from the given array of actions.
public  Objectclone()
    
protected  Action[]createActions()
     Create actions that this kit supports.
public  CaretcreateCaret()
    
public  DocumentcreateDefaultDocument()
    
protected  EditorUIcreateEditorUI()
    
public  SyntaxcreateFormatSyntax(Document doc)
    
public  FormattercreateFormatter()
    
protected  EditorUIcreatePrintEditorUI(BaseDocument doc)
     Create extended UI for printing a document.
public  SyntaxcreateSyntax(Document doc)
     Create new instance of syntax coloring scanner
Parameters:
  doc - document to operate on.
public  SyntaxSupportcreateSyntaxSupport(BaseDocument doc)
    
protected  BaseTextUIcreateTextUI()
    
public  voiddeinstall(JEditorPane c)
    
protected  voidexecuteDeinstallActions(JEditorPane c)
    
protected  voidexecuteInstallActions(JEditorPane c)
    
public  ActiongetActionByName(String name)
     Get action from its name.
 MapgetActionMap()
    
final public  Action[]getActions()
     Get actions associated with this kit.
protected  Action[]getCustomActions()
    
public  ClassgetFocusableComponentClass(JTextComponent c)
     This methods gives the class of the first component in the component hierarchy that should be called when requesting focus for the other component.
public  MultiKeymapgetKeymap()
    
public static synchronized  BaseKitgetKit(Class kitClass)
    
protected  Action[]getMacroActions()
    
public  ViewFactorygetViewFactory()
     Fetches a factory that is suitable for producing views of any models that are produced by this kit.
protected  voidinitDocument(BaseDocument doc)
     Initialize document by adding the draw-layers for example.
public  voidinstall(JEditorPane c)
    
public static  Action[]mapToActions(Map map)
     Converts map with [name, action] back to array of actions.
public  voidread(Reader in, Document doc, int pos)
     Inserts content from the given stream.
public  ListtranslateActionNameList(List actionNameList)
    
protected  voidupdateActions()
     Update the actions right after their creation was finished.
public  voidwrite(Writer out, Document doc, int pos, int len)
    

Field Detail
abbrevExpandAction
final public static String abbrevExpandAction(Code)
Expand the abbreviation



abbrevResetAction
final public static String abbrevResetAction(Code)
Reset the abbreviation accounting string



adjustCaretBottomAction
final public static String adjustCaretBottomAction(Code)
Action that moves the caret so that caret is at the bottom of the window



adjustCaretCenterAction
final public static String adjustCaretCenterAction(Code)
Action that moves the caret so that caret is at the center of the window



adjustCaretTopAction
final public static String adjustCaretTopAction(Code)
Action that moves the caret so that caret is at the top of the window



adjustWindowBottomAction
final public static String adjustWindowBottomAction(Code)
Action that scrolls the window so that caret is at the bottom of the window



adjustWindowCenterAction
final public static String adjustWindowCenterAction(Code)
Action that scrolls the window so that caret is at the center of the window



adjustWindowTopAction
final public static String adjustWindowTopAction(Code)
Action that scrolls the window so that caret is at the top of the window



annotationsCyclingAction
final public static String annotationsCyclingAction(Code)
Cycle through annotations on the current line



findNextAction
final public static String findNextAction(Code)
Find next occurence action



findPreviousAction
final public static String findPreviousAction(Code)
Find previous occurence action



findSelectionAction
final public static String findSelectionAction(Code)
Find current word



firstNonWhiteAction
final public static String firstNonWhiteAction(Code)
First non-white character on the line



formatAction
final public static String formatAction(Code)
Format part of the document text using Indent



generateGutterPopupAction
final public static String generateGutterPopupAction(Code)
Name of the action for generating of Glyph Gutter popup menu



gotoNextBookmarkAction
final public static String gotoNextBookmarkAction(Code)
Goto the next bookmark



insertDateTimeAction
final public static String insertDateTimeAction(Code)
Insert the current Date and Time



jumpListNextAction
final public static String jumpListNextAction(Code)
Go to the previous position stored in the jump-list



jumpListNextComponentAction
final public static String jumpListNextComponentAction(Code)
Go to the last position in the previous component stored in the jump-list



jumpListPrevAction
final public static String jumpListPrevAction(Code)
Go to the next position stored in the jump-list



jumpListPrevComponentAction
final public static String jumpListPrevComponentAction(Code)
Go to the next position in the previous component stored in the jump-list



kitActionMaps
static Map kitActionMaps(Code)
[kit, action-map] pairs



kitActions
static Map kitActions(Code)
[kit, action[]] pairs



kitKeymaps
static Map kitKeymaps(Code)
[kit-class, keymap] pairs



kits
static Map kits(Code)
[kit-class, kit-instance] pairs are stored here



lastNonWhiteAction
final public static String lastNonWhiteAction(Code)
Last non-white character on the line



lineFirstColumnAction
final public static String lineFirstColumnAction(Code)
Name of the action moving caret to the first column on the line



macroActionPrefix
final public static String macroActionPrefix(Code)
Prefix of all macro-based actions



redoAction
final public static String redoAction(Code)
Redo action



removeLineAction
final public static String removeLineAction(Code)
Remove line



removeLineBeginAction
final public static String removeLineBeginAction(Code)
Remove to the begining of the line



removeSelectionAction
final public static String removeSelectionAction(Code)
Remove selected block or do nothing - useful for popup menu



removeTabAction
final public static String removeTabAction(Code)
Remove indentation



removeWordAction
final public static String removeWordAction(Code)
Remove to the begining of the word



scrollDownAction
final public static String scrollDownAction(Code)
Scroll window one line down



scrollUpAction
final public static String scrollUpAction(Code)
Scroll window one line up



selectIdentifierAction
final public static String selectIdentifierAction(Code)
Select the nearest identifier around caret



selectNextParameterAction
final public static String selectNextParameterAction(Code)
Select the next parameter (after the comma) in the given context



selectionFirstNonWhiteAction
final public static String selectionFirstNonWhiteAction(Code)
First non-white character on the line



selectionLastNonWhiteAction
final public static String selectionLastNonWhiteAction(Code)
Last non-white character on the line



selectionLineFirstColumnAction
final public static String selectionLineFirstColumnAction(Code)
Name of the action moving caret to the first column on the line and extending the selection



selectionPageDownAction
final public static String selectionPageDownAction(Code)
Move one page down and make or extend selection



selectionPageUpAction
final public static String selectionPageUpAction(Code)
Move one page up and make or extend selection



serialVersionUID
final static long serialVersionUID(Code)



settingsListener
static SettingsChangeListener settingsListener(Code)



shiftLineLeftAction
final public static String shiftLineLeftAction(Code)
Shift line left action



shiftLineRightAction
final public static String shiftLineRightAction(Code)
Shift line right action



startMacroRecordingAction
final public static String startMacroRecordingAction(Code)
Start recording of macro. Only one macro recording can be active at the time



stopMacroRecordingAction
final public static String stopMacroRecordingAction(Code)
Stop the active recording



switchCaseAction
final public static String switchCaseAction(Code)
Switch the case of the selected text or current character



toLowerCaseAction
final public static String toLowerCaseAction(Code)
Change the selected text or current character to lowercase



toUpperCaseAction
final public static String toUpperCaseAction(Code)
Change the selected text or current character to uppercase



toggleBookmarkAction
final public static String toggleBookmarkAction(Code)
Toggle bookmark on the current line



toggleHighlightSearchAction
final public static String toggleHighlightSearchAction(Code)
Toggle highlight search action



toggleLineNumbersAction
final public static String toggleLineNumbersAction(Code)
Toggle visibility of line numbers



toggleTypingModeAction
final public static String toggleTypingModeAction(Code)
Toggle the typing mode to overwrite mode or back to insert mode



undoAction
final public static String undoAction(Code)
Undo action



wordMatchNextAction
final public static String wordMatchNextAction(Code)
Word match next



wordMatchPrevAction
final public static String wordMatchPrevAction(Code)
Word match prev




Constructor Detail
BaseKit
public BaseKit()(Code)




Method Detail
actionsToMap
public static Map actionsToMap(Action[] actions)(Code)
Creates map with [name, action] pairs from the given array of actions.



clone
public Object clone()(Code)
Clone this editor kit



createActions
protected Action[] createActions()(Code)
Create actions that this kit supports. To use the actions of the parent kit it's better instead of using super.createActions() to use getKit(super.getClass()).getActions() because it can reuse existing parent actions.



createCaret
public Caret createCaret()(Code)
Create caret to navigate through document



createDefaultDocument
public Document createDefaultDocument()(Code)
Create empty document



createEditorUI
protected EditorUI createEditorUI()(Code)
Create extended UI



createFormatSyntax
public Syntax createFormatSyntax(Document doc)(Code)
Create the syntax used for formatting



createFormatter
public Formatter createFormatter()(Code)
Create the formatter appropriate for this kit



createPrintEditorUI
protected EditorUI createPrintEditorUI(BaseDocument doc)(Code)
Create extended UI for printing a document.



createSyntax
public Syntax createSyntax(Document doc)(Code)
Create new instance of syntax coloring scanner
Parameters:
  doc - document to operate on. It can be null in the cases the syntaxcreation is not related to the particular document



createSyntaxSupport
public SyntaxSupport createSyntaxSupport(BaseDocument doc)(Code)
Create syntax support



createTextUI
protected BaseTextUI createTextUI()(Code)
Create text UI



deinstall
public void deinstall(JEditorPane c)(Code)



executeDeinstallActions
protected void executeDeinstallActions(JEditorPane c)(Code)



executeInstallActions
protected void executeInstallActions(JEditorPane c)(Code)



getActionByName
public Action getActionByName(String name)(Code)
Get action from its name.



getActionMap
Map getActionMap()(Code)



getActions
final public Action[] getActions()(Code)
Get actions associated with this kit. createActions() is called to get basic list and then customActions are added.



getCustomActions
protected Action[] getCustomActions()(Code)



getFocusableComponentClass
public Class getFocusableComponentClass(JTextComponent c)(Code)
This methods gives the class of the first component in the component hierarchy that should be called when requesting focus for the other component. class of the component that will be searched in the parents inthe hierarchy or null to do no search.



getKeymap
public MultiKeymap getKeymap()(Code)



getKit
public static synchronized BaseKit getKit(Class kitClass)(Code)



getMacroActions
protected Action[] getMacroActions()(Code)



getViewFactory
public ViewFactory getViewFactory()(Code)
Fetches a factory that is suitable for producing views of any models that are produced by this kit. The default is to have the UI produce the factory, so this method has no implementation. the view factory



initDocument
protected void initDocument(BaseDocument doc)(Code)
Initialize document by adding the draw-layers for example.



install
public void install(JEditorPane c)(Code)
Called after the kit is installed into JEditorPane



mapToActions
public static Action[] mapToActions(Map map)(Code)
Converts map with [name, action] back to array of actions.



read
public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException(Code)
Inserts content from the given stream.



translateActionNameList
public List translateActionNameList(List actionNameList)(Code)



updateActions
protected void updateActions()(Code)
Update the actions right after their creation was finished. The getActions() and getActionByName() can be used safely in this method. The implementation must call super.updateActions() so that the updating in parent is performed too.



write
public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)
Writes content from a document to the given stream



Fields inherited from javax.swing.text.DefaultEditorKit
final public static String EndOfLineStringProperty(Code)(Java Doc)
final public static String backwardAction(Code)(Java Doc)
final public static String beepAction(Code)(Java Doc)
final public static String beginAction(Code)(Java Doc)
final public static String beginLineAction(Code)(Java Doc)
final public static String beginParagraphAction(Code)(Java Doc)
final public static String beginWordAction(Code)(Java Doc)
final public static String copyAction(Code)(Java Doc)
final public static String cutAction(Code)(Java Doc)
final public static String defaultKeyTypedAction(Code)(Java Doc)
final public static String deleteNextCharAction(Code)(Java Doc)
final public static String deleteNextWordAction(Code)(Java Doc)
final public static String deletePrevCharAction(Code)(Java Doc)
final public static String deletePrevWordAction(Code)(Java Doc)
final public static String downAction(Code)(Java Doc)
final public static String endAction(Code)(Java Doc)
final public static String endLineAction(Code)(Java Doc)
final public static String endParagraphAction(Code)(Java Doc)
final public static String endWordAction(Code)(Java Doc)
final public static String forwardAction(Code)(Java Doc)
final public static String insertBreakAction(Code)(Java Doc)
final public static String insertContentAction(Code)(Java Doc)
final public static String insertTabAction(Code)(Java Doc)
final public static String nextWordAction(Code)(Java Doc)
final public static String pageDownAction(Code)(Java Doc)
final public static String pageUpAction(Code)(Java Doc)
final public static String pasteAction(Code)(Java Doc)
final public static String previousWordAction(Code)(Java Doc)
final public static String readOnlyAction(Code)(Java Doc)
final public static String selectAllAction(Code)(Java Doc)
final public static String selectLineAction(Code)(Java Doc)
final public static String selectParagraphAction(Code)(Java Doc)
final public static String selectWordAction(Code)(Java Doc)
final public static String selectionBackwardAction(Code)(Java Doc)
final public static String selectionBeginAction(Code)(Java Doc)
final public static String selectionBeginLineAction(Code)(Java Doc)
final public static String selectionBeginParagraphAction(Code)(Java Doc)
final public static String selectionBeginWordAction(Code)(Java Doc)
final public static String selectionDownAction(Code)(Java Doc)
final public static String selectionEndAction(Code)(Java Doc)
final public static String selectionEndLineAction(Code)(Java Doc)
final public static String selectionEndParagraphAction(Code)(Java Doc)
final public static String selectionEndWordAction(Code)(Java Doc)
final public static String selectionForwardAction(Code)(Java Doc)
final public static String selectionNextWordAction(Code)(Java Doc)
final public static String selectionPreviousWordAction(Code)(Java Doc)
final public static String selectionUpAction(Code)(Java Doc)
final public static String upAction(Code)(Java Doc)
final public static String writableAction(Code)(Java Doc)

Methods inherited from javax.swing.text.DefaultEditorKit
public Caret createCaret()(Code)(Java Doc)
public Document createDefaultDocument()(Code)(Java Doc)
public Action[] getActions()(Code)(Java Doc)
public String getContentType()(Code)(Java Doc)
public ViewFactory getViewFactory()(Code)(Java Doc)
public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc)
public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc)
public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc)
public void write(Writer out, Document doc, 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.