Java Doc for SwingMenuBuilder.java in  » Internationalization-Localization » icu4j » com » ibm » richtext » swingui » 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 » Internationalization Localization » icu4j » com.ibm.richtext.swingui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.richtext.uiimpl.MenuBuilder
      com.ibm.richtext.swingui.SwingMenuBuilder

SwingMenuBuilder
final public class SwingMenuBuilder extends MenuBuilder (Code)
SwingMenuBuilder provides a method for creating a set of Swing menus for interacting with an MTextPanel. Future versions of this class may provide greater control over the menu contents.
See Also:   MTextPanel


Field Summary
final public static  intABOUT
     Id for a menu with an About item.
final public static  intBIDI
     Id for a menu that sets the primary run direction for a paragraph.
final static  StringCOPYRIGHT
    
final public static  intEDIT
     Id for an Edit menu.
final public static  intFLUSH
     Id for a paragraph alignment menu.
final public static  intKEYMAP
     Id for a menu that sets the KeyRemap on an MTextPanel.
final public static  intSIZE
     Id for the point sizes menu.
final public static  intSTYLE
     Id for a Style menu.


Method Summary
protected  DialogFactorycreateAboutDialogFactory()
    
public  voidcreateMenus(JMenuBar menuBar, MTextPanel textPanel, Frame frame)
     Add a standard set of menus to the given menu bar.
public  voidcreateMenus(JMenuBar menuBar, MTextPanel textPanel, Frame frame, int[] menus)
     Add a set of menus to the given menu bar.
protected  DialogFactorycreateNumberDialogFactory(String dialogTitle, String dialogMessage, Object key, boolean character)
    
protected  DialogFactorycreateObjectDialogFactory(String dialogTitle, String dialogMessage, Object key, boolean character, String[] names, Object[] values)
    
public static  SwingMenuBuildergetInstance()
     Return an instance of SwingMenuBuilder.
protected  voidhandleAddMenu(String key)
    

Field Detail
ABOUT
final public static int ABOUT(Code)
Id for a menu with an About item. When selected, the item displays a Frame containing some self-promotional text.



BIDI
final public static int BIDI(Code)
Id for a menu that sets the primary run direction for a paragraph. Run direction can be left-to-right, right-to-left, or can use the default run direction from the Unicode bidi algorithm.



COPYRIGHT
final static String COPYRIGHT(Code)



EDIT
final public static int EDIT(Code)
Id for an Edit menu. The Edit menu has the following items:
  • Undo - invoke undo() on the MTextPanel
  • Redo - invoke redo() on the MTextPanel
  • Cut - invoke cut() on the MTextPanel
  • Copy - invoke copy() on the MTextPanel
  • Paste - invoke paste() on the MTextPanel
  • Clear - invoke clear() on the MTextPanel
  • Select All - invoke selectAll() on the MTextPanel



FLUSH
final public static int FLUSH(Code)
Id for a paragraph alignment menu. The menu has the following items:
  • Leading - give selected paragraph(s) LEADING flush
  • Center - give selected paragraph(s) CENTER flush
  • Trailing - give selected paragraph(s) TRAILING flush
  • Justified - give selected paragraph(s) full justification



KEYMAP
final public static int KEYMAP(Code)
Id for a menu that sets the KeyRemap on an MTextPanel. The menu has the following items:
  • Default - set KeyRemap to identity remap
  • Arabic - set KeyRemap to Arabic transliteration
  • Hebrew - set KeyRemap to Hebrew transliteration
  • Israel Nikud - set KeyRemap to Israel Nikud
  • Thai Ketmanee - set KeyRemap to Thai Ketmanee



SIZE
final public static int SIZE(Code)
Id for the point sizes menu. The menu has items that set the size of a character in a typeface.



STYLE
final public static int STYLE(Code)
Id for a Style menu. The Style menu has the following items:
  • Plain - remove WEIGHT, POSTURE, UNDERLINE and STRIKETHROUGH attributes from the current selection
  • Bold - add {WEIGHT,WEIGHT_BOLD} to the current selection
  • Italic - add {POSTURE,POSTURE_ITALIC} to the current selection
  • Underline - add {UNDERLINE,UNDERLINE_ON} to the current selection
  • Strikethrough - add {STRIKETHROUGH,STRIKETHROUGH_ON} to the current selection
  • Font... - display a dialog allowing the user to select a typeface (font family) for the current selection
  • Forecolor... - display a dialog allowing the user to select a foreground color for the current selection
  • Backcolor... - display a dialog allowing the user to select a background color for the current selection





Method Detail
createAboutDialogFactory
protected DialogFactory createAboutDialogFactory()(Code)



createMenus
public void createMenus(JMenuBar menuBar, MTextPanel textPanel, Frame frame)(Code)
Add a standard set of menus to the given menu bar. The menus will interact with the given MTextPanel.
Parameters:
  menuBar - the MenuBar to which menus are added
Parameters:
  textPanel - the MTextPanel with which the menus interact
Parameters:
  frame - a Frame to use as the parent of any dialogs created by a a menu item. If null, menu items which create dialogs will be omitted.



createMenus
public void createMenus(JMenuBar menuBar, MTextPanel textPanel, Frame frame, int[] menus)(Code)
Add a set of menus to the given menu bar. The menus will interact with the given MTextPanel.
Parameters:
  menuBar - the MenuBar to which menus are added
Parameters:
  textPanel - the MTextPanel with which the menus interact
Parameters:
  frame - a Frame to use as the parent of any dialogs created by a a menu item. If null, menu items which create dialogs will be omitted.
Parameters:
  menus - an array of integer menu id's. Each element of thearray must be one of this class's menu id constants. If null,the default menus are created.



createNumberDialogFactory
protected DialogFactory createNumberDialogFactory(String dialogTitle, String dialogMessage, Object key, boolean character)(Code)



createObjectDialogFactory
protected DialogFactory createObjectDialogFactory(String dialogTitle, String dialogMessage, Object key, boolean character, String[] names, Object[] values)(Code)



getInstance
public static SwingMenuBuilder getInstance()(Code)
Return an instance of SwingMenuBuilder.



handleAddMenu
protected void handleAddMenu(String key)(Code)



Fields inherited from com.ibm.richtext.uiimpl.MenuBuilder
final public static int ABOUT(Code)(Java Doc)
final public static int BIDI(Code)(Java Doc)
final public static int EDIT(Code)(Java Doc)
final public static int FLUSH(Code)(Java Doc)
final public static int KEYMAP(Code)(Java Doc)
final public static int SIZE(Code)(Java Doc)
final public static int STYLE(Code)(Java Doc)
protected int[] defaultMenus(Code)(Java Doc)
protected Frame fDialogParent(Code)(Java Doc)
protected MTextPanel fTextPanel(Code)(Java Doc)

Methods inherited from com.ibm.richtext.uiimpl.MenuBuilder
abstract protected DialogFactory createAboutDialogFactory()(Code)(Java Doc)
abstract protected DialogFactory createNumberDialogFactory(String dialogTitle, String dialogText, Object key, boolean character)(Code)(Java Doc)
abstract protected DialogFactory createObjectDialogFactory(String dialogTitle, String dialogText, Object key, boolean character, String[] names, Object[] values)(Code)(Java Doc)
final protected void doCreateMenus(MTextPanel textPanel, Frame frame, int[] menus)(Code)(Java Doc)
abstract protected void handleAddMenu(String key)(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.