congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AbstractTabbedUI
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jfree/jcommon

/**
 * Default constructor.
 */
public AbstractTabbedUI() {
  this.selectedRootEditor = -1;
  this.toolbarContainer = new JPanel();
  this.toolbarContainer.setLayout(new BorderLayout());
  this.tabbedPane = new JTabbedPane(SwingConstants.BOTTOM);
  this.tabbedPane.addChangeListener(new TabChangeHandler(this.tabbedPane));
  this.rootEditors = new ArrayList();
  setLayout(new BorderLayout());
  add(this.toolbarContainer, BorderLayout.NORTH);
  add(this.tabbedPane, BorderLayout.CENTER);
  this.closeAction = createCloseAction();
}
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: jfree/jcommon

/**
 * Invoked when an action occurs.
 *
 * @param e the event.
 */
public void actionPerformed(final ActionEvent e) {
  attempExit();
}
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())));
    }
  }
}
origin: jfree/jcommon

closeToolbar();
this.toolbarContainer.removeAll();
this.currentToolbar = null;
if ((container.isActive() == false) && (shouldBeActive == true)) {
  container.setActive(true);
  setJMenuBar(createEditorMenubar(container));
  this.currentToolbar = container.getToolbar();
  if (this.currentToolbar != null) {
  this.getJMenuBar().repaint();
origin: jfree/jcommon

/**
 * Initialises the applet.
 *
 * @param tabbedUI  the UI that controls the applet.
 */
public void init(final AbstractTabbedUI tabbedUI) {
  this.tabbedUI = tabbedUI;
  this.tabbedUI.addPropertyChangeListener
    (AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener());
  final JPanel panel = new JPanel();
  panel.setLayout(new BorderLayout());
  panel.add(tabbedUI, BorderLayout.CENTER);
  setContentPane(panel);
  setJMenuBar(tabbedUI.getJMenuBar());
}
origin: jfree/jcommon

  /**
   * This method gets called when a bound property is changed.
   *
   * @param evt A PropertyChangeEvent object describing the event source
   *            and the property that has changed.
   */
  public void propertyChange(final PropertyChangeEvent evt) {
    if (evt.getPropertyName().equals(AbstractTabbedUI.JMENUBAR_PROPERTY)) {
      setJMenuBar(getTabbedUI().getJMenuBar());
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

  public void windowClosing(final WindowEvent e) {
    getTabbedUI().getCloseAction().actionPerformed
      (new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0));
  }
});
origin: org.jfree/jcommon

/**
 * Sets the menu bar.
 * 
 * @param menuBar  the menu bar.
 */
protected void setJMenuBar(final JMenuBar menuBar) {
  final JMenuBar oldMenuBar = this.jMenuBar;
  this.jMenuBar = menuBar;
  firePropertyChange(JMENUBAR_PROPERTY, oldMenuBar, menuBar);
}
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

closeToolbar();
this.toolbarContainer.removeAll();
this.currentToolbar = null;
if ((container.isActive() == false) && (shouldBeActive == true)) {
  container.setActive(true);
  setJMenuBar(createEditorMenubar(container));
  this.currentToolbar = container.getToolbar();
  if (this.currentToolbar != null) {
  this.getJMenuBar().repaint();
origin: org.jfree/com.springsource.org.jfree

/**
 * Initialises the applet.
 * 
 * @param tabbedUI  the UI that controls the applet.
 */
public void init(final AbstractTabbedUI tabbedUI) {
  this.tabbedUI = tabbedUI;
  this.tabbedUI.addPropertyChangeListener
    (AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener());
  final JPanel panel = new JPanel();
  panel.setLayout(new BorderLayout());
  panel.add(tabbedUI, BorderLayout.CENTER);
  setContentPane(panel);
  setJMenuBar(tabbedUI.getJMenuBar());
}
origin: org.jfree/jcommon

  /**
   * This method gets called when a bound property is changed.
   *
   * @param evt A PropertyChangeEvent object describing the event source
   *            and the property that has changed.
   */
  public void propertyChange(final PropertyChangeEvent evt) {
    if (evt.getPropertyName().equals(AbstractTabbedUI.JMENUBAR_PROPERTY)) {
      setJMenuBar(getTabbedUI().getJMenuBar());
    }
  }
}
origin: org.jfree/jcommon

  public void windowClosing(final WindowEvent e) {
    getTabbedUI().getCloseAction().actionPerformed
      (new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0));
  }
});
origin: jfree/jcommon

/**
 * Sets the menu bar.
 * 
 * @param menuBar  the menu bar.
 */
protected void setJMenuBar(final JMenuBar menuBar) {
  final JMenuBar oldMenuBar = this.jMenuBar;
  this.jMenuBar = menuBar;
  firePropertyChange(JMENUBAR_PROPERTY, oldMenuBar, menuBar);
}
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

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

closeToolbar();
this.toolbarContainer.removeAll();
this.currentToolbar = null;
if ((container.isActive() == false) && (shouldBeActive == true)) {
  container.setActive(true);
  setJMenuBar(createEditorMenubar(container));
  this.currentToolbar = container.getToolbar();
  if (this.currentToolbar != null) {
  this.getJMenuBar().repaint();
origin: org.jfree/jcommon

/**
 * Initialises the applet.
 *
 * @param tabbedUI  the UI that controls the applet.
 */
public void init(final AbstractTabbedUI tabbedUI) {
  this.tabbedUI = tabbedUI;
  this.tabbedUI.addPropertyChangeListener
    (AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener());
  final JPanel panel = new JPanel();
  panel.setLayout(new BorderLayout());
  panel.add(tabbedUI, BorderLayout.CENTER);
  setContentPane(panel);
  setJMenuBar(tabbedUI.getJMenuBar());
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Default constructor.
 */
public AbstractTabbedUI() {
  this.selectedRootEditor = -1;
  this.toolbarContainer = new JPanel();
  this.toolbarContainer.setLayout(new BorderLayout());
  this.tabbedPane = new JTabbedPane(SwingConstants.BOTTOM);
  this.tabbedPane.addChangeListener(new TabChangeHandler(this.tabbedPane));
  this.rootEditors = new ArrayList();
  setLayout(new BorderLayout());
  add(this.toolbarContainer, BorderLayout.NORTH);
  add(this.tabbedPane, BorderLayout.CENTER);
  this.closeAction = createCloseAction();
}
org.jfree.ui.tabbeduiAbstractTabbedUI

Javadoc

A tabbed GUI. All views on the data are contained in tabs.

Most used methods

  • 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,
  • updateGlobalMenubar

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Permission (java.security)
    Legacy security code; do not use.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • 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