fr.inra.refcomp.client.admin.units
Class UnitForm

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.Composite
              extended by fr.inra.refcomp.client.admin.units.UnitForm
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget, FormContent

public class UnitForm
extends com.google.gwt.user.client.ui.Composite
implements FormContent

User: couteau Date: 2 déc. 2010


Nested Class Summary
 
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
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
UnitForm()
           
 
Method Summary
protected  void addDepartment(Department department)
           
protected  void addDepartment(int index)
           
 void cancelContent(Boolean creation)
           
 void clearContent()
           
 void deleteContent()
           
protected  void fillInDepartmentList()
          Fill in the departments list with all the departments.
 org.nuiton.wikitty.entities.BusinessEntity getContent()
           
protected  List<String> getSelectedDepartments()
           
 void manageAddUnit(com.google.gwt.event.dom.client.ClickEvent event)
           
 void manageRemoveUnit(com.google.gwt.event.dom.client.ClickEvent event)
           
protected  void removeDepartment(int index)
           
 void saveContent(Boolean creation)
           
 void setContent(org.nuiton.wikitty.entities.BusinessEntity bean)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 

Constructor Detail

UnitForm

public UnitForm()
Method Detail

manageAddUnit

@UiHandler(value="addUnitButton")
public void manageAddUnit(com.google.gwt.event.dom.client.ClickEvent event)

manageRemoveUnit

@UiHandler(value="removeUnitButton")
public void manageRemoveUnit(com.google.gwt.event.dom.client.ClickEvent event)

setContent

public void setContent(org.nuiton.wikitty.entities.BusinessEntity bean)
Specified by:
setContent in interface FormContent

clearContent

public void clearContent()
Specified by:
clearContent in interface FormContent

getContent

public org.nuiton.wikitty.entities.BusinessEntity getContent()
Specified by:
getContent in interface FormContent

saveContent

public void saveContent(Boolean creation)
Specified by:
saveContent in interface FormContent

cancelContent

public void cancelContent(Boolean creation)
Specified by:
cancelContent in interface FormContent

deleteContent

public void deleteContent()
Specified by:
deleteContent in interface FormContent

fillInDepartmentList

protected void fillInDepartmentList()
Fill in the departments list with all the departments. Must set the unit departments after that or you might get wrong data displayed.


addDepartment

protected void addDepartment(Department department)

addDepartment

protected void addDepartment(int index)

removeDepartment

protected void removeDepartment(int index)

getSelectedDepartments

protected List<String> getSelectedDepartments()


Copyright © 2010-2011 Code Lutin. All Rights Reserved.