Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.jdeveloper.controls.classpick
Class ClassPickerFactory

java.lang.Object
  extended by oracle.jdeveloper.controls.classpick.ClassPickerFactory

public class ClassPickerFactory
extends java.lang.Object

This class implements the class picker dropdown that can be attached to a control in a dialog.

Example:

  JTextField textField = ...;
  final TextFieldAdapter textFieldAdapter = ClassPickerFactory.attach(textField, getContext());
  textFieldAdapter.setFlags(ClassPickerFactory.FLAG_PROJECT_CLASSES |
                            ClassPickerFactory.FLAG_SHOW_INTERFACES |
                            ClassPickerFactory.FLAG_SHOW_CLASSES);
 


Field Summary
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 Summary
ClassPickerFactory()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_PROJECT_CLASSES

public static final int FLAG_PROJECT_CLASSES
Use this flag to allow any class accessible from the project

See Also:
Constant Field Values

FLAG_PROJECT_SOURCES

public static final int FLAG_PROJECT_SOURCES
Use this flag to only show project sources

See Also:
Constant Field Values

FLAG_BASE_PROJECT_SOURCES

public static final int FLAG_BASE_PROJECT_SOURCES
Use this flag to only show the project sources and all other base project sources

See Also:
Constant Field Values

FLAG_SHOW_CLASSES

public static final int FLAG_SHOW_CLASSES
Use this flag to show classes

See Also:
Constant Field Values

FLAG_SHOW_INTERFACES

public static final int FLAG_SHOW_INTERFACES
Use this flag to show interfaces

See Also:
Constant Field Values
Constructor Detail

ClassPickerFactory

public ClassPickerFactory()
Method Detail

attach

public static TextFieldAdapter attach(javax.swing.JTextField textField,
                                      Context context,
                                      int flags)
Create an adapter for a JTextField.

Parameters:
textField - the JTextField to control
context - the context in which the classes are to be found
flags - see TextFieldAdapter.setFlags(int)

attach

public 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.

Parameters:
textField - the JTextField to control
javaManager - the JavaManager used to find classes
flags - see TextFieldAdapter.setFlags(int)
Returns:
the TextFieldAdapter

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.