public static class DBObjectProviderPicker.PickerConfiguration
extends java.lang.Object
DBObjectProviderPicker.getPicker(oracle.ide.db.controls.DBObjectProviderPicker.PickerConfiguration)
.Constructor and Description |
---|
DBObjectProviderPicker.PickerConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeGlobal(java.lang.String providerType)
Return true if the chooser for the specified provider type can
be global.
|
boolean |
getAllowCreate()
When true, the widget will allow the creation of new providers.
|
boolean |
getAllowCreateProject()
When true, the widget will allow the creation of new projects if relevant.
|
boolean |
getAllowNull()
When true, the widget will add a null option
|
Context |
getContext()
Gets the Ide context for the picker.
|
boolean |
getControlEnable()
When true, the widget will show a check box which will enable/disable
the rest of the picker controls.
|
java.awt.event.ActionListener |
getControlEnableListener()
Gets the listener for the 'enable' control of the picker.
|
DBObjectProviderID |
getDefaultProviderID()
The picker may use this to initialize
|
boolean |
getForceGlobal()
When true, the picker will not be restricted to the current Application
e.g.
|
java.lang.String |
getLabel()
An optional label for the radio buttons used to select the provider type.
|
boolean |
getOnlyShowProjectDependencies()
When true, a project list will only show dependent projects
|
DBObjectProvider |
getOtherProvider()
Get the other provider to use when initializing the chooser
so that if a provider is created it can match the other provider type.
|
DBObjectProviderPicker.PickerListener |
getPickerListener()
Gets the listener the picker should be initialized with.
|
java.lang.String[] |
getProviderTypes()
The type of each DBObjectProvider to be offered for selection.
|
boolean |
getShowDetails()
Determines whether the picker should include a details section underneath
showing important properties of the chosen provider.
|
void |
setAllowCreate(boolean val)
When true, the widget will allow the creation of new providers.
|
void |
setAllowCreateProject(boolean val)
When true, the widget will allow the creation of new projects if relevant.
|
void |
setAllowNull(boolean val)
When true, the widget will add a null option
|
void |
setCanBeGlobal(java.lang.String providerType,
boolean value)
Set whether or not the corresponding ProviderType can be global.
|
void |
setContext(Context context)
Gets the Ide context for the picker.
|
void |
setControlEnable(boolean val)
When true, the widget will show a check box which will enable/disable
the rest of the picker controls.
|
void |
setControlEnableListener(java.awt.event.ActionListener controlEnableListener)
Sets an optional additional listener for the 'enable' control.
|
void |
setDefaultProviderID(DBObjectProviderID defaultProviderID)
Set the details of the provider that should be initially selected.
|
void |
setForceGlobal(boolean val)
When true, the picker will not be restricted to the current Application
e.g.
|
void |
setLabel(java.lang.String label)
An optional label for the radio buttons used to select the provider type.
|
void |
setOnlyShowProjectDependencies(boolean val)
When true, a project list will only show dependent projects
|
void |
setOtherProvider(DBObjectProvider otherProvider)
Set the other provider to use when initializing the chooser
so that if a provider is created it can match the other provider type.
|
void |
setPickerListener(DBObjectProviderPicker.PickerListener pickerListener)
Sets an option listener to attach to the picker before it is
initialized.
|
void |
setProviderTypes(java.lang.String... providerTypes)
The type of each DBObjectProvider to be offered for selection.
|
void |
setShowDetails(boolean val)
Determines whether the picker should include a details section underneath
showing important properties of the chosen provider.
|
public DBObjectProviderPicker.PickerConfiguration()
public Context getContext()
public void setContext(Context context)
public boolean getForceGlobal()
#canBeglobal(String)
which
allows finer control over the individual pickers in a multi-provider
picker. For example, it is legal to reverse engineer DBObjects from and
offline database in another application, but it is not legal to
use a connection to an online database in another application.public boolean canBeGlobal(java.lang.String providerType)
public void setForceGlobal(boolean val)
public boolean getShowDetails()
public void setShowDetails(boolean val)
public void setAllowCreateProject(boolean val)
public boolean getAllowCreateProject()
public void setOnlyShowProjectDependencies(boolean val)
public boolean getOnlyShowProjectDependencies()
public boolean getAllowCreate()
public void setAllowCreate(boolean val)
public boolean getControlEnable()
public void setControlEnable(boolean val)
public boolean getAllowNull()
public void setAllowNull(boolean val)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.lang.String[] getProviderTypes()
public void setProviderTypes(java.lang.String... providerTypes)
public void setCanBeGlobal(java.lang.String providerType, boolean value)
public DBObjectProviderID getDefaultProviderID()
public void setDefaultProviderID(DBObjectProviderID defaultProviderID)
public void setControlEnableListener(java.awt.event.ActionListener controlEnableListener)
public java.awt.event.ActionListener getControlEnableListener()
public DBObjectProviderPicker.PickerListener getPickerListener()
public void setPickerListener(DBObjectProviderPicker.PickerListener pickerListener)
public DBObjectProvider getOtherProvider()
public void setOtherProvider(DBObjectProvider otherProvider)