public class ProjectInformationImpl extends Object implements ProjectInformation
| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectInformationImpl.Status |
EVENT_CLOSE, EVENT_OPEN, EVENT_RENAME, EVENT_SET_FILE| Constructor and Description |
|---|
ProjectInformationImpl(Project project,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(PropertyChangeListener listener)
Add change listener.
|
void |
close() |
void |
fireChangeEvent(String eventName,
Object oldValue,
Object newValue) |
File |
getFile()
Returns the file associated with this project.
|
String |
getFileName()
Returns the filename associated with this project.
|
String |
getName()
Returns the name of the project.
|
Project |
getProject()
Returns the project this information class belongs to.
|
boolean |
hasFile()
Returns true if the project is associated with a file.
|
boolean |
isClosed()
Returns true if the project is closed.
|
boolean |
isInvalid()
Returns true if the project is invalid.
|
boolean |
isOpen()
Returns true if the project is open.
|
void |
open() |
void |
removeChangeListener(PropertyChangeListener listener)
Remove change listener.
|
void |
setFile(File file) |
void |
setName(String name) |
public void open()
public void close()
public Project getProject()
ProjectInformationgetProject in interface ProjectInformationpublic boolean isOpen()
ProjectInformationisOpen in interface ProjectInformationpublic boolean isClosed()
ProjectInformationisClosed in interface ProjectInformationpublic boolean isInvalid()
ProjectInformationisInvalid in interface ProjectInformationpublic boolean hasFile()
ProjectInformationA project is associated with a file if it has been saved/loaded to/from a file.
hasFile in interface ProjectInformationpublic String getFileName()
ProjectInformationReturns an empty string if the project isn't associated with a file.
getFileName in interface ProjectInformationProjectInformation.hasFile()public void setName(String name)
public String getName()
ProjectInformationThe name can't be null and has a default value (e.g. Project 1).
getName in interface ProjectInformationpublic File getFile()
ProjectInformationReturns null if the project isn't associated with a file.
getFile in interface ProjectInformationProjectInformation.hasFile()public void setFile(File file)
public void addChangeListener(PropertyChangeListener listener)
ProjectInformationaddChangeListener in interface ProjectInformationlistener - change listenerpublic void removeChangeListener(PropertyChangeListener listener)
ProjectInformationremoveChangeListener in interface ProjectInformationlistener - change listenerCopyright © 2007–2017. All rights reserved.