public class DataSourceWizard extends CayenneController
| Modifier and Type | Field and Description |
|---|---|
protected DBConnectionInfo |
altDataSource |
protected String |
altDataSourceKey |
protected boolean |
canceled |
protected DBConnectionInfo |
connectionInfo |
protected ObjectBinding |
dataSourceBinding |
protected String |
dataSourceKey |
protected Map |
dataSources |
protected DataSourceWizardView |
view |
application, parent, propertyChangeSupport| Constructor and Description |
|---|
DataSourceWizard(CayenneController parent,
String title,
String altDataSourceKey,
DBConnectionInfo altDataSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelAction() |
protected DataSourceWizardView |
createView()
Creates swing dialog for this wizard
|
void |
dataSourceConfigAction()
Opens preferences panel to allow configuration of DataSource presets.
|
DBConnectionInfo |
getConnectionInfo() |
String |
getDataSourceKey() |
Component |
getView()
Returns the vie wassociated with this Controller.
|
protected void |
initBindings() |
void |
okAction()
Tests that the entered information is valid and can be used to open a conneciton.
|
protected void |
refreshDataSources() |
void |
setDataSourceKey(String dataSourceKey) |
boolean |
startupAction()
Main action method that pops up a dialog asking for user selection.
|
addPropertyChangeListener, bindingUpdated, centerView, firePropertyChange, getApplication, getFrame, getLastDirectory, getParent, getViewPreferences, getWindow, makeCloseableOnEscape, reportErrorprotected DataSourceWizardView view
protected DBConnectionInfo altDataSource
protected String altDataSourceKey
protected ObjectBinding dataSourceBinding
protected Map dataSources
protected String dataSourceKey
protected DBConnectionInfo connectionInfo
protected boolean canceled
public DataSourceWizard(CayenneController parent, String title, String altDataSourceKey, DBConnectionInfo altDataSource)
protected DataSourceWizardView createView()
protected void initBindings()
public String getDataSourceKey()
public void setDataSourceKey(String dataSourceKey)
public boolean startupAction()
public DBConnectionInfo getConnectionInfo()
public void okAction()
public void cancelAction()
public void dataSourceConfigAction()
public Component getView()
CayenneControllergetView in interface BoundComponentgetView in class CayenneControllerprotected void refreshDataSources()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.