public class ProjectAction extends CayenneAction
alwaysOn, applicationchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
ProjectAction(Application application) |
ProjectAction(String name,
Application application)
Constructor for ProjectAction.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkSaveOnClose()
Returns false if cancel closing the window, true otherwise.
|
boolean |
closeProject(boolean checkUnsaved)
Returns true if successfully closed project, false otherwise.
|
boolean |
enableForPath(Object object)
Always returns true.
|
static String |
getActionName() |
void |
performAction(ActionEvent e)
Closes current project.
|
actionPerformed, buildButton, buildCheckBoxMenu, buildMenu, createIcon, enableForPath, getAcceleratorKey, getApplication, getCurrentProject, getIconName, getKey, getProjectController, isAlwaysOn, setAlwaysOn, setEnabled, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerpublic ProjectAction(Application application)
public ProjectAction(String name, Application application)
name - public static String getActionName()
public void performAction(ActionEvent e)
performAction in class CayenneActionpublic boolean closeProject(boolean checkUnsaved)
public boolean checkSaveOnClose()
public boolean enableForPath(Object object)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.