Java Doc for WbAction.java in  » Database-Client » SQL-Workbench » workbench » gui » actions » 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 » Database Client » SQL Workbench » workbench.gui.actions 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.swing.AbstractAction
      workbench.gui.actions.WbAction

All known Subclasses:   workbench.gui.actions.CopyAsSqlDeleteInsertAction,  workbench.gui.actions.ImportFileAction,  workbench.gui.actions.DropDbObjectAction,  workbench.gui.actions.RemoveTabAction,  workbench.gui.actions.CommentAction,  workbench.gui.actions.CreateDeleteScriptAction,  workbench.gui.actions.OptimizeColumnWidthAction,  workbench.gui.actions.ClearStatementHistoryAction,  workbench.gui.actions.PrevStatementAction,  workbench.gui.actions.MakeInListAction,  workbench.gui.actions.FileConnectAction,  workbench.gui.actions.DeleteDependentRowsAction,  workbench.gui.actions.FindDataAction,  workbench.gui.actions.SelectionFilterAction,  workbench.gui.actions.AddMacroAction,  workbench.gui.actions.FileSaveProfiles,  workbench.gui.actions.ManageMacroAction,  workbench.gui.actions.RenameTabAction,  workbench.gui.actions.FileSaveAsAction,  workbench.gui.actions.FindDataAgainAction,  workbench.gui.actions.OpenEditWindowAction,  workbench.gui.actions.UnCommentAction,  workbench.gui.actions.FileDiscardAction,  workbench.gui.actions.FilterPickerAction,  workbench.gui.actions.CheckPreparedStatementsAction,  workbench.gui.actions.NewListEntryAction,  workbench.gui.actions.SaveDataAsAction,  workbench.gui.actions.FileExitAction,  workbench.gui.actions.RollbackAction,  workbench.gui.actions.ReplaceAction,  workbench.gui.actions.NewDbExplorerPanelAction,  workbench.gui.actions.ReloadAction,  workbench.gui.actions.SelectResultAction,  workbench.gui.actions.SaveWorkspaceAction,  workbench.gui.actions.CleanJavaCodeAction,  workbench.gui.actions.PasteAction,  workbench.gui.actions.SpoolDataAction,  workbench.gui.actions.ClearAction,  workbench.gui.actions.CopySelectedAsTextAction,  workbench.gui.actions.NextStatementAction,  workbench.gui.actions.MakeNonCharInListAction,  workbench.gui.actions.PrintPreviewAction,  workbench.gui.actions.AutoCompletionAction,  workbench.gui.actions.InsertRowAction,  workbench.gui.actions.LoadWorkspaceAction,  workbench.gui.actions.PrintAction,  workbench.gui.actions.CheckBoxAction,  workbench.gui.actions.FileNewWindowAction,  workbench.gui.actions.CopySelectedAsSqlUpdateAction,  workbench.gui.actions.SortDescendingAction,  workbench.gui.actions.FilterDataAction,  workbench.gui.actions.FindAction,  workbench.gui.actions.CutAction,  workbench.gui.actions.CommitAction,  workbench.gui.actions.CollapseTreeAction,  workbench.gui.actions.SaveListFileAction,  workbench.gui.actions.EscAction,  workbench.gui.actions.ToggleTableSourceAction,  workbench.gui.actions.FirstStatementAction,  workbench.gui.actions.StopAction,  workbench.gui.actions.MoveSqlTabRight,  workbench.gui.actions.ExecuteAllAction,  workbench.gui.actions.ResetHighlightAction,  workbench.gui.actions.ExpandEditorAction,  workbench.gui.actions.ManageDriversAction,  workbench.gui.actions.OptionsDialogAction,  workbench.gui.actions.RunMacroAction,  workbench.gui.actions.DeleteTablesAction,  workbench.gui.actions.SelectEditorAction,  workbench.gui.actions.OptimizeAllColumnsAction,  workbench.gui.actions.ViewMessageLogAction,  workbench.gui.actions.AboutAction,  workbench.gui.actions.ExpandResultAction,  workbench.gui.actions.CopyProfileAction,  workbench.gui.actions.ResetFilterAction,  workbench.gui.actions.CloseResultTabAction,  workbench.gui.actions.SchemaReportAction,  workbench.gui.actions.SetColumnWidthAction,  workbench.gui.actions.ScriptDbObjectAction,  workbench.gui.actions.FileSaveAction,  workbench.gui.actions.VersionCheckAction,  workbench.gui.actions.AssignWorkspaceAction,  workbench.gui.actions.ImportClipboardAction,  workbench.gui.actions.CreateSnippetAction,  workbench.gui.actions.FileOpenAction,  workbench.gui.actions.FileReloadAction,  workbench.gui.actions.ReplaceDataAction,  workbench.gui.actions.ScrollToColumnAction,  workbench.gui.actions.SelectKeyColumnsAction,  workbench.gui.actions.MakeLowerCaseAction,  workbench.gui.actions.DataPumperAction,  workbench.gui.actions.CopySelectedAsSqlDeleteInsertAction,  workbench.gui.actions.FileDisconnectAction,  workbench.gui.actions.UndoAction,  workbench.gui.actions.ExecuteCurrentAction,  workbench.gui.actions.AddTabAction,  workbench.gui.actions.SortAscendingAction,  workbench.gui.actions.RedoAction,  workbench.gui.actions.WhatsNewAction,  workbench.gui.actions.SelectTabAction,  workbench.gui.actions.FindAgainAction,  workbench.gui.actions.CopyAsSqlUpdateAction,  workbench.gui.actions.MakeUpperCaseAction,  workbench.gui.actions.UndoExpandAction,  workbench.gui.actions.CreateDummySqlAction,  workbench.gui.actions.CopyAction,  workbench.gui.profiles.RenameGroupAction,  workbench.gui.actions.ExecuteSelAction,  workbench.gui.actions.NewDbExplorerWindowAction,  workbench.gui.actions.ExpandTreeAction,  workbench.gui.actions.CopyAsSqlInsertAction,  workbench.gui.actions.QuickFilterAction,  workbench.gui.actions.ClearCompletionCacheAction,  workbench.gui.actions.SaveAsNewWorkspaceAction,  workbench.gui.actions.CompileDbObjectAction,  workbench.gui.actions.DisconnectTabAction,  workbench.gui.actions.ShowManualAction,  workbench.gui.actions.InsertTabAction,  workbench.gui.actions.IgnoreErrorsAction,  workbench.gui.actions.CloseWorkspaceAction,  workbench.gui.actions.ConfigureShortcutsAction,  workbench.gui.profiles.NewGroupAction,  workbench.gui.actions.ShowHelpAction,  workbench.gui.actions.MoveSqlTabLeft,  workbench.gui.actions.ColumnSelectionAction,  workbench.gui.actions.ShowDbExplorerAction,  workbench.gui.actions.DeleteRowAction,  workbench.gui.actions.CopySelectedAsSqlInsertAction,  workbench.gui.actions.LastStatementAction,  workbench.gui.actions.CreateNewConnection,  workbench.gui.actions.CopyRowAction,  workbench.gui.actions.SelectMaxRowsAction,  workbench.gui.actions.SelectAllAction,  workbench.gui.actions.CopyAsTextAction,  workbench.gui.actions.MatchBracketAction,  workbench.gui.actions.DeleteListEntryAction,  workbench.gui.actions.UpdateDatabaseAction,  workbench.gui.actions.FormatSqlAction,
WbAction
public class WbAction extends AbstractAction (Code)
Base class for Actions in SQL Workbench/J the actual work should be implemented in executeAction() which is guaranteed to be called on the EDT.
author:
   support@sql-workbench.net


