public interface EntityPropertiesEditor
This class represents interface for general entity's
properties modification component. When the
EntityPropertiesEditor
is created
it can be used to show the information of the
wanted entity using load
method.
After the user interaction is done, for example
"OK" is pressed in some upeprlevel dialog,
the EntityPropertiesEditor
can
be asked to save the modifications user did
using save
method.
Field Summary | |
---|---|
static java.lang.String |
SELF_POINTER_NAME
Self pointer string. |
Method Summary | |
---|---|
void |
clear()
Clears the panel. |
javax.swing.JComponent |
getComponent()
Returns the component to be shown to the user to allow editions. |
java.lang.String |
getTabName()
Returns the table name that should be printed in the tab selection menu. |
void |
load(AnalyzeModel model,
java.lang.String entityName)
Loads information to the panel and shows it. |
void |
save(AnalyzeModel model,
java.lang.String entityName)
Informs the panel that it should update the given model based on the panel's information. |
Field Detail |
---|
static final java.lang.String SELF_POINTER_NAME
Method Detail |
---|
void clear()
Clears the panel.
void load(AnalyzeModel model, java.lang.String entityName)
Loads information to the panel and shows it.
This does not clear the view. It only adds the
information to the view. Use clear
to clear the view.
model
- The AnalyzeModel
which contains the entity.entityName
- The name of the entity.clear()
void save(AnalyzeModel model, java.lang.String entityName)
Informs the panel that it should update
the given model based on the panel's information.
Nothing should happen if save
is called after load
without user
interaction in the panel (or some modifications
done in the model).
model
- The AnalyzeModel
which contains the entity.entityName
- The name of the entity.java.lang.String getTabName()
Returns the table name that should be printed in the tab selection menu.
javax.swing.JComponent getComponent()
Returns the component to be shown to the user to allow editions.