de.hs_rm.cs.lecturenotes.client.module.systemconfig
Class EditSystemUsersDialogBox

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by com.google.gwt.user.client.ui.PopupPanel
                      extended by com.google.gwt.user.client.ui.DecoratedPopupPanel
                          extended by com.google.gwt.user.client.ui.DialogBox
                              extended by de.hs_rm.cs.lecturenotes.client.module.systemconfig.EditSystemUsersDialogBox
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.safehtml.client.HasSafeHtml, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasHTML, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.MouseListener, com.google.gwt.user.client.ui.SourcesPopupEvents, IForm<User>, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>

public final class EditSystemUsersDialogBox
extends com.google.gwt.user.client.ui.DialogBox
implements IForm<User>

Dialog to Edit System Users.

Version:
$LastChangedRevision: 297 $
Author:
Enrico Homann

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.DialogBox
com.google.gwt.user.client.ui.DialogBox.Caption, com.google.gwt.user.client.ui.DialogBox.CaptionImpl
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
EditSystemUsersDialogBox()
          Constructor.
 
Method Summary
 void defaultButtonState()
          Sets the default state for the Button components.
 void fetchTransportData()
          Method to fetch the data using a RPC.
 User getFormModel()
          Will return the form model.
 com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> getHardDeleteCallback()
          Will return the AsyncCallback to hard remove a user entity.
 User getSelectedUser()
          Will return the selected User.
 java.util.List<User> getSystemUsers()
          Will return a list of User representing the system users.
 com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> getUpdateUserCallback()
          Will return the AsyncCallback to update a user entity.
 com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<User>> getUserListCallback()
          Will return the AsyncCallback to fetch the user list.
 void onButtonCancel()
          To be called when the user hits the cancel button.
 void onButtonEdit()
          To be called if the user hits the edit user button.
 void onButtonHardDelete()
          To be called if the user hits the hard delete user button.
 void onButtonNewPassword()
          Event callback called if user hits the set new password button.
 void onButtonSave()
          To be called if the user hits the save user button.
 void onUpdateModelFromView()
          Event callback meant to be called if an update of the model from the view components shall occur.
 void onUpdateViewFromModel()
          Event callback meant to be called if an update of the view components from the model shall occur.
 void setFormModel(User model)
          Sets the model.
 void setSelectedUser(User oUser)
          Will set the selected User.
 void setSystemUsers(java.util.List<User> oUsers)
          Sets the system users.
 void updateForm()
          Updating the Model.
 
Methods inherited from class com.google.gwt.user.client.ui.DialogBox
getCaption, getHTML, getText, hide, onBrowserEvent, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseUp, setHTML, setHTML, setText, show
 
Methods inherited from class com.google.gwt.user.client.ui.DecoratedPopupPanel
clear, getWidget, iterator, remove, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, center, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getTitle, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidth, showRelativeTo
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

EditSystemUsersDialogBox

public EditSystemUsersDialogBox()
Constructor.

Method Detail

defaultButtonState

public void defaultButtonState()
Sets the default state for the Button components.


getUpdateUserCallback

public com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> getUpdateUserCallback()
Will return the AsyncCallback to update a user entity.

Returns:
AsyncCallback of ResponseStatusEnum

getHardDeleteCallback

public com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> getHardDeleteCallback()
Will return the AsyncCallback to hard remove a user entity.

Returns:
AsyncCallback of ResponseStatusEnum

getUserListCallback

public com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<User>> getUserListCallback()
Will return the AsyncCallback to fetch the user list.

Returns:
AsyncCallback of List of User

onButtonNewPassword

public void onButtonNewPassword()
Event callback called if user hits the set new password button.


onButtonSave

public void onButtonSave()
To be called if the user hits the save user button.


onButtonEdit

public void onButtonEdit()
To be called if the user hits the edit user button.


onButtonHardDelete

public void onButtonHardDelete()
To be called if the user hits the hard delete user button.


getSystemUsers

public java.util.List<User> getSystemUsers()
Will return a list of User representing the system users.

Returns:
List of User objects

setSystemUsers

public void setSystemUsers(java.util.List<User> oUsers)
Sets the system users.

Parameters:
oUsers - List of User object

updateForm

public void updateForm()
Updating the Model.


getSelectedUser

public User getSelectedUser()
Will return the selected User.

Returns:
User

setSelectedUser

public void setSelectedUser(User oUser)
Will set the selected User.

Parameters:
oUser - User

fetchTransportData

public void fetchTransportData()
Method to fetch the data using a RPC.


onButtonCancel

public void onButtonCancel()
To be called when the user hits the cancel button.


setFormModel

public void setFormModel(User model)
Description copied from interface: IForm
Sets the model.

Specified by:
setFormModel in interface IForm<User>
Parameters:
model - T

getFormModel

public User getFormModel()
Description copied from interface: IForm
Will return the form model.

Specified by:
getFormModel in interface IForm<User>
Returns:
T

onUpdateViewFromModel

public void onUpdateViewFromModel()
Description copied from interface: IForm
Event callback meant to be called if an update of the view components from the model shall occur.

Specified by:
onUpdateViewFromModel in interface IForm<User>

onUpdateModelFromView

public void onUpdateModelFromView()
Description copied from interface: IForm
Event callback meant to be called if an update of the model from the view components shall occur.

Specified by:
onUpdateModelFromView in interface IForm<User>