Field Summary
protected  WbActionproxy
    
protected  JButtontoolbarButton
    

Constructor Summary
public  WbAction()
    
public  WbAction(ActionListener l, String aName)
     Creates a WbAction which dispatches its WbAction.executeAction(ActionEvent) event to the passed ActionListener, instead of executing it itself.

Method Summary
public  voidactionPerformed(ActionEvent e)
    
public  voidaddToInputMap(JComponent c)
    
public  voidaddToInputMap(InputMap im, ActionMap am)
    
public  voidaddToMenu(JMenu aMenu)
    
public  voidaddToToolbar(JToolBar aToolbar)
    
public  booleanallowDuplicate()
    
public  voidclearAccelerator()
    
public  voidexecuteAction(ActionEvent e)
    
public  KeyStrokegetAccelerator()
    
public  StringgetActionCommand()
    
public  StringgetActionName()
    
public  KeyStrokegetAlternateAccelerator()
    
public  booleangetCreateMenuSeparator()
    
public  booleangetCreateToolbarSeparator()
    
public  KeyStrokegetDefaultAccelerator()
    
public  JMenuItemgetMenuItem()
    
public  StringgetMenuItemName()
    
public  StringgetMenuLabel()
    
public  JButtongetToolbarButton()
    
public  JButtongetToolbarButton(boolean createNew)
    
public  StringgetTooltipText()
    
public  StringgetTooltipTextWithKeys()
    
public  booleanhasCtrlModifier()
    
public  booleanhasShiftModifier()
    
public  voidinitMenuDefinition(String aKey)
     Initialize the menu definition for this action.
public  voidinitMenuDefinition(String aKey, KeyStroke defaultKey)
     Initialize the menu definition for this action.
public  voidinitMenuDefinition(String aMenuText, String aTooltip, KeyStroke defaultKey)
     Initialize the menu definition for this action.
protected  voidinitializeShortcut()
    
public static  booleanisAltPressed(ActionEvent e)
    
public static  booleanisCtrlPressed(ActionEvent e)
    
public static  booleanisShiftPressed(ActionEvent e)
    
public  voidremoveFromInputMap(InputMap im, ActionMap am)
    
public  voidremoveIcon()
    
public  voidsetAccelerator(KeyStroke key)
    
protected  voidsetActionName(String aName)
    
public  voidsetAlternateAccelerator(KeyStroke key)
    
public  voidsetCreateMenuSeparator(boolean flag)
    
public  voidsetCreateToolbarSeparator(boolean flag)
    
public  voidsetDefaultAccelerator(KeyStroke key)
    
public  voidsetEnabled(boolean flag)
    
public  voidsetIcon(ImageIcon icon)
    
public  voidsetMenuItemName(String aKey)
    
public  voidsetMenuText(String text)
     Define the displayed text for the associcated menu item If the text contains a & sign, the character after the & sign will be used as the Mnemonic for the menu item.
public  voidsetMenuTextByKey(String aKey)
     Define the displayed menu text and tooltip.
public  voidsetOriginal(WbAction org)
    
protected  voidsetProxy(WbAction p)
    
public  voidsetTooltip(String aText)
    

Field Detail
proxy
protected WbAction proxy(Code)



toolbarButton
protected JButton toolbarButton(Code)




Constructor Detail
WbAction
public WbAction()(Code)



WbAction
public WbAction(ActionListener l, String aName)(Code)
Creates a WbAction which dispatches its WbAction.executeAction(ActionEvent) event to the passed ActionListener, instead of executing it itself. This is intended for situations where an Action is needed, but not implemented with a subclass of WbAction, but with an ActionListener instead.




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)



addToInputMap
public void addToInputMap(JComponent c)(Code)



addToInputMap
public void addToInputMap(InputMap im, ActionMap am)(Code)



addToMenu
public void addToMenu(JMenu aMenu)(Code)



addToToolbar
public void addToToolbar(JToolBar aToolbar)(Code)



allowDuplicate
public boolean allowDuplicate()(Code)



clearAccelerator
public void clearAccelerator()(Code)



executeAction
public void executeAction(ActionEvent e)(Code)



getAccelerator
public KeyStroke getAccelerator()(Code)



getActionCommand
public String getActionCommand()(Code)



getActionName
public String getActionName()(Code)



getAlternateAccelerator
public KeyStroke getAlternateAccelerator()(Code)



getCreateMenuSeparator
public boolean getCreateMenuSeparator()(Code)



getCreateToolbarSeparator
public boolean getCreateToolbarSeparator()(Code)



getDefaultAccelerator
public KeyStroke getDefaultAccelerator()(Code)



getMenuItem
public JMenuItem getMenuItem()(Code)



getMenuItemName
public String getMenuItemName()(Code)



getMenuLabel
public String getMenuLabel()(Code)



getToolbarButton
public JButton getToolbarButton()(Code)



getToolbarButton
public JButton getToolbarButton(boolean createNew)(Code)



getTooltipText
public String getTooltipText()(Code)



getTooltipTextWithKeys
public String getTooltipTextWithKeys()(Code)



hasCtrlModifier
public boolean hasCtrlModifier()(Code)



