Examples of removeAll()


Examples of javax.swing.JMenuBar.removeAll()

  }

  @Override
  public void removeAllChild() {
    JMenuBar origin = (JMenuBar) getWidget();
    origin.removeAll();
  }

  @Override
  public boolean removeChild(Component child) {
    JMenuAdapter jmenuAdapter=(JMenuAdapter)WidgetAdapter.getWidgetAdapter(child);
View Full Code Here

Examples of javax.swing.JMenuItem.removeAll()

        for (int i = 0; i < getItemCount(); i++) {
            final JMenuItem item = getItem(i);
            if (item instanceof MyMenuItem) {
                ((UpdatableItem) item).cleanup();
            } else if (item instanceof MyMenu) {
                item.removeAll();
            }
        }
        super.removeAll();
    }
View Full Code Here

Examples of javax.swing.JOptionPane.removeAll()

        assertEquals(new Dimension(123, 456), paneUI.getPreferredSize(pane));
    }

    public void testInstallUI() {
        JOptionPane pane = new JOptionPane();
        pane.removeAll();
        pane.setLayout(null);
        paneUI.installUI(pane);
        assertNotNull(pane.getBackground());
        assertNotNull(paneUI.optionPane);
        assertEquals(2, pane.getComponentCount());
View Full Code Here

Examples of javax.swing.JPanel.removeAll()

        p.setBackground(Color.white);
        Color light = Color.white;
        Color dark = Color.LIGHT_GRAY;
        Color current = dark;

        p.removeAll();
        GridBagLayout gridbag = new GridBagLayout();
        p.setLayout(gridbag);
        GridBagConstraints c = new GridBagConstraints();
        c.anchor = GridBagConstraints.NORTHWEST;
        c.gridx = GridBagConstraints.REMAINDER;
View Full Code Here

Examples of javax.swing.JPopupMenu.removeAll()

    _globalPopup.setInvoker(null);
    _globalActions.clear();
    for(Iterator<JPopupMenu> i=_popups.values().iterator(); i.hasNext();)
    {
      JPopupMenu popup = i.next();
      popup.removeAll();
      popup.setInvoker(null);
    }
    _popups.clear();
  }
View Full Code Here

Examples of javax.swing.JTabbedPane.removeAll()

        for (int i=0; i<tabbedPane.getTabCount(); i++) {
            BasePanel panel = (BasePanel)tabbedPane.getComponent(i);
            map.put(tabbedPane.getTitleAt(i), panel);
        }
        tabbedPane.removeAll();
        for (Iterator<String> i=map.keySet().iterator(); i.hasNext();) {
            String title = i.next();
            BasePanel panel = map.get(title);
            tabbedPane.addTab(title, panel);
        }
View Full Code Here

Examples of javax.swing.JToolBar.removeAll()

          && ((AbstractButton)component).getAction().
                getValue(PluginAction.Property.TOOL_BAR.name()) == Boolean.TRUE) {
        pluginButtons.add(component);
      }
    }
    toolBar.removeAll();
    // Add New, Open, Save, Save as buttons if they are enabled
    Action newHomeAction = getToolBarAction(homeView, HomeView.ActionType.NEW_HOME);
    if (newHomeAction != null && newHomeAction.isEnabled()) {
      toolBar.add(newHomeAction);
    }
View Full Code Here

Examples of kodkod.instance.TupleSet.removeAll()

     */
    private void computeUpperBound(PrimSig sig) throws Err {
        // Sig's upperbound is fully computed. We recursively compute the upperbound for children...
        TupleSet x = ub.get(sig).clone();
        // We remove atoms that MUST be in a subsig
        for(PrimSig c: sig.children()) x.removeAll(lb.get(c));
        // So now X is the set of atoms that MIGHT be in this sig, but MIGHT NOT be in any particular subsig.
        // For each subsig that may need more atom, we say it could potentionally get any of the atom from X.
        for(PrimSig c: sig.children()) {
           if (sc.sig2scope(c) > lb.get(c).size()) ub.get(c).addAll(x);
           computeUpperBound(c);
View Full Code Here

Examples of kodkod.util.ints.IntSet.removeAll()

        IntSet exclude = coreClausesWithMaxVar(trace, maxVar);
        assert !exclude.isEmpty();
        //  get all clauses reachable from the conflict clause
        IntSet next = trace.reachable(Ints.singleton(trace.size()-1));
        // remove all clauses backward reachable from the clauses with the given maxVar
        next.removeAll(trace.backwardReachable(exclude));
        if (!next.isEmpty()) {
          return next;
        }
      }
    }
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenu.removeAll()

                });
        addGroupServiceMenuItem.onUpdate(new Runnable() {
            @Override
            public void run() {
                application.isSwingThread();
                addGroupServiceMenuItem.removeAll();
                final Collection<JDialog> popups = new ArrayList<JDialog>();
                for (final String cl : ClusterBrowser.CRM_CLASSES) {
                    final MyMenu classItem = menuFactory.createMenu(
                                                        ClusterBrowser.CRM_CLASS_MENU.get(cl),
                                                        new AccessMode(AccessMode.ADMIN, AccessMode.NORMAL),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.