de.hs_rm.cs.lecturenotes.client.module.slide
Class SlideEditPanel

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.ComplexPanel
                  extended by com.google.gwt.user.client.ui.CellPanel
                      extended by com.google.gwt.user.client.ui.VerticalPanel
                          extended by de.hs_rm.cs.lecturenotes.client.module.slide.SlideEditPanel
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.HasAlignment, com.google.gwt.user.client.ui.HasHorizontalAlignment, com.google.gwt.user.client.ui.HasVerticalAlignment, 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.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.InsertPanel, com.google.gwt.user.client.ui.InsertPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, IForm<Slide>, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>

public final class SlideEditPanel
extends com.google.gwt.user.client.ui.VerticalPanel
implements IForm<Slide>

Slide Edit Panel.

Version:
$LastChangedRevision: 272 $
Author:
Enrico Homann

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
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant, com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
static int EDITOR_NUMBER_VISIBLELINES
          Indicates how many lines shall be visible in the editor.
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT
 
Fields inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP
 
Constructor Summary
SlideEditPanel(Slide currentExercise)
          Constructor.
 
Method Summary
 IEditPanelActionListener getActionListener()
          Will return the registered IEditPanelActionListener.
 com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> getDeleteExerciseCallback()
          Will return the delete Exercice GWT RPC callback.
 Slide getFormModel()
          Will return the form model.
 com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> getUpdateExerciseCallback()
          Will return the update Exercice GWT RPC callback.
 void onButtonCancel()
          Event callback triggered if user hits the cancel button.
 void onButtonDelete()
          Event callback triggered if user hits the delete button.
 void onButtonSave()
          Event callback triggered if user hits the save button.
 void onButtonUseMediaFileLink()
          Event callback if the user hits the useMediaFileLink 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 setActionListener(IEditPanelActionListener listener)
          Will register the IEditPanelActionListener.
 void setFormModel(Slide model)
          Sets the model.
 
Methods inherited from class com.google.gwt.user.client.ui.VerticalPanel
add, getHorizontalAlignment, getVerticalAlignment, insert, insert, remove, setHorizontalAlignment, setVerticalAlignment
 
Methods inherited from class com.google.gwt.user.client.ui.CellPanel
getSpacing, setBorderWidth, setCellHeight, setCellHeight, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellWidth, setCellWidth, setSpacing
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, clear, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, 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.user.client.ui.InsertPanel.ForIsWidget
add
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Field Detail

EDITOR_NUMBER_VISIBLELINES

public static final int EDITOR_NUMBER_VISIBLELINES
Indicates how many lines shall be visible in the editor.

See Also:
Constant Field Values
Constructor Detail

SlideEditPanel

public SlideEditPanel(Slide currentExercise)
Constructor.

Parameters:
currentExercise - Exercise
Method Detail

getActionListener

public IEditPanelActionListener getActionListener()
Will return the registered IEditPanelActionListener.

Returns:
IEditPanelActionListener

setActionListener

public void setActionListener(IEditPanelActionListener listener)
Will register the IEditPanelActionListener.

Parameters:
listener - IEditPanelActionListener

onButtonUseMediaFileLink

public void onButtonUseMediaFileLink()
Event callback if the user hits the useMediaFileLink button.


onButtonCancel

public void onButtonCancel()
Event callback triggered if user hits the cancel button.


onButtonSave

public void onButtonSave()
Event callback triggered if user hits the save button.


onButtonDelete

public void onButtonDelete()
Event callback triggered if user hits the delete button.


getDeleteExerciseCallback

public com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> getDeleteExerciseCallback()
Will return the delete Exercice GWT RPC callback.

Returns:
AsyncCallback of ResponseStatusEnum

getUpdateExerciseCallback

public com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> getUpdateExerciseCallback()
Will return the update Exercice GWT RPC callback.

Returns:
AsyncCallback of ResponseStatusEnum

setFormModel

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

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

getFormModel

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

Specified by:
getFormModel in interface IForm<Slide>
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<Slide>

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<Slide>