hasShiftModifier
public boolean hasShiftModifier()(Code)



initMenuDefinition
public void initMenuDefinition(String aKey)(Code)
Initialize the menu definition for this action. The passed key will be used to initialize the menu label and tooltip. This method will register the action with the ShortcutManager even though no shortcut is defined.
Parameters:
  aKey - Translation key for ResourceMgr
See Also:   WbAction.setMenuTextByKey(String)
See Also:   
See Also:   workbench.resource.ShortcutManager.registerAction(WbAction)



initMenuDefinition
public void initMenuDefinition(String aKey, KeyStroke defaultKey)(Code)
Initialize the menu definition for this action. The passed key will be used to initialize the menu label and tooltip. This method will register the action with the ShortcutManager.
Parameters:
  aKey - Translation key for ResourceMgr
Parameters:
  defaultKey - Default shortcut key, may be null
See Also:   WbAction.setMenuTextByKey(String)
See Also:   workbench.resource.ShortcutManager.registerAction(WbAction)



initMenuDefinition
public void initMenuDefinition(String aMenuText, String aTooltip, KeyStroke defaultKey)(Code)
Initialize the menu definition for this action. The menu text and tooltip will be used directly without retrieving it from the ResourceMgr. This method will register the action with the ShortcutManager.
Parameters:
  aMenuText - The text to be displayed in the menu item
Parameters:
  aTooltip - The tooltip for the menu item
Parameters:
  defaultKey - Default shortcut key, may be null
See Also:   workbench.resource.ShortcutManager.registerAction(WbAction)



initializeShortcut
protected void initializeShortcut()(Code)



isAltPressed
public static boolean isAltPressed(ActionEvent e)(Code)



isCtrlPressed
public static boolean isCtrlPressed(ActionEvent e)(Code)



isShiftPressed
public static boolean isShiftPressed(ActionEvent e)(Code)



removeFromInputMap
public void removeFromInputMap(InputMap im, ActionMap am)(Code)



removeIcon
public void removeIcon()(Code)



setAccelerator
public void setAccelerator(KeyStroke key)(Code)



setActionName
protected void setActionName(String aName)(Code)



setAlternateAccelerator
public void setAlternateAccelerator(KeyStroke key)(Code)



setCreateMenuSeparator
public void setCreateMenuSeparator(boolean flag)(Code)



setCreateToolbarSeparator
public void setCreateToolbarSeparator(boolean flag)(Code)



setDefaultAccelerator
public void setDefaultAccelerator(KeyStroke key)(Code)



setEnabled
public void setEnabled(boolean flag)(Code)



setIcon
public void setIcon(ImageIcon icon)(Code)



setMenuItemName
public void setMenuItemName(String aKey)(Code)



setMenuText
public void setMenuText(String text)(Code)
Define the displayed text for the associcated menu item If the text contains a & sign, the character after the & sign will be used as the Mnemonic for the menu item. Once the mnemonic is identified the passed text (after removing the & sign) will be set using putValue(Actin.NAME, Object)
Parameters:
  text - the text for the menu item
See Also:   WbAction.setMenuTextByKey(String)



setMenuTextByKey
public void setMenuTextByKey(String aKey)(Code)
Define the displayed menu text and tooltip. The passed key will be used to retrieve the real text from the ResourceManager. This will not register the Action with the ShortcutManager.
Parameters:
  aKey - The key for the ResourceManager
See Also:   workbench.resource.ResourceMgr.getString(String)
See Also:   workbench.resource.ResourceMgr.getDescription(String)
See Also:   WbAction.setMenuText(String)



setOriginal
public void setOriginal(WbAction org)(Code)



setProxy
protected void setProxy(WbAction p)(Code)



setTooltip
public void setTooltip(String aText)(Code)



Fields inherited from javax.swing.AbstractAction
protected SwingPropertyChangeSupport changeSupport(Code)(Java Doc)
protected boolean enabled(Code)(Java Doc)

Methods inherited from javax.swing.AbstractAction
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc)
public Object[] getKeys()(Code)(Java Doc)
public synchronized PropertyChangeListener[] getPropertyChangeListeners()(Code)(Java Doc)
public Object getValue(String key)(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public void putValue(String key, Object newValue)(Code)(Java Doc)
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void setEnabled(boolean newValue)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.