public class TableDocument extends AbstractDocument implements HasDataStore, Observer
| Modifier and Type | Class and Description |
|---|---|
static class |
TableDocument.TableLink |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.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(java.lang.String targetTable,
java.lang.String fieldSource,
java.lang.String fieldTarget)
Add a table link to this document.
|
boolean |
contains(java.lang.Object value) |
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
VectorLayer |
getAssociatedLayer() |
FeatureStore |
getDataStore() |
FeatureStore |
getFeatureStore() |
FeatureStoreModel |
getFeatureStoreModel() |
java.lang.String |
getField1()
Deprecated.
see {
#getLink() |
java.lang.String |
getField2()
Deprecated.
see {
#getLink() |
java.lang.String |
getFormattingPattern(java.lang.String columnName) |
java.util.List<TableDocument.TableLink> |
getLinks()
Return information about the table links.
|
java.lang.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 |
refresh() |
void |
removeLinkTable()
remove the last link to table added.
|
void |
removeLinkTable(java.lang.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 |
setFormattingPattern(java.lang.String columnName,
java.lang.String pattern) |
void |
setLinkTable(java.lang.String targetTable,
java.lang.String fieldSource,
java.lang.String fieldTarget)
Deprecated.
|
void |
setStore(FeatureStore store) |
void |
update(Observable arg0,
java.lang.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, getOpenWhenTheUserCreates, getOwner, getProject, getProperties, getPropertiesWindow, getProperty, getTypeName, getWindowLayout, isLocked, isModified, lock, raiseEventCreateWindow, registerPersistent, setComment, setCreationDate, setModified, setName, setOwner, setProject, setProperty, setStateFromText, setWindowLayout, toString, unlockdispose, disposepublic static final java.lang.String TABLE_PROPERTIES_PAGE_GROUP
public TableDocument(DocumentManager factory)
public TableDocument()
public TableDocument(DocumentManager factory, FeatureStore store)
public FeatureStoreModel getFeatureStoreModel()
public final void setStore(FeatureStore store)
public java.lang.String getFormattingPattern(java.lang.String columnName)
public void setFormattingPattern(java.lang.String columnName,
java.lang.String pattern)
public FeatureQuery getQuery()
public FeatureStore getStore()
public FeatureStore getDataStore()
getDataStore in interface HasDataStorepublic FeatureStore getFeatureStore()
public java.util.List<TableDocument.TableLink> getLinks()
public boolean hasLinks()
public java.lang.String getLinkTable()
getLinks()public java.lang.String getField1()
#getLink()public java.lang.String getField2()
#getLink()public void setLinkTable(java.lang.String targetTable,
java.lang.String fieldSource,
java.lang.String fieldTarget)
addLinkTable(String, String, String)targetTable - fieldSource - fieldTarget - public void addLinkTable(java.lang.String targetTable,
java.lang.String fieldSource,
java.lang.String fieldTarget)
targetTable - fieldSource - fieldTarget - public void removeLinkTable()
public void removeLinkTable(java.lang.String name)
name - of table document to remove.public VectorLayer getAssociatedLayer()
public void setAssociatedLayer(VectorLayer associatedLayer)
public void update(Observable arg0, java.lang.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 AbstractDocumentpublic boolean contains(java.lang.Object value)
contains in interface Containscontains in class AbstractDocumentpublic void refresh()
refresh in interface Documentrefresh in class AbstractDocumentprotected void doDispose()
throws BaseException
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractDocumentBaseExceptionAbstractDisposable.dispose()