Java Doc for XEditorMenu.java in  » XML-UI » XUI » net » xoetrope » builder » 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 » XML UI » XUI » net.xoetrope.builder.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JMenuBar
   net.xoetrope.builder.editor.XEditorMenu

XEditorMenu
public class XEditorMenu extends JMenuBar implements ItemListener,ActionListener,ProjectListener,MenuListener,PluginListener(Code)
A set of menus for the editor

Copyright: Copyright (c) Xoetrope Ltd., 1998-2003

$Revision: 1.19 $


Field Summary
final public static  intID_MENU_ALIGN_BOTTOM
    
final public static  intID_MENU_ALIGN_CENTER
    
final public static  intID_MENU_ALIGN_LEFT
    
final public static  intID_MENU_ALIGN_RIGHT
    
final public static  intID_MENU_ALIGN_TOP
    
final public static  intID_MENU_COPY
    
final public static  intID_MENU_CUT
    
final public static  intID_MENU_DELETE
    
final public static  intID_MENU_EXIT_IDE
    
final public static  intID_MENU_HELP_ABOUT
    
final public static  intID_MENU_HELP_CONTENTS
    
final public static  intID_MENU_JUSTIFY_HORZ
    
final public static  intID_MENU_JUSTIFY_VERT
    
final public static  intID_MENU_NEW_PAGE
    
final public static  intID_MENU_NEW_PROJECT
    
final public static  intID_MENU_OPEN_PROJECT
    
final public static  intID_MENU_PASTE
    
final public static  intID_MENU_PLUGIN_0
    
final public static  intID_MENU_PLUGIN_ADD
    
final public static  intID_MENU_PLUGIN_REMOVE
    
final public static  intID_MENU_SAVEAS_PROJECT
    
final public static  intID_MENU_SAVE_PROJECT
    
final public static  intID_MENU_TEST_BUILD
    
final public static  intID_MENU_TEST_BUNDLE
    
final public static  intID_MENU_TEST_PREVIEW
    
final public static  intID_MENU_VIEW_DATA
    
final public static  intID_MENU_VIEW_DESIGN
    
final public static  intID_MENU_VIEW_FRAMES
    
final public static  intID_MENU_VIEW_GRID
    
final public static  intID_MENU_VIEW_LAF
    
final public static  intID_MENU_VIEW_MESSAGES
    
final public static  intID_MENU_VIEW_PAGE_BORDER
    
final public static  intID_MENU_VIEW_PROJECT
    
final public static  intID_MENU_VIEW_PROPERTIES
    
final public static  intID_MENU_VIEW_SOURCE
    
final public static  intID_MENU_VIEW_STYLES
    
final public static  intID_MENU_VIEW_TOOLBOX
    
final public static  intID_MENU_VIEW_VALIDATIONS
    
final public static  intID_MENU_VIEW_XML
    
final public static  intID_VIEW_DEVMODE
    
final public static  intID_VIEW_EXPERTMODE
    
final public static  intID_VIEW_NOVICEMODE
    
final public static  StringMENU_ALIGN_BOTTOM
    
final public static  StringMENU_ALIGN_CENTER
    
final public static  StringMENU_ALIGN_LEFT
    
final public static  StringMENU_ALIGN_RIGHT
    
final public static  StringMENU_ALIGN_TOP
    
final public static  StringMENU_COPY
    
final public static  StringMENU_CUT
    
final public static  StringMENU_DELETE
    
final public static  StringMENU_EXIT_IDE
    
final public static  StringMENU_HELP_ABOUT
    
final public static  StringMENU_HELP_CONTENTS
    
final public static  StringMENU_JUSTIFY_HORZ
    
final public static  StringMENU_JUSTIFY_VERT
    
final public static  StringMENU_NEW_PAGE
    
final public static  StringMENU_NEW_PROJECT
    
final public static  StringMENU_OPEN_PROJECT
    
final public static  StringMENU_PASTE
    
final public static  StringMENU_PLUGIN_ADD
    
final public static  StringMENU_PLUGIN_REMOVE
    
final public static  StringMENU_SAVEAS_PROJECT
    
final public static  StringMENU_SAVE_PROJECT
    
final public static  StringMENU_TEST_BUILD
    
final public static  StringMENU_TEST_BUNDLE
    
final public static  StringMENU_TEST_PREVIEW
    
final public static  StringMENU_VIEW_DATA
    
final public static  StringMENU_VIEW_DESIGN
    
final public static  StringMENU_VIEW_DEVMODE
    
final public static  StringMENU_VIEW_EXPERTMODE
    
final public static  StringMENU_VIEW_FRAMES
    
final public static  StringMENU_VIEW_GRID
    
final public static  StringMENU_VIEW_LAF
    
final public static  StringMENU_VIEW_MESSAGES
    
final public static  StringMENU_VIEW_NOVICEMODE
    
final public static  StringMENU_VIEW_PAGES
    
final public static  StringMENU_VIEW_PROJECT
    
final public static  StringMENU_VIEW_PROPERTIES
    
final public static  StringMENU_VIEW_SOURCE
    
final public static  StringMENU_VIEW_STYLES
    
final public static  StringMENU_VIEW_TOOLBOX
    
final public static  StringMENU_VIEW_VALIDATIONS
    
final public static  StringMENU_VIEW_XML
    

Constructor Summary
public  XEditorMenu(XuiEditor _editor)
    

Method Summary
public  voidactionPerformed(ActionEvent evt)
    
public  JCheckBoxMenuItemaddCheckMenuItem(JMenu menu, String menuText, char mnemonicChar, int shortCutKey, boolean state)
    
public  JMenuItemaddMenuItem(JMenu menu, String menuText, char mnemonicChar, int shortCutKey)
    
public  JRadioButtonMenuItemaddRadioButtonItem(JMenu menu, String menuText, char mnemonicChar, int shortCutKey, boolean state)
    
public static  intgetCommandId(String name)
    
public  voidinitAlignmentMenu(boolean enabled)
    
public  voidinitEditMenu(boolean cut, boolean copy, boolean paste, boolean delete)
    
public  voidinitViewMenu(boolean hasFrames, boolean hasGrid, boolean hasPageBorders, boolean hasMessages)
    
public  voidinsertMenu(JMenu contextMenu)
    
public  voiditemStateChanged(ItemEvent evt)
    
public  voidmenuCanceled(MenuEvent e)
    
public  voidmenuDeselected(MenuEvent e)
    
public  voidmenuSelected(MenuEvent e)
    
public  voidpluginsLoaded()
    
public  voidprojectLoaded(XEditorProject project)
    
public  voidprojectUpdated()
    
public  voidresetPluginsMenu()
    
public  voidsave()
    
public  voidsetCommandListener(CommandListener listener)
    
public  voidsetMenuListener(MenuListener l)
    
public  voidsetRecentFile(String fileName)
    

Field Detail
ID_MENU_ALIGN_BOTTOM
final public static int ID_MENU_ALIGN_BOTTOM(Code)



ID_MENU_ALIGN_CENTER
final public static int ID_MENU_ALIGN_CENTER(Code)



ID_MENU_ALIGN_LEFT
final public static int ID_MENU_ALIGN_LEFT(Code)



ID_MENU_ALIGN_RIGHT
final public static int ID_MENU_ALIGN_RIGHT(Code)



ID_MENU_ALIGN_TOP
final public static int ID_MENU_ALIGN_TOP(Code)



ID_MENU_COPY
final public static int ID_MENU_COPY(Code)



ID_MENU_CUT
final public static int ID_MENU_CUT(Code)



ID_MENU_DELETE
final public static int ID_MENU_DELETE(Code)



ID_MENU_EXIT_IDE
final public static int ID_MENU_EXIT_IDE(Code)



ID_MENU_HELP_ABOUT
final public static int ID_MENU_HELP_ABOUT(Code)



ID_MENU_HELP_CONTENTS
final public static int ID_MENU_HELP_CONTENTS(Code)



ID_MENU_JUSTIFY_HORZ
final public static int ID_MENU_JUSTIFY_HORZ(Code)



ID_MENU_JUSTIFY_VERT
final public static int ID_MENU_JUSTIFY_VERT(Code)



