com.sdm.quasar.client.showcase.swing.allinone.emplDetail
Class EmplDetailDialog

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.core.dialogsupport.features.AbstractDialogCoreFeature
          extended bycom.sdm.quasar.client.showcase.swing.allinone.emplDetail.EmplDetailDialog
All Implemented Interfaces:
EmployeeService, Feature, Service, SystemInfoProvider

public class EmplDetailDialog
extends AbstractDialogCoreFeature
implements EmployeeService


Constructor Summary
EmplDetailDialog()
           
 
Method Summary
 void cancle()
           
protected  void dispose()
          Called when the feature or dialog is disposed.
 Employee getCurrentEmpl()
           
 BooleanState getDateOfBirthValidState()
           
 BooleanState getEmplNumberValidState()
           
 BooleanState getFirstNameValidState()
           
 BooleanState getIsEditState()
           
 BooleanState getNameValidState()
           
protected  void init()
          Called when the feature is initializing.
protected  void initCommandManager()
          Initializes the CommandManager.
protected  void initDataManager()
          Initializes the DataManager.
protected  void initStates()
          Initializes the States.
 void save()
           
 void showEmpl(Employee empl, boolean edit)
           
protected  boolean validateEmployee(Employee employee)
           
 
Methods inherited from class com.sdm.quasar.client.core.dialogsupport.features.AbstractDialogCoreFeature
getCommandManagerFeature, getDataManager, getDataManagerFeature, getValue, setValue, setValue
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
activate, attachDialogControl, collectSystemInfo, deactivate, disposeFeature, getDialogControl, isInitialized, prepare, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmplDetailDialog

public EmplDetailDialog()
Method Detail

dispose

protected void dispose()
                throws DisposeException
Description copied from class: AbstractFeature
Called when the feature or dialog is disposed. Override this method to clean up resources and free memory when disposing.

Overrides:
dispose in class AbstractDialogCoreFeature
Throws:
DisposeException

init

protected void init()
Description copied from class: AbstractFeature
Called when the feature is initializing. This is normally done, when the feature is connected to the lifecycle of the DialogControl installed to. To access the DialogControl use the AbstractFeature.getDialogControl() method.

Override this method to perform some action on initialization e.g. register public services.

Overrides:
init in class AbstractDialogCoreFeature

initCommandManager

protected void initCommandManager()
Description copied from class: AbstractDialogCoreFeature
Initializes the CommandManager. This method is called last in the AbstractDialogCoreFeature.init() method after AbstractDialogCoreFeature.initDataManager() and AbstractDialogCoreFeature.initStates().

Specified by:
initCommandManager in class AbstractDialogCoreFeature

initDataManager

protected void initDataManager()
Description copied from class: AbstractDialogCoreFeature
Initializes the DataManager. This method is called first in the AbstractDialogCoreFeature.init() method

Specified by:
initDataManager in class AbstractDialogCoreFeature

initStates

protected void initStates()
Description copied from class: AbstractDialogCoreFeature
Initializes the States. This method is called second in AbstractDialogCoreFeature.init() after initializing the DataManager (see AbstractDialogCoreFeature.initDataManager()).

Specified by:
initStates in class AbstractDialogCoreFeature

validateEmployee

protected boolean validateEmployee(Employee employee)

getIsEditState

public BooleanState getIsEditState()

getDateOfBirthValidState

public BooleanState getDateOfBirthValidState()

getEmplNumberValidState

public BooleanState getEmplNumberValidState()

getFirstNameValidState

public BooleanState getFirstNameValidState()

getNameValidState

public BooleanState getNameValidState()

getCurrentEmpl

public Employee getCurrentEmpl()
Specified by:
getCurrentEmpl in interface EmployeeService

showEmpl

public void showEmpl(Employee empl,
                     boolean edit)
Specified by:
showEmpl in interface EmployeeService

save

public void save()

cancle

public void cancle()