Java Doc for BaseAction.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.TextAction
   org.netbeans.editor.BaseAction

BaseAction
abstract public class BaseAction extends TextAction (Code)
This is the parent of majority of the actions. It implements the necessary resetting depending of what is required by constructor of target action. The other thing implemented here is macro recording.
author:
   Miloslav Metelka
version:
   1.00


Field Summary
final public static  intABBREV_RESET
    
final public static  intCLEAR_STATUS_TEXT
    
final public static  StringLOCALE_DESC_PREFIX
    
final public static  StringLOCALE_POPUP_PREFIX
    
final public static  intMAGIC_POSITION_RESET
    
final public static  intNO_RECORDING
    
final public static  StringPOPUP_MENU_TEXT
    
final public static  intSAVE_POSITION
    
final public static  intSELECTION_REMOVE
    
final public static  intUNDO_MERGE_RESET
     Prevents adding the new undoable edit to the old one when the next document change occurs.
final public static  intWORD_MATCH_RESET
    
final static  longserialVersionUID
    
protected  intupdateMask
     Bit mask of what should be updated when the action is performed before the action's real task is invoked.

Constructor Summary
public  BaseAction(String name)
    
public  BaseAction(String name, int updateMask)
    

Method Summary
final public  voidactionPerformed(ActionEvent evt)
     This method is made final here as there's an important processing that must be done before the real action functionality is performed.
abstract public  voidactionPerformed(ActionEvent evt, JTextComponent target)
     The target method that performs the real action functionality.
Parameters:
  evt - action event describing the action that occured
Parameters:
  target - target component where the action occured.
public  JMenuItemgetPopupMenuItem(JTextComponent target)
    
public  StringgetPopupMenuText(JTextComponent target)
    
protected  voidsettingsChange(SettingsChangeEvent evt, Class kitClass)
     This method is called once after the action is constructed and then each time the settings are changed.
Parameters:
  evt - event describing the changed setting name.
 booleanstartRecording(JTextComponent target)
    
 StringstopRecording(JTextComponent target)
    
public  voidupdateComponent(JTextComponent target)
     Update the component according to the update mask specified in the constructor of the action.
public  voidupdateComponent(JTextComponent target, int updateMask)
    

Field Detail
ABBREV_RESET
final public static int ABBREV_RESET(Code)
Reset abbreviation accounting to empty string



CLEAR_STATUS_TEXT
final public static int CLEAR_STATUS_TEXT(Code)
Clear status bar text



LOCALE_DESC_PREFIX
final public static String LOCALE_DESC_PREFIX(Code)
Prefix for the name of the key for description in locale support



LOCALE_POPUP_PREFIX
final public static String LOCALE_POPUP_PREFIX(Code)
Prefix for the name of the key for popup description in locale support



MAGIC_POSITION_RESET
final public static int MAGIC_POSITION_RESET(Code)
Reset magic caret position



NO_RECORDING
final public static int NO_RECORDING(Code)
The action will not be recorded if in macro recording



POPUP_MENU_TEXT
final public static String POPUP_MENU_TEXT(Code)
Text of the menu item in popup menu for this action



SAVE_POSITION
final public static int SAVE_POSITION(Code)
Save current position in the jump list



SELECTION_REMOVE
final public static int SELECTION_REMOVE(Code)
Remove the selected text at the action begining



UNDO_MERGE_RESET
final public static int UNDO_MERGE_RESET(Code)
Prevents adding the new undoable edit to the old one when the next document change occurs.



WORD_MATCH_RESET
final public static int WORD_MATCH_RESET(Code)
Reset word-match table



serialVersionUID
final static long serialVersionUID(Code)



updateMask
protected int updateMask(Code)
Bit mask of what should be updated when the action is performed before the action's real task is invoked.




Constructor Detail
BaseAction
public BaseAction(String name)(Code)



BaseAction
public BaseAction(String name, int updateMask)(Code)




Method Detail
actionPerformed
final public void actionPerformed(ActionEvent evt)(Code)
This method is made final here as there's an important processing that must be done before the real action functionality is performed. It can include the following: 1. Updating of the target component depending on the update mask given in action constructor. 2. Possible macro recoding when the macro recording is turned on. The real action functionality should be done in the method actionPerformed(ActionEvent evt, JTextComponent target) which must be redefined by the target action.



actionPerformed
abstract public void actionPerformed(ActionEvent evt, JTextComponent target)(Code)
The target method that performs the real action functionality.
Parameters:
  evt - action event describing the action that occured
Parameters:
  target - target component where the action occured. It's retrieved bythe TextAction.getTextComponent(evt).



getPopupMenuItem
public JMenuItem getPopupMenuItem(JTextComponent target)(Code)



getPopupMenuText
public String getPopupMenuText(JTextComponent target)(Code)



settingsChange
protected void settingsChange(SettingsChangeEvent evt, Class kitClass)(Code)
This method is called once after the action is constructed and then each time the settings are changed.
Parameters:
  evt - event describing the changed setting name. It's null if it'scalled after the action construction.
Parameters:
  kitClass - class of the kit that created the actions



startRecording
boolean startRecording(JTextComponent target)(Code)



stopRecording
String stopRecording(JTextComponent target)(Code)



updateComponent
public void updateComponent(JTextComponent target)(Code)
Update the component according to the update mask specified in the constructor of the action.
Parameters:
  target - target component to be updated.



updateComponent
public void updateComponent(JTextComponent target, int updateMask)(Code)
Update the component according to the given update mask
Parameters:
  target - target component to be updated.
Parameters:
  updateMask - mask that specifies what will be updated



Methods inherited from javax.swing.text.TextAction
final public static Action[] augmentList(Action[] list1, Action[] list2)(Code)(Java Doc)
final protected JTextComponent getFocusedComponent()(Code)(Java Doc)
final protected JTextComponent getTextComponent(ActionEvent e)(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.