public abstract class CayenneController extends Object implements BoundComponent
| Modifier and Type | Field and Description |
|---|---|
protected Application |
application |
protected CayenneController |
parent |
protected PropertyChangeSupport |
propertyChangeSupport |
| Constructor and Description |
|---|
CayenneController() |
CayenneController(Application application) |
CayenneController(CayenneController parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(String expression,
PropertyChangeListener listener)
Adds a listener for property change events.
|
void |
bindingUpdated(String expression,
Object newValue)
Default implementation is a noop.
|
protected void |
centerView()
Centers view on parent window.
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Fires property change event.
|
Application |
getApplication() |
JFrame |
getFrame()
Finds a JFrame in the view hierarchy.
|
FSPath |
getLastDirectory()
Returns last file system directory visited by user for this component.
|
CayenneController |
getParent() |
abstract Component |
getView()
Returns the vie wassociated with this Controller.
|
protected Preferences |
getViewPreferences()
Returns preference for this component view.
|
Window |
getWindow()
Finds a Window in the view hierarchy.
|
protected void |
makeCloseableOnEscape()
If this view or a parent view is a JDialog, makes it closeable on ESC hit.
|
protected void |
reportError(String title,
Throwable th)
Utility method to provide a visual indication an execution error.
|
protected CayenneController parent
protected Application application
protected PropertyChangeSupport propertyChangeSupport
public CayenneController()
public CayenneController(CayenneController parent)
public CayenneController(Application application)
public Application getApplication()
public CayenneController getParent()
public abstract Component getView()
getView in interface BoundComponentpublic FSPath getLastDirectory()
protected Preferences getViewPreferences()
protected void reportError(String title, Throwable th)
protected void centerView()
protected void makeCloseableOnEscape()
public Window getWindow()
public JFrame getFrame()
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public void addPropertyChangeListener(String expression, PropertyChangeListener listener)
addPropertyChangeListener in interface BoundComponentpublic void bindingUpdated(String expression, Object newValue)
bindingUpdated in interface BoundComponentCopyright © 2001–2015 Apache Cayenne. All rights reserved.