public static class TableDocument.TableLink extends java.lang.Object implements Observer, Persistent
| Constructor and Description |
|---|
TableLink() |
TableLink(TableDocument source,
TableDocument target,
java.lang.String fieldSource,
java.lang.String fieldTarget) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getEnabled() |
java.lang.String |
getSourceFieldName() |
TableDocument |
getSourceTable() |
java.lang.String |
getTargetFieldName() |
TableDocument |
getTargetTable() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setEnabled(boolean enabled) |
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. |
public TableLink()
public TableLink(TableDocument source, TableDocument target, java.lang.String fieldSource, java.lang.String fieldTarget)
public void setEnabled(boolean enabled)
public boolean getEnabled()
public TableDocument getTargetTable()
public TableDocument getSourceTable()
public java.lang.String getSourceFieldName()
public java.lang.String getTargetFieldName()
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 PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceException