ucot.ui.gui.dialog.entitytab
Interface EntityPropertiesEditor

All Known Implementing Classes:
AttributesPanel, ChildrenPanel, JTableEntityPropertiesTab, MethodsPanel, ParentsPanel

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

SELF_POINTER_NAME

static final java.lang.String SELF_POINTER_NAME
Self pointer string. This string is used to when we need to represent relation that points to the entity beign edited.

Method Detail

clear

void clear()

Clears the panel.


load

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.

Parameters:
model - The AnalyzeModel which contains the entity.
entityName - The name of the entity.
See Also:
clear()

save

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).

Parameters:
model - The AnalyzeModel which contains the entity.
entityName - The name of the entity.

getTabName

java.lang.String getTabName()

Returns the table name that should be printed in the tab selection menu.

Returns:
table name

getComponent

javax.swing.JComponent getComponent()

Returns the component to be shown to the user to allow editions.

Returns:
The component for this tab.