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

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

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

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

/**
 * 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/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

/**
 * 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.tabbeduiAbstractTabbedUIupdateGlobalMenubar

Javadoc

Updates the global menu bar.

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,
  • isGlobalMenu,
  • setJMenuBar,
  • setLayout,
  • setSelectedEditor

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • From CI to AI: The AI layer in your organization
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