public class ClassPickerFactory
extends java.lang.Object
Example:
JTextField textField = ...;
final TextFieldAdapter textFieldAdapter = ClassPickerFactory.attach(textField, getContext());
textFieldAdapter.setFlags(ClassPickerFactory.FLAG_PROJECT_CLASSES |
ClassPickerFactory.FLAG_SHOW_INTERFACES |
ClassPickerFactory.FLAG_SHOW_CLASSES);
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_BASE_PROJECT_SOURCES
Use this flag to only show the project sources and all other base project sources
|
static int |
FLAG_PROJECT_CLASSES
Use this flag to allow any class accessible from the project
|
static int |
FLAG_PROJECT_SOURCES
Use this flag to only show project sources
|
static int |
FLAG_SHOW_CLASSES
Use this flag to show classes
|
static int |
FLAG_SHOW_INTERFACES
Use this flag to show interfaces
|
| Constructor and Description |
|---|
ClassPickerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TextFieldAdapter |
attach(javax.swing.JTextField textField,
Context context,
int flags)
Create an adapter for a JTextField.
|
static TextFieldAdapter |
attach(javax.swing.JTextField textField,
JavaManager javaManager,
int flags)
Create an adapter for a JTextField, using a specific
JavaManager instance to find classes. |
public static final int FLAG_PROJECT_CLASSES
public static final int FLAG_PROJECT_SOURCES
public static final int FLAG_BASE_PROJECT_SOURCES
public static final int FLAG_SHOW_CLASSES
public static final int FLAG_SHOW_INTERFACES
public static TextFieldAdapter attach(javax.swing.JTextField textField, Context context, int flags)
textField - the JTextField to controlcontext - the context in which the classes are to be foundflags - see TextFieldAdapter.setFlags(int)public static TextFieldAdapter attach(javax.swing.JTextField textField, JavaManager javaManager, int flags)
JavaManager instance to find classes.textField - the JTextField to controljavaManager - the JavaManager used to find classesflags - see TextFieldAdapter.setFlags(int)TextFieldAdapter