|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.ui.DesktopMenus
public class DesktopMenus
A class that creates the Ceryle desktop menus.
DocumentView,
GraphView| Constructor Summary | |
|---|---|
DesktopMenus(Desktop desktop)
Constructor with the Desktop desktop. |
|
| Method Summary | |
|---|---|
protected void |
addViewMenuItem(JMenuItem item)
Adds the JMenuItem item to the View list menu. |
protected void |
addViewMenuItems(JComponent menu,
boolean addNew)
Adds the View menu items to the provided JMenu. |
protected void |
complyWithDBAvailability(boolean hasCID,
boolean hasNID)
When hasCID is true, the Database menus comply with availability of the selected collection. |
protected void |
complyWithEditFontSize()
Enables or disables the Edit menu's "Font Size: Smaller" and "Font Size: Larger" menu items dependent on the font size of the current edit window. |
protected void |
complyWithGraphFontSize()
Enables or disables the Graph menu's "Font Size: Smaller" and "Font Size: Larger" menu items dependent on the font size of the current edit window. |
protected void |
complyWithView()
Enable, disable or modify any components based on which mode is current, View.NOTE, View.DOCUMENT, or View.GRAPH. |
protected void |
complyWithView(int type)
Enable, disable or modify any components based on the view type as an int, View.NOTE, View.DOCUMENT, or View.GRAPH. |
protected void |
createBookmarksMenu(JMenuBar menuBar)
Creates the Bookmarks menu provided with an existing menuBar. |
protected void |
createDatabaseMenu(JMenuBar menuBar)
Creates the Database menu provided with an existing menuBar. |
protected void |
createDesktopMenus()
Creates the Desktop menus using the localized ResourceBundle provided by the Message service. |
protected void |
createDocumentMenu(JMenuBar menuBar)
Creates the Document menu provided with an existing menuBar. |
protected void |
createEditMenu(JMenuBar menuBar)
Creates the Edit menu provided with an existing menuBar. |
protected void |
createGraphMenu(JMenuBar menuBar)
Creates the Graph menu provided with an existing menuBar. |
protected void |
createHelpMenu(JMenuBar menuBar)
Creates the Help menu provided with an existing menuBar. |
protected void |
createProjectMenu(JMenuBar menuBar)
Creates the Project menu provided with an existing menuBar. |
protected void |
createServerMenu(JMenuBar menuBar)
Creates the Help menu provided with an existing menuBar. |
protected void |
createViewMenu(JMenuBar menuBar)
Creates the View menu provided with an existing menuBar. |
protected void |
createWikiEventMonitor()
Creates the WikiEventMonitor console. |
JMenu |
getBGColorMenu()
Returns the Edit:Background Color menu. |
BookmarksMenu |
getBookmarksMenu()
Returns the current Bookmarks menu. |
JMenu |
getDatabaseMenu()
Returns the Database menu. |
JMenu |
getDocumentMenu()
Returns the Document menu. |
JMenu |
getEditMenu()
Returns the Edit menu. |
JMenu |
getFontSizeMenu()
Returns the Font Size submenu. |
JMenu |
getGraphFontSizeMenu()
Returns the Graph Font Size submenu. |
JMenu |
getGraphMenu()
Returns the Graph menu. |
JMenu |
getGraphOptionsMenu()
Returns the Graph Options submenu. |
JMenuBar |
getMenuBar()
Returns the menu bar. |
JMenu |
getNavigationMenu()
Returns the Graph:Navigation menu. |
JMenu |
getProjectMenu()
Returns the Project menu. |
JMenu |
getViewListMenu()
Returns the View List menu. |
JMenu |
getViewMenu()
Returns the View menu. |
protected void |
removeViewMenuItem(JMenuItem item)
Removes the JMenuItem item from the View list menu. |
protected void |
setEditFontSize(int direction)
Change the font size of the current editing view, smaller (if direction < 0) or larger (if direction > 0). |
protected void |
setGraphFontSize(int direction)
Change the font size of all graph views (since the font is statically shared among all), smaller (if direction < 0) or larger (if direction > 0). |
protected void |
setGraphNavEnabled(boolean enabled)
Enables or disables the graph navigation menu items (and their associated accelerators). |
protected void |
setNotesVisibleCheckBox(boolean visible)
Sets the View menu's Notes visibility check box to the value of the parameter. |
void |
setSelectedColorizeByDistance(boolean selected)
Sets the checkbox on the Graph menu's Colorize By Distance menu item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JMenuBar m_menuBar
protected JMenu view_menu
protected JMenu view_list_menu
protected JMenu doc_menu
protected JMenu proj_menu
protected JMenu edit_menu
protected JMenu show_menu
protected JMenu font_size_menu
protected JMenu bg_color_menu
protected JMenu db_menu
protected JMenu graph_menu
protected JMenu graph_font_size_menu
protected JMenu graph_nav_menu
protected JMenu graph_lens_menu
protected JMenu graph_options_menu
protected JMenu server_menu
protected BookmarksMenu bookmarks_menu
protected JMenuItem view_open_note
protected JMenuItem view_maximize
protected JMenuItem view_locbar_viz
protected JMenuItem view_loc_search_viz
protected JMenuItem view_tile_horiz
protected JMenuItem view_tile_vert
protected JMenuItem view_close
protected JMenuItem view_prev
protected JMenuItem view_next
protected JMenuItem view_iconify
protected JMenuItem view_status_viz
protected JMenuItem view_tooltips_viz
protected JMenuItem view_simple_menus
protected JMenuItem view_script_console
protected JMenuItem view_interpret_script
protected JMenuItem view_run_tests
protected JMenuItem view_run_test
protected JMenuItem view_save_session
protected JMenuItem proj_new_comp
protected JMenuItem proj_comp_for_doc
protected JMenuItem proj_add_doc
protected JMenuItem proj_view_docs
protected JMenuItem proj_rem_doc
protected JMenuItem proj_as_comp
protected JMenuItem proj_seq_horiz
protected JMenuItem proj_seq_vert
protected JMenuItem proj_compose
protected JMenuItem proj_view_mode
protected JMenuItem proj_reorient
protected JMenuItem proj_swap_view
protected JMenuItem proj_set_title
protected JMenuItem proj_docview
protected JMenuItem proj_graphview
protected JMenuItem proj_close
protected JMenuItem doc_new
protected JMenuItem doc_open
protected JMenuItem doc_set_title
protected JMenuItem doc_change_id
protected JMenuItem doc_import
protected JMenuItem doc_export_pdb
protected JMenuItem doc_save
protected JMenuItem doc_save_as
protected JMenuItem doc_as_proj
protected JMenuItem doc_close
protected JMenuItem doc_notemode
protected JMenuItem edit_undo
protected JMenuItem edit_redo
protected JMenuItem edit_cut
protected JMenuItem edit_copy
protected JMenuItem edit_paste
protected JMenuItem edit_sel_font
protected JMenuItem edit_fontsize_smaller
protected JMenuItem edit_fontsize_larger
protected JMenuItem edit_show_doc
protected JMenuItem edit_show_meta
protected JMenuItem edit_show_revs
protected JMenuItem edit_find
protected JMenuItem edit_find_next
protected JMenuItem edit_replace
protected JMenuItem edit_goto
protected JMenuItem edit_linewrap
protected JMenuItem edit_stats
protected JMenuItem edit_doc_check
protected JMenuItem edit_ruler
protected JMenuItem db_colnew
protected JMenuItem db_colopen
protected JMenuItem db_coldel
protected JMenuItem db_colindex
protected JMenuItem db_coltitle
protected JMenuItem db_colimp
protected JMenuItem db_colexp
protected JMenuItem db_nodenew
protected JMenuItem db_nodeget
protected JMenuItem db_nodemod
protected JMenuItem db_nodedup
protected JMenuItem db_nodedel
protected JMenuItem db_form
protected JMenuItem db_colviz
protected JMenuItem db_archive
protected JMenuItem db_restore
protected JMenuItem db_mgr
protected JMenuItem rev_mgr
protected JMenuItem graph_new
protected JMenuItem graph_open
protected JMenuItem graph_newtopic
protected JMenuItem graph_newassoc
protected JMenuItem graph_swaproles
protected JMenuItem graph_delsel
protected JMenuItem graph_find
protected JMenuItem graph_tmconsist
protected JMenuItem graph_reinit
protected JMenuItem graph_to_proj
protected JMenuItem graph_nav_center
protected JMenuItem graph_nav_clockwise
protected JMenuItem graph_nav_cclockwise
protected JMenuItem graph_nav_prev
protected JMenuItem graph_nav_next
protected JMenuItem graph_nav_cancel
protected JMenuItem graph_selstyle
protected JMenuItem graph_selclut
protected JMenuItem graph_assoc_viz
protected JMenuItem graph_occur_viz
protected JMenuItem graph_edges_viz
protected JMenuItem graph_fastdraw
protected JMenuItem graph_autocenter
protected