ID_MENU_NEW_PAGE
final public static int ID_MENU_NEW_PAGE(Code)



ID_MENU_NEW_PROJECT
final public static int ID_MENU_NEW_PROJECT(Code)



ID_MENU_OPEN_PROJECT
final public static int ID_MENU_OPEN_PROJECT(Code)



ID_MENU_PASTE
final public static int ID_MENU_PASTE(Code)



ID_MENU_PLUGIN_0
final public static int ID_MENU_PLUGIN_0(Code)



ID_MENU_PLUGIN_ADD
final public static int ID_MENU_PLUGIN_ADD(Code)



ID_MENU_PLUGIN_REMOVE
final public static int ID_MENU_PLUGIN_REMOVE(Code)



ID_MENU_SAVEAS_PROJECT
final public static int ID_MENU_SAVEAS_PROJECT(Code)



ID_MENU_SAVE_PROJECT
final public static int ID_MENU_SAVE_PROJECT(Code)



ID_MENU_TEST_BUILD
final public static int ID_MENU_TEST_BUILD(Code)



ID_MENU_TEST_BUNDLE
final public static int ID_MENU_TEST_BUNDLE(Code)



ID_MENU_TEST_PREVIEW
final public static int ID_MENU_TEST_PREVIEW(Code)



ID_MENU_VIEW_DATA
final public static int ID_MENU_VIEW_DATA(Code)



ID_MENU_VIEW_DESIGN
final public static int ID_MENU_VIEW_DESIGN(Code)



ID_MENU_VIEW_FRAMES
final public static int ID_MENU_VIEW_FRAMES(Code)



ID_MENU_VIEW_GRID
final public static int ID_MENU_VIEW_GRID(Code)



ID_MENU_VIEW_LAF
final public static int ID_MENU_VIEW_LAF(Code)



ID_MENU_VIEW_MESSAGES
final public static int ID_MENU_VIEW_MESSAGES(Code)



ID_MENU_VIEW_PAGE_BORDER
final public static int ID_MENU_VIEW_PAGE_BORDER(Code)



ID_MENU_VIEW_PROJECT
final public static int ID_MENU_VIEW_PROJECT(Code)



ID_MENU_VIEW_PROPERTIES
final public static int ID_MENU_VIEW_PROPERTIES(Code)



ID_MENU_VIEW_SOURCE
final public static int ID_MENU_VIEW_SOURCE(Code)



ID_MENU_VIEW_STYLES
final public static int ID_MENU_VIEW_STYLES(Code)



ID_MENU_VIEW_TOOLBOX
final public static int ID_MENU_VIEW_TOOLBOX(Code)



ID_MENU_VIEW_VALIDATIONS
final public static int ID_MENU_VIEW_VALIDATIONS(Code)



ID_MENU_VIEW_XML
final public static int ID_MENU_VIEW_XML(Code)



ID_VIEW_DEVMODE
final public static int ID_VIEW_DEVMODE(Code)



ID_VIEW_EXPERTMODE
final public static int ID_VIEW_EXPERTMODE(Code)



ID_VIEW_NOVICEMODE
final public static int ID_VIEW_NOVICEMODE(Code)



MENU_ALIGN_BOTTOM
final public static String MENU_ALIGN_BOTTOM(Code)



MENU_ALIGN_CENTER
final public static String MENU_ALIGN_CENTER(Code)



MENU_ALIGN_LEFT
final public static String MENU_ALIGN_LEFT(Code)



MENU_ALIGN_RIGHT
final public static String MENU_ALIGN_RIGHT(Code)



MENU_ALIGN_TOP
final public static String MENU_ALIGN_TOP(Code)



MENU_COPY
final public static String MENU_COPY(Code)



MENU_CUT
final public static String MENU_CUT(Code)



MENU_DELETE
final public static String MENU_DELETE(Code)



MENU_EXIT_IDE
final public static String MENU_EXIT_IDE(Code)



MENU_HELP_ABOUT
final public static String MENU_HELP_ABOUT(Code)



MENU_HELP_CONTENTS
final public static String MENU_HELP_CONTENTS(Code)



MENU_JUSTIFY_HORZ
final public static String MENU_JUSTIFY_HORZ(Code)



MENU_JUSTIFY_VERT
final public static String MENU_JUSTIFY_VERT(Code)



MENU_NEW_PAGE
final public static String MENU_NEW_PAGE(Code)



MENU_NEW_PROJECT
final public static String MENU_NEW_PROJECT(Code)



MENU_OPEN_PROJECT
final public static String MENU_OPEN_PROJECT(Code)



MENU_PASTE
final public static String MENU_PASTE(Code)



MENU_PLUGIN_ADD
final public static String MENU_PLUGIN_ADD(Code)



MENU_PLUGIN_REMOVE
final public static String MENU_PLUGIN_REMOVE(Code)



MENU_SAVEAS_PROJECT
final public static String MENU_SAVEAS_PROJECT(Code)



MENU_SAVE_PROJECT
final public static String MENU_SAVE_PROJECT(Code)



MENU_TEST_BUILD
final public static String MENU_TEST_BUILD(Code)



MENU_TEST_BUNDLE
final public static String MENU_TEST_BUNDLE(Code)



MENU_TEST_PREVIEW
final public static String MENU_TEST_PREVIEW(Code)



MENU_VIEW_DATA
final public static String MENU_VIEW_DATA(Code)



MENU_VIEW_DESIGN
final public static String MENU_VIEW_DESIGN(Code)



MENU_VIEW_DEVMODE
final public static String MENU_VIEW_DEVMODE(Code)



MENU_VIEW_EXPERTMODE
final public static String MENU_VIEW_EXPERTMODE(Code)



MENU_VIEW_FRAMES
final public static String MENU_VIEW_FRAMES(Code)



MENU_VIEW_GRID
final public static String MENU_VIEW_GRID(Code)



MENU_VIEW_LAF
final public static String MENU_VIEW_LAF(Code)



MENU_VIEW_MESSAGES
final public static String MENU_VIEW_MESSAGES(Code)



MENU_VIEW_NOVICEMODE
final public static String MENU_VIEW_NOVICEMODE(Code)



MENU_VIEW_PAGES
final public static String MENU_VIEW_PAGES(Code)



MENU_VIEW_PROJECT
final public static String MENU_VIEW_PROJECT(Code)



MENU_VIEW_PROPERTIES
final public static String MENU_VIEW_PROPERTIES(Code)



MENU_VIEW_SOURCE
final public static String MENU_VIEW_SOURCE(Code)



MENU_VIEW_STYLES
final public static String MENU_VIEW_STYLES(Code)



MENU_VIEW_TOOLBOX
final public static String MENU_VIEW_TOOLBOX(Code)



MENU_VIEW_VALIDATIONS
final public static String MENU_VIEW_VALIDATIONS(Code)



MENU_VIEW_XML
final public static String MENU_VIEW_XML(Code)




Constructor Detail
XEditorMenu
public XEditorMenu(XuiEditor _editor)(Code)




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



addCheckMenuItem
public JCheckBoxMenuItem addCheckMenuItem(JMenu menu, String menuText, char mnemonicChar, int shortCutKey, boolean state)(Code)
Adds a menu item
Parameters:
  menu - the target menu
Parameters:
  menuText - the command text to appear on the menu
Parameters:
  mnemonicChar - the underlined letter
Parameters:
  shortCutKey - the accelerator key code
Parameters:
  state - the state of the checkbox item the new menu item



addMenuItem
public JMenuItem addMenuItem(JMenu menu, String menuText, char mnemonicChar, int shortCutKey)(Code)
Adds a menu item
Parameters:
  menu - the target menu
Parameters:
  menuText - the command text to appear on the menu
Parameters:
  mnemonicChar - the underlined letter
Parameters:
  shortCutKey - the accelerator key code the new menu item



addRadioButtonItem
public JRadioButtonMenuItem addRadioButtonItem(JMenu menu, String menuText, char mnemonicChar, int shortCutKey, boolean state)(Code)
Adds a menu item
Parameters:
  menu - the target menu
Parameters:
  menuText - the command text to appear on the menu
