Codota Logo
AbstractTabbedUI
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now