Tabnine Logo
AbstractTabbedUI.isGlobalMenu
Code IndexAdd Tabnine to your IDE (free)

How to use
isGlobalMenu
method
in
org.jfree.ui.tabbedui.AbstractTabbedUI

Best Java code snippets using org.jfree.ui.tabbedui.AbstractTabbedUI.isGlobalMenu (Showing top 9 results out of 315)

origin: org.jfree/com.springsource.org.jfree

/**
 * Adds a root editor.
 *
 * @param rootPanel the root panel.
 */
public void addRootEditor(final RootEditor rootPanel) {
  this.rootEditors.add(rootPanel);
  this.tabbedPane.add(rootPanel.getEditorName(), rootPanel.getMainPanel());
  rootPanel.addPropertyChangeListener("enabled", new TabEnableChangeListener());
  updateRootEditorEnabled(rootPanel);
  if (getRootEditorCount () == 1) {
    setSelectedEditor(0);
  }
  else if (isGlobalMenu()) {
    setJMenuBar(updateGlobalMenubar());
  }
}
origin: jfree/jcommon

/**
 * Adds a root editor.
 *
 * @param rootPanel the root panel.
 */
public void addRootEditor(final RootEditor rootPanel) {
  this.rootEditors.add(rootPanel);
  this.tabbedPane.add(rootPanel.getEditorName(), rootPanel.getMainPanel());
  rootPanel.addPropertyChangeListener("enabled", new TabEnableChangeListener());
  updateRootEditorEnabled(rootPanel);
  if (getRootEditorCount () == 1) {
    setSelectedEditor(0);
  }
  else if (isGlobalMenu()) {
    setJMenuBar(updateGlobalMenubar());
  }
}
origin: org.jfree/jcommon

/**
 * Adds a root editor.
 *
 * @param rootPanel the root panel.
 */
public void addRootEditor(final RootEditor rootPanel) {
  this.rootEditors.add(rootPanel);
  this.tabbedPane.add(rootPanel.getEditorName(), rootPanel.getMainPanel());
  rootPanel.addPropertyChangeListener("enabled", new TabEnableChangeListener());
  updateRootEditorEnabled(rootPanel);
  if (getRootEditorCount () == 1) {
    setSelectedEditor(0);
  }
  else if (isGlobalMenu()) {
    setJMenuBar(updateGlobalMenubar());
  }
}
origin: jfree/jcommon

/**
 * Creates a menu bar.
 *
 * @param root
 * @return A menu bar.
 */
private JMenuBar createEditorMenubar(final RootEditor root) {
  JMenuBar menuBar = getJMenuBar();
  if (menuBar == null) {
    menuBar = new JMenuBar();
  }
  else {
    menuBar.removeAll();
  }
  addMenus(menuBar, getPrefixMenus());
  if (isGlobalMenu())
  {
    for (int i = 0; i < this.rootEditors.size(); i++)
    {
      final RootEditor editor = (RootEditor) this.rootEditors.get(i);
      addMenus(menuBar, editor.getMenus());
    }
  }
  else
  {
    addMenus(menuBar, root.getMenus());
  }
  addMenus(menuBar, getPostfixMenus());
  return menuBar;
}
origin: org.jfree/jcommon

/**
 * Creates a menu bar.
 *
 * @param root
 * @return A menu bar.
 */
private JMenuBar createEditorMenubar(final RootEditor root) {
  JMenuBar menuBar = getJMenuBar();
  if (menuBar == null) {
    menuBar = new JMenuBar();
  }
  else {
    menuBar.removeAll();
  }
  addMenus(menuBar, getPrefixMenus());
  if (isGlobalMenu())
  {
    for (int i = 0; i < this.rootEditors.size(); i++)
    {
      final RootEditor editor = (RootEditor) this.rootEditors.get(i);
      addMenus(menuBar, editor.getMenus());
    }
  }
  else
  {
    addMenus(menuBar, root.getMenus());
  }
  addMenus(menuBar, getPostfixMenus());
  return menuBar;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Creates a menu bar.
 *
 * @param root
 * @return A menu bar.
 */
private JMenuBar createEditorMenubar(final RootEditor root) {
  JMenuBar menuBar = getJMenuBar();
  if (menuBar == null) {
    menuBar = new JMenuBar();
  }
  else {
    menuBar.removeAll();
  }
  addMenus(menuBar, getPrefixMenus());
  if (isGlobalMenu())
  {
    for (int i = 0; i < this.rootEditors.size(); i++)
    {
      final RootEditor editor = (RootEditor) this.rootEditors.get(i);
      addMenus(menuBar, editor.getMenus());
    }
  }
  else
  {
    addMenus(menuBar, root.getMenus());
  }
  addMenus(menuBar, getPostfixMenus());
  return menuBar;
}
origin: jfree/jcommon

/**
 * Sets the global menu flag.
 * 
 * @param globalMenu  the flag.
 */
public void setGlobalMenu(final boolean globalMenu) {
  this.globalMenu = globalMenu;
  if (isGlobalMenu()) {
    setJMenuBar(updateGlobalMenubar());
  }
  else {
    if (getRootEditorCount () > 0) {
     setJMenuBar(createEditorMenubar(getRootEditor(getSelectedEditor())));
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Sets the global menu flag.
 * 
 * @param globalMenu  the flag.
 */
public void setGlobalMenu(final boolean globalMenu) {
  this.globalMenu = globalMenu;
  if (isGlobalMenu()) {
    setJMenuBar(updateGlobalMenubar());
  }
  else {
    if (getRootEditorCount () > 0) {
     setJMenuBar(createEditorMenubar(getRootEditor(getSelectedEditor())));
    }
  }
}
origin: org.jfree/jcommon

/**
 * Sets the global menu flag.
 * 
 * @param globalMenu  the flag.
 */
public void setGlobalMenu(final boolean globalMenu) {
  this.globalMenu = globalMenu;
  if (isGlobalMenu()) {
    setJMenuBar(updateGlobalMenubar());
  }
  else {
    if (getRootEditorCount () > 0) {
     setJMenuBar(createEditorMenubar(getRootEditor(getSelectedEditor())));
    }
  }
}
org.jfree.ui.tabbeduiAbstractTabbedUIisGlobalMenu

Javadoc

Defines whether to use a global unified menu bar, which contains all menus from all tab-panes or whether to use local menubars.

From an usability point of view, global menubars should be preferred, as this way users always see which menus are possibly available and do not wonder where the menus are disappearing.

Popular methods of AbstractTabbedUI

  • add
  • addMenus
    Adds menus.
  • addPropertyChangeListener
  • attempExit
    Attempts to exit.
  • closeToolbar
    Closes the toolbar.
  • createCloseAction
    Creates a close action.
  • createEditorMenubar
    Creates a menu bar.
  • firePropertyChange
  • getCloseAction
    Returns the close action.
  • getJMenuBar
    Returns the menu bar.
  • getPostfixMenus
    The postfix menus.
  • getPrefixMenus
    Returns the prefix menus.
  • getPostfixMenus,
  • getPrefixMenus,
  • getRootEditor,
  • getRootEditorCount,
  • getSelectedEditor,
  • setJMenuBar,
  • setLayout,
  • setSelectedEditor,
  • updateGlobalMenubar

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now