public static class TableDocument.TableLink extends Object implements Observer, Persistent
Constructor and Description |
---|
TableLink() |
TableLink(TableDocument source,
TableDocument target,
String fieldSource,
String fieldTarget) |
Modifier and Type | Method and Description |
---|---|
boolean |
getEnabled() |
String |
getSourceFieldName() |
TableDocument |
getSourceTable() |
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,
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, String fieldSource, String fieldTarget)
public void setEnabled(boolean enabled)
public boolean getEnabled()
public TableDocument getTargetTable()
public TableDocument getSourceTable()
public String getSourceFieldName()
public String getTargetFieldName()
public void update(Observable arg0, 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
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException