|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is part of an implementation of the Builder pattern which provides ways to dynamically build portions of a Swing application's User Interface. This mechanism was originally inspired by the 1999 verion of the Swing Notepad demo (version 1.15) by Timothy Prinzing, but has come a long way from the original adaptation. This implementation makes the technique into a full-blow implementation of the Builder pattern which is extensible to different types of physical UI layout representations.
This interface provides the basic part builder methods, but it doesn't define an equivalent getResult() method. The Director is expected to do what it needs with each of the individual pieces.
Method Summary | |
javax.swing.JMenu |
buildMenu(java.lang.String key)
This method builds a given menu based on the appropriate key value. |
javax.swing.JMenuBar |
buildMenuBar()
This method will build a completely initialized menu bar from the input source. |
javax.swing.JMenuBar |
buildMenuBar(java.lang.String key)
This method will build a completely initialized menu bar from the input source with the specified key. |
javax.swing.JMenuItem |
buildMenuItem(java.lang.String key)
This method builds a menu item based on the given key. |
Method Detail |
public javax.swing.JMenuBar buildMenuBar()
public javax.swing.JMenuBar buildMenuBar(java.lang.String key)
key
- the resource key for the menubar
public javax.swing.JMenu buildMenu(java.lang.String key)
key
- the key for the menu
public javax.swing.JMenuItem buildMenuItem(java.lang.String key)
key
- the key for the menu item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |