public class TableDocument extends AbstractDocument implements Observer
| Modifier and Type | Class and Description |
|---|---|
static class |
TableDocument.TableLink |
| Modifier and Type | Field and Description |
|---|---|
static String |
TABLE_PROPERTIES_PAGE_GROUP |
change, PERSISTENCE_DEFINITION_NAMEACCESS_DOCUMENT_AUTHORIZATION| Constructor and Description |
|---|
TableDocument() |
TableDocument(DocumentManager factory) |
TableDocument(DocumentManager factory,
FeatureStore store) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLinkTable(String targetTable,
String fieldSource,
String fieldTarget)
Add a table link to this document.
|
VectorLayer |
getAssociatedLayer() |
FeatureStore |
getFeatureStore() |
FeatureStoreModel |
getFeatureStoreModel() |
String |
getField1()
Deprecated.
see {
#getLink() |
String |
getField2()
Deprecated.
see {
#getLink() |
List<TableDocument.TableLink> |
getLinks()
Return information about the table links.
|
String |
getLinkTable()
Deprecated.
see {
getLinks() |
FeatureQuery |
getQuery() |
FeatureStore |
getStore() |
boolean |
hasLinks()
Returns if this table document has links with other tables.
|
boolean |
isAvailable() |
boolean |
isTemporary() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
removeLinkTable()
remove the last link to table added.
|
void |
removeLinkTable(String name)
Remove the link to the table document.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setAssociatedLayer(VectorLayer associatedLayer) |
void |
setLinkTable(String targetTable,
String fieldSource,
String fieldTarget)
Deprecated.
|
void |
setStore(FeatureStore store) |
void |
update(Observable arg0,
Object arg1)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
addListener, addPropertyChangeListener, afterAdd, afterRemove, callCreateWindow, exportDocumentAsText, getComment, getCreationDate, getFactory, getMainComponent, getMainWindow, getName, getOwner, getProject, getPropertiesWindow, getTypeName, getWindowLayout, isLocked, isModified, lock, raiseEventCreateWindow, registerPersistent, setComment, setCreationDate, setModified, setName, setOwner, setProject, setStateFromText, setWindowLayout, toString, unlockpublic static final String TABLE_PROPERTIES_PAGE_GROUP
public TableDocument(DocumentManager factory)
public TableDocument()
public TableDocument(DocumentManager factory, FeatureStore store)
public FeatureStoreModel getFeatureStoreModel()
public void setStore(FeatureStore store)
public FeatureQuery getQuery()
public FeatureStore getStore()
public FeatureStore getFeatureStore()
public List<TableDocument.TableLink> getLinks()
public boolean hasLinks()
public String getLinkTable()
getLinks()public String getField1()
#getLink()public String getField2()
#getLink()public void setLinkTable(String targetTable, String fieldSource, String fieldTarget)
addLinkTable(String, String, String)public void addLinkTable(String targetTable, String fieldSource, String fieldTarget)
targetTable - fieldSource - fieldTarget - public void removeLinkTable()
public void removeLinkTable(String name)
name - of table document to remove.public VectorLayer getAssociatedLayer()
public void setAssociatedLayer(VectorLayer associatedLayer)
public void update(Observable arg0, Object arg1)
ObserverObservable object is changed and this
Observer has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer and other Observers listening to the same
Observable.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver and prepare this method
implementation to handle receiving DefaultComplexNotification instances
as well as direct notification objects.
public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractDocumentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractDocumentPersistenceExceptionpublic boolean isTemporary()
isTemporary in interface DocumentisTemporary in class AbstractDocumentpublic boolean isAvailable()
isAvailable in interface DocumentisAvailable in class AbstractDocument