Parameters:
  mnemonicChar - the underlined letter
Parameters:
  shortCutKey - the accelerator key code
Parameters:
  state - the state of the radiobitton item the new menu item



getCommandId
public static int getCommandId(String name)(Code)



initAlignmentMenu
public void initAlignmentMenu(boolean enabled)(Code)
Initialize the alignment menu items
Parameters:
  enabled - true to enable the menuitem



initEditMenu
public void initEditMenu(boolean cut, boolean copy, boolean paste, boolean delete)(Code)
Change the state of the edit menu
Parameters:
  cut - enable the cut menu item
Parameters:
  copy - enable the copy menu item
Parameters:
  paste - enable the paste menu item
Parameters:
  delete - enable the cut delete item



initViewMenu
public void initViewMenu(boolean hasFrames, boolean hasGrid, boolean hasPageBorders, boolean hasMessages)(Code)
(Re)Initialize the view menu
Parameters:
  hasFrames - is the frameset visible or just the contents element
Parameters:
  hasGrid - is the grid visible
Parameters:
  hasPageBorders - are the pages shown with borders (relates to frames)
Parameters:
  hasMessages - is the message area visible



insertMenu
public void insertMenu(JMenu contextMenu)(Code)
Insert a context based menu second from the right - just before the help menu
Parameters:
  contextMenu -



itemStateChanged
public void itemStateChanged(ItemEvent evt)(Code)



menuCanceled
public void menuCanceled(MenuEvent e)(Code)
Delegate the menu event to the selected tab panel
Parameters:
  e - the menu event



menuDeselected
public void menuDeselected(MenuEvent e)(Code)
Delegate the menu event to the selected tab panel
Parameters:
  e - the menu event



menuSelected
public void menuSelected(MenuEvent e)(Code)
Delegate the menu event to the selected tab panel
Parameters:
  e - the menu event



pluginsLoaded
public void pluginsLoaded()(Code)
Add the plugins



projectLoaded
public void projectLoaded(XEditorProject project)(Code)



projectUpdated
public void projectUpdated()(Code)
The project has been updated



resetPluginsMenu
public void resetPluginsMenu()(Code)
Clear the plugins menu



save
public void save()(Code)



setCommandListener
public void setCommandListener(CommandListener listener)(Code)



setMenuListener
public void setMenuListener(MenuListener l)(Code)
Set a listener for the menu events so that the state can be changed prior to display
Parameters:
  l - the menu listener



setRecentFile
public void setRecentFile(String fileName)(Code)



Methods inherited from javax.swing.JMenuBar
public JMenu add(JMenu c)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public Component getComponent()(Code)(Java Doc)
public Component getComponentAtIndex(int i)(Code)(Java Doc)
public int getComponentIndex(Component c)(Code)(Java Doc)
public JMenu getHelpMenu()(Code)(Java Doc)
public Insets getMargin()(Code)(Java Doc)
public JMenu getMenu(int index)(Code)(Java Doc)
public int getMenuCount()(Code)(Java Doc)
public SingleSelectionModel getSelectionModel()(Code)(Java Doc)
public MenuElement[] getSubElements()(Code)(Java Doc)
public MenuBarUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public boolean isBorderPainted()(Code)(Java Doc)
public boolean isSelected()(Code)(Java Doc)
public void menuSelectionChanged(boolean isIncluded)(Code)(Java Doc)
protected void paintBorder(Graphics g)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)(Code)(Java Doc)
public void processKeyEvent(KeyEvent e, MenuElement path, MenuSelectionManager manager)(Code)(Java Doc)
public void processMouseEvent(MouseEvent event, MenuElement path, MenuSelectionManager manager)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public void setBorderPainted(boolean b)(Code)(Java Doc)
public void setHelpMenu(JMenu menu)(Code)(Java Doc)
public void setMargin(Insets m)(Code)(Java Doc)
public void setSelected(Component sel)(Code)(Java Doc)
public void setSelectionModel(SingleSelectionModel model)(Code)(Java Doc)
public void setUI(MenuBarUI ui)(Code)(Java Doc)
public void updateUI()(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.