Examples of SelectionProvider


Examples of com.intellij.ui.table.SelectionProvider

    }
  }

  public List getSelection() {
    ArrayList result = new ArrayList();
    SelectionProvider visibleTable = (SelectionProvider)getVisibleTable();
    Collection selection = visibleTable.getSelection();
    for (Iterator each = selection.iterator(); each.hasNext();) {
      result.add((Object)each.next());
    }
    return result;
  }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.SelectionProvider

      addAncestorListener(new AncestorListener() {
     
      @Override
      public void ancestorAdded(AncestorEvent event) {
          MCTHousing housing = (MCTHousing) SwingUtilities.getAncestorOfClass(MCTHousing.class, dirArea);
          SelectionProvider selectionProvider = housing.getHousedViewManifestation().getSelectionProvider();
          assert selectionProvider instanceof SelectionManager;
          SelectionManager selectionManager = (SelectionManager) selectionProvider;
          components.add(dirArea);
          for (JComponent comp : components) {
              selectionManager.manageComponent(comp);
View Full Code Here

Examples of gov.nasa.arc.mct.gui.SelectionProvider

            super("Mock", width, height, closeAction, housingView);
        }
       
        @Override
        public SelectionProvider getSelectionProvider() {
            return new SelectionProvider() {
               
                @Override
                public void removeSelectionChangeListener(PropertyChangeListener listener) {
                }
               
View Full Code Here

Examples of gov.nasa.arc.mct.gui.SelectionProvider

     */
    public void manageComponent(Component c) {
        if (!(c instanceof SelectionProvider)) {
            LOGGER.warn("class " + c + "not instance of SelectionProvider. Focus will be ignored");
        } else {
            SelectionProvider provider = (SelectionProvider) c;
            containers.add(provider);
            provider.addSelectionChangeListener(this);
        }
    }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.SelectionProvider

        housedManifestations.put(viewManifestation.getInfo(), viewManifestation);

        if (ownerComponentCanvasManifestation != null) {
            // clean out previous manifestation's swing components if there is one.
            removeAll();
            SelectionProvider provider = ownerComponentCanvasManifestation.getSelectionProvider();
            Collection<View> selections = provider.getSelectedManifestations();
            if (!selections.isEmpty()) {
                provider.clearCurrentSelections();
                firePropertyChange(SelectionProvider.SELECTION_CHANGED_PROP, selections, Collections.emptyList());
            }
        }
       
        // setup new manifestation.
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.