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_NAME
ACCESS_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, unlock
dispose, dispose
public 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 HasDataStore
public 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)
Observer
Observable
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 Observer
s 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
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractDocument
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractDocument
PersistenceException
public boolean isTemporary()
isTemporary
in interface Document
isTemporary
in class AbstractDocument
public boolean isAvailable()
isAvailable
in interface Document
isAvailable
in class AbstractDocument
public boolean contains(java.lang.Object value)
contains
in interface Contains
contains
in class AbstractDocument
public void refresh()
refresh
in interface Document
refresh
in class AbstractDocument
protected void doDispose() throws BaseException
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractDocument
BaseException
AbstractDisposable.dispose()