de.hs_rm.cs.lecturenotes.client.module.paragraph
Class ParagraphVersionBrowserDialogBox

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.paragraph.ParagraphVersionBrowserDialogBox
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<java.util.List<Paragraph>>, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>

public final class ParagraphVersionBrowserDialogBox
extends com.google.gwt.user.client.ui.DialogBox
implements IForm<java.util.List<Paragraph>>

Version Browser for a Paragraph. Allows the user to select an old version for a new entry.

Version:
$LastChangedRevision: 249 $
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
ParagraphVersionBrowserDialogBox(Paragraph oBaseParagraph)
          Constructor.
 
Method Summary
 Paragraph getBaseParagraph()
          Will return the base Paragraph to whom the versions shall be retrieved.
 java.util.List<Paragraph> getFormModel()
          Will return the form model.
 com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Paragraph>> getParagraphsCallback()
          Will return the AsyncCallback to load all MediaFile objects to a Lecture.
 com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> getPreviewRenderCallback()
          Callback that handles the render result of the preview.
 Paragraph getSelectedParagraph()
          Will return the selected Paragraph.
 void onButtonCancel()
          Event callback that gets triggered if the user hits the cancel button.
 void onButtonUseLink()
          Event callback that gets triggered if the user this the use link button.
 void onLoad()
           
 void onSelectionParagraph(Paragraph selected)
          Event callback that gets triggered when a Paragraph was selected in the CellTable selection model.
 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 resetAll()
          Resets the dialog.
 void setBaseParagraph(Paragraph oBaseParagraph)
          Sets the base Paragraph to whom the versions shall be retrieved.
 void setFormModel(java.util.List<Paragraph> model)
          Sets 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

ParagraphVersionBrowserDialogBox

public ParagraphVersionBrowserDialogBox(Paragraph oBaseParagraph)
Constructor.

Parameters:
oBaseParagraph - Paragraph
Method Detail

onLoad

public void onLoad()
Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget

getBaseParagraph

public Paragraph getBaseParagraph()
Will return the base Paragraph to whom the versions shall be retrieved.

Returns:
Paragraph

setBaseParagraph

public void setBaseParagraph(Paragraph oBaseParagraph)
Sets the base Paragraph to whom the versions shall be retrieved.

Parameters:
oBaseParagraph - Paragraph

resetAll

public void resetAll()
Resets the dialog.


getSelectedParagraph

public Paragraph getSelectedParagraph()
Will return the selected Paragraph.

Returns:
Paragraph

getParagraphsCallback

public com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Paragraph>> getParagraphsCallback()
Will return the AsyncCallback to load all MediaFile objects to a Lecture.

Returns:
AsynCallback of List of LectureMediaFile

onSelectionParagraph

public void onSelectionParagraph(Paragraph selected)
Event callback that gets triggered when a Paragraph was selected in the CellTable selection model.

Parameters:
selected - Paragraph

getPreviewRenderCallback

public com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> getPreviewRenderCallback()
Callback that handles the render result of the preview.

Returns:
AsyncCallback of String

onButtonUseLink

public void onButtonUseLink()
Event callback that gets triggered if the user this the use link button.


onButtonCancel

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


setFormModel

public void setFormModel(java.util.List<Paragraph> model)
Description copied from interface: IForm
Sets the model.

Specified by:
setFormModel in interface IForm<java.util.List<Paragraph>>
Parameters:
model - T

getFormModel

public java.util.List<Paragraph> getFormModel()
Description copied from interface: IForm
Will return the form model.

Specified by:
getFormModel in interface IForm<java.util.List<Paragraph>>
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<java.util.List<Paragraph>>

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<java.util.List<Paragraph>>