com.tekann.codegen.pda
Interface IEditForm

All Superinterfaces:
IForm, Internacionalizable, ITableForm
All Known Subinterfaces:
ILoginForm, IStepForm

public interface IEditForm
extends ITableForm

Interface represents a "detail" container.
Fields are mapped with DTO value.

Author:
Evandro Rathke

Method Summary
 void changeStateFields()
          Used to disable the fields that can be changed, case the operation be an update.
 boolean generatePK()
          Flag to indicate if PK is generated automatically.
 IDTO getDTO()
          Gets the container DTO.
 IForm getSaveForm()
          Gets the swaping grid during the save.
 void initFields()
          Initialize values.
 boolean isUpdate()
          Flag to indicate an update.
 boolean loadDTO()
          load a DTO.
 void setDTO(IDTO dto)
          Sets the container DTO.
 void setUpdate(boolean update)
          Sets the update status.
 
Methods inherited from interface com.tekann.codegen.pda.ITableForm
displayFK, showDatabaseMessage
 
Methods inherited from interface com.tekann.codegen.pda.IForm
getFont, getMenuBar, getTitle, loadForm, loadMenuBar, onSwap, setTitle, showMessage
 
Methods inherited from interface com.tekann.i18n.Internacionalizable
getID, getResourceDir, getResourcePrefix
 

Method Detail

changeStateFields

void changeStateFields()
Used to disable the fields that can be changed, case the operation be an update.


getDTO

IDTO getDTO()
Gets the container DTO.

Returns:
a DTO.

getSaveForm

IForm getSaveForm()
Gets the swaping grid during the save.

Returns:
An IViewForm

initFields

void initFields()
Initialize values.


isUpdate

boolean isUpdate()
Flag to indicate an update.

Returns:
A boolean

loadDTO

boolean loadDTO()
                throws java.lang.Exception
load a DTO.

Returns:
A boolean
Throws:
java.lang.Exception

setDTO

void setDTO(IDTO dto)
Sets the container DTO.

Parameters:
dto - Dto.

setUpdate

void setUpdate(boolean update)
Sets the update status.

Parameters:
update -

generatePK

boolean generatePK()
Flag to indicate if PK is generated automatically.

Returns:
A boolean flag