org.netbeans.modules.java.api.common/0 1.37

org.netbeans.modules.java.api.common.project.ui
Class ClassPathUiSupport

java.lang.Object
  extended by org.netbeans.modules.java.api.common.project.ui.ClassPathUiSupport

public final class ClassPathUiSupport
extends Object

Support for visual classpath customizer.

Since:
org.netbeans.modules.java.api.common/1 1.5

Nested Class Summary
static interface ClassPathUiSupport.Callback
          Optional callback to perform initialization of item.
 
Method Summary
static int[] addArtifacts(DefaultListModel listModel, int[] indices, AntArtifactItem[] artifactItems, ClassPathUiSupport.Callback callback)
           
static int[] addJarFiles(DefaultListModel listModel, int[] indices, String[] filePaths, File base, String[] variables, ClassPathUiSupport.Callback callback)
           
static int[] addLibraries(DefaultListModel listModel, int[] indices, Library[] libraries, Set<Library> alreadyIncludedLibs, ClassPathUiSupport.Callback callback)
           
static boolean canEdit(ListSelectionModel selectionModel, DefaultListModel listModel)
           
static boolean canMoveDown(ListSelectionModel selectionModel, int modelSize)
           
static boolean canMoveUp(ListSelectionModel selectionModel)
           
static DefaultListModel createListModel(Iterator it)
           
static void edit(DefaultListModel listModel, int[] selectedIndices, AntProjectHelper helper)
           
static Iterator<ClassPathSupport.Item> getIterator(DefaultListModel model)
           
static List<ClassPathSupport.Item> getList(DefaultListModel model)
           
static int[] moveDown(DefaultListModel listModel, int[] indices)
          Moves items down in the list.
static int[] moveUp(DefaultListModel listModel, int[] indices)
          Moves items up in the list.
static int[] remove(DefaultListModel listModel, int[] indices)
          Removes selected indices from the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createListModel

public static DefaultListModel createListModel(Iterator it)

getIterator

public static Iterator<ClassPathSupport.Item> getIterator(DefaultListModel model)

getList

public static List<ClassPathSupport.Item> getList(DefaultListModel model)

canEdit

public static boolean canEdit(ListSelectionModel selectionModel,
                              DefaultListModel listModel)

edit

public static void edit(DefaultListModel listModel,
                        int[] selectedIndices,
                        AntProjectHelper helper)

moveUp

public static int[] moveUp(DefaultListModel listModel,
                           int[] indices)
Moves items up in the list. The indices array will contain indices to be selected after the change was done.


canMoveUp

public static boolean canMoveUp(ListSelectionModel selectionModel)

moveDown

public static int[] moveDown(DefaultListModel listModel,
                             int[] indices)
Moves items down in the list. The indices array will contain indices to be selected after the change was done.


canMoveDown

public static boolean canMoveDown(ListSelectionModel selectionModel,
                                  int modelSize)

remove

public static int[] remove(DefaultListModel listModel,
                           int[] indices)
Removes selected indices from the model. Returns the index to be selected


addLibraries

public static int[] addLibraries(DefaultListModel listModel,
                                 int[] indices,
                                 Library[] libraries,
                                 Set<Library> alreadyIncludedLibs,
                                 ClassPathUiSupport.Callback callback)

addJarFiles

public static int[] addJarFiles(DefaultListModel listModel,
                                int[] indices,
                                String[] filePaths,
                                File base,
                                String[] variables,
                                ClassPathUiSupport.Callback callback)

addArtifacts

public static int[] addArtifacts(DefaultListModel listModel,
                                 int[] indices,
                                 AntArtifactItem[] artifactItems,
                                 ClassPathUiSupport.Callback callback)

org.netbeans.modules.java.api.common/0 1.37

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.