Tabnine Logo
RootEditor
Code IndexAdd Tabnine to your IDE (free)

How to use
RootEditor
in
org.jfree.ui.tabbedui

Best Java code snippets using org.jfree.ui.tabbedui.RootEditor (Showing top 15 results out of 315)

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

final RootEditor container =
  (RootEditor) this.rootEditors.get(i);
if (container.isActive() && (shouldBeActive == false)) {
  container.setActive(false);
final RootEditor container =
  (RootEditor) this.rootEditors.get(i);
if ((container.isActive() == false) && (shouldBeActive == true)) {
  container.setActive(true);
  setJMenuBar(createEditorMenubar(container));
  this.currentToolbar = container.getToolbar();
  if (this.currentToolbar != null) {
    this.toolbarContainer.add
origin: org.jfree/com.springsource.org.jfree

  /**
   * Update handler for the enable state of the root editor.
   * 
   * @param editor  the editor.
   */
  protected void updateRootEditorEnabled(final RootEditor editor) {

    final boolean enabled = editor.isEnabled();
    for (int i = 0; i < this.tabbedPane.getTabCount(); i++) {
      final Component tab = this.tabbedPane.getComponentAt(i);
      if (tab == editor.getMainPanel()) {
        this.tabbedPane.setEnabledAt(i, enabled);
        return;
      }
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Updates the global menu bar.
 * @return the fully initialized menu bar.
 */
private JMenuBar updateGlobalMenubar () {
 JMenuBar menuBar = getJMenuBar();
 if (menuBar == null) {
   menuBar = new JMenuBar();
 }
 else {
   menuBar.removeAll();
 }
 addMenus(menuBar, getPrefixMenus());
 for (int i = 0; i < this.rootEditors.size(); i++)
 {
   final RootEditor editor = (RootEditor) this.rootEditors.get(i);
   addMenus(menuBar, editor.getMenus());
 }
 addMenus(menuBar, getPostfixMenus());
 return menuBar;
}
origin: jfree/jcommon

/**
 * Updates the global menu bar.
 * @return the fully initialized menu bar.
 */
private JMenuBar updateGlobalMenubar () {
 JMenuBar menuBar = getJMenuBar();
 if (menuBar == null) {
   menuBar = new JMenuBar();
 }
 else {
   menuBar.removeAll();
 }
 addMenus(menuBar, getPrefixMenus());
 for (int i = 0; i < this.rootEditors.size(); i++)
 {
   final RootEditor editor = (RootEditor) this.rootEditors.get(i);
   addMenus(menuBar, editor.getMenus());
 }
 addMenus(menuBar, getPostfixMenus());
 return menuBar;
}
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

final RootEditor container =
  (RootEditor) this.rootEditors.get(i);
if (container.isActive() && (shouldBeActive == false)) {
  container.setActive(false);
final RootEditor container =
  (RootEditor) this.rootEditors.get(i);
if ((container.isActive() == false) && (shouldBeActive == true)) {
  container.setActive(true);
  setJMenuBar(createEditorMenubar(container));
  this.currentToolbar = container.getToolbar();
  if (this.currentToolbar != null) {
    this.toolbarContainer.add
origin: jfree/jcommon

  /**
   * Update handler for the enable state of the root editor.
   * 
   * @param editor  the editor.
   */
  protected void updateRootEditorEnabled(final RootEditor editor) {

    final boolean enabled = editor.isEnabled();
    for (int i = 0; i < this.tabbedPane.getTabCount(); i++) {
      final Component tab = this.tabbedPane.getComponentAt(i);
      if (tab == editor.getMainPanel()) {
        this.tabbedPane.setEnabledAt(i, enabled);
        return;
      }
    }
  }
}
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/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: org.jfree/com.springsource.org.jfree

final RootEditor container =
  (RootEditor) this.rootEditors.get(i);
if (container.isActive() && (shouldBeActive == false)) {
  container.setActive(false);
final RootEditor container =
  (RootEditor) this.rootEditors.get(i);
if ((container.isActive() == false) && (shouldBeActive == true)) {
  container.setActive(true);
  setJMenuBar(createEditorMenubar(container));
  this.currentToolbar = container.getToolbar();
  if (this.currentToolbar != null) {
    this.toolbarContainer.add
origin: org.jfree/jcommon

  /**
   * Update handler for the enable state of the root editor.
   * 
   * @param editor  the editor.
   */
  protected void updateRootEditorEnabled(final RootEditor editor) {

    final boolean enabled = editor.isEnabled();
    for (int i = 0; i < this.tabbedPane.getTabCount(); i++) {
      final Component tab = this.tabbedPane.getComponentAt(i);
      if (tab == editor.getMainPanel()) {
        this.tabbedPane.setEnabledAt(i, enabled);
        return;
      }
    }
  }
}
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: org.jfree/jcommon

/**
 * Updates the global menu bar.
 * @return the fully initialized menu bar.
 */
private JMenuBar updateGlobalMenubar () {
 JMenuBar menuBar = getJMenuBar();
 if (menuBar == null) {
   menuBar = new JMenuBar();
 }
 else {
   menuBar.removeAll();
 }
 addMenus(menuBar, getPrefixMenus());
 for (int i = 0; i < this.rootEditors.size(); i++)
 {
   final RootEditor editor = (RootEditor) this.rootEditors.get(i);
   addMenus(menuBar, editor.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;
}
org.jfree.ui.tabbeduiRootEditor

Javadoc

A root editor reprensents a tab in a TabbedUI.

Most used methods

  • addPropertyChangeListener
    Adds a property change listener.
  • getEditorName
    Returns the editor name.
  • getMainPanel
    Returns the main panel.
  • getMenus
    Returns the menus.
  • getToolbar
    Returns the toolbar.
  • isActive
    Returns the active or inactive status of the editor.
  • isEnabled
    Checks, whether this root editor is enabled.
  • setActive
    Sets the editor active or inactive.

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Path (java.nio.file)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top Vim 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