de.hs_rm.cs.lecturenotes.client.module.filecard
Class FilecardPreviewComposite

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 de.hs_rm.cs.lecturenotes.client.module.filecard.FilecardPreviewComposite
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.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, IForm<Filecard>

public final class FilecardPreviewComposite
extends com.google.gwt.user.client.ui.Composite
implements IForm<Filecard>

Preview Composite for a Filecard object.

Version:
$LastChangedRevision: 237 $
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
 
Field Summary
static int TABLEINDEX_BACK
          Index position in the table of the Filecard backside representation.
static int TABLEINDEX_FRONT
          Index position in the table of the Filecard frontside representation.
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
FilecardPreviewComposite(Filecard filecard, long nLectureId)
          Constructor.
 
Method Summary
 Filecard getFormModel()
          Will return the form model.
 com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> getHtmlRenderCallback(com.google.gwt.user.client.ui.HTML targetHtml)
          Will return the AsyncCallback for html rendering the filecard preview.
 void onLoad()
           
 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(Filecard model)
          Sets the model.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, initializeClaimedElement, isAttached, onBrowserEvent, render, render
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, 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
 

Field Detail

TABLEINDEX_FRONT

public static final int TABLEINDEX_FRONT
Index position in the table of the Filecard frontside representation.

See Also:
Constant Field Values

TABLEINDEX_BACK

public static final int TABLEINDEX_BACK
Index position in the table of the Filecard backside representation.

See Also:
Constant Field Values
Constructor Detail

FilecardPreviewComposite

public FilecardPreviewComposite(Filecard filecard,
                                long nLectureId)
Constructor.

Parameters:
filecard - Filecard
nLectureId - long
Method Detail

onLoad

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

setFormModel

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

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

getFormModel

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

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

getHtmlRenderCallback

public com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> getHtmlRenderCallback(com.google.gwt.user.client.ui.HTML targetHtml)
Will return the AsyncCallback for html rendering the filecard preview.

Parameters:
targetHtml - HTML
Returns:
AsyncCallback

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

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