public interface Document extends Persistent
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_DOCUMENT_AUTHORIZATION |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ProjectDocumentListener listener)
Register a ProjectDocumentListener.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Añade un listener para los cambios en las bounded properties
|
void |
afterAdd() |
void |
afterRemove() |
String |
getComment()
Obtiene los comentarios del proyecto
|
String |
getCreationDate()
Obtiene la fecha de creación del elemento
|
DocumentManager |
getFactory() |
JComponent |
getMainComponent()
Return the main JComponent associated to this document.
|
IWindow |
getMainWindow()
Return the main window associated to this document.
|
String |
getName()
Obtiene el nombre del elemento
|
String |
getOwner()
Obtiene el propietario del elemento
|
Project |
getProject() |
IWindow |
getPropertiesWindow() |
String |
getTypeName() |
WindowLayout |
getWindowLayout() |
boolean |
isAvailable() |
boolean |
isLocked()
Tells whether if this project's element is locked/protected or not.
|
boolean |
isModified() |
boolean |
isTemporary() |
void |
lock()
Locks this project element protecting it from deleting from the project.
|
void |
setComment(String string)
Establece los comentarios del proyecto
|
void |
setCreationDate(String string)
Establece la fecha de creación del elemento.
|
void |
setModified(boolean modified) |
void |
setName(String string)
Establece el nombre del elemento
|
void |
setOwner(String string)
Establece el propietario del elemento
|
void |
setProject(Project project) |
void |
setWindowLayout(WindowLayout layout) |
void |
unlock()
Unlocks this element.
|
loadFromState, saveToState
static final String ACCESS_DOCUMENT_AUTHORIZATION
String getName()
void setName(String string)
string
- String getCreationDate()
String getOwner()
String getTypeName()
void setCreationDate(String string)
string
- void setOwner(String string)
string
- String getComment()
void setComment(String string)
string
- Project getProject()
void setProject(Project project)
void lock()
void unlock()
boolean isLocked()
DocumentManager getFactory()
boolean isModified()
void setModified(boolean modified)
void addListener(ProjectDocumentListener listener)
listener
- ProjectDocumentListenervoid addPropertyChangeListener(PropertyChangeListener listener)
listener
- void afterRemove()
void afterAdd()
WindowLayout getWindowLayout()
void setWindowLayout(WindowLayout layout)
IWindow getPropertiesWindow()
IWindow getMainWindow()
this.getFactory().getMainWindow(doc)
JComponent getMainComponent()
this.getFactory().getMainComponent(doc)
boolean isTemporary()
boolean isAvailable()