de.hs_rm.cs.lecturenotes.client.module.whatsnew
Class ResponsePanelComposite

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.whatsnew.ResponsePanelComposite
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

public final class ResponsePanelComposite
extends com.google.gwt.user.client.ui.Composite

Composite to let the user create a new response to an Annotation object.

Version:
$LastChangedRevision: 242 $
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 boolean EDIT_MODE
          Edit Mode.
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ResponsePanelComposite(WhatsNewEntryModel oModel, WhatsNewEntryComposite oMyParent)
          Constructor.
 
Method Summary
 com.google.gwt.user.client.ui.Button getBtnResponseSave()
          Will return the Button to save a response.
 WhatsNewEntryModel getModel()
          Will return the model of this component.
 WhatsNewEntryComposite getMyParent()
          Will return the parent Composite.
 com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> getSaveResponseCallback()
          Will return the AsyncCallback for saving a response for an Annotation.
 com.google.gwt.user.client.ui.TextArea getTextAreaResponseMsg()
          Will return the input field for the response.
 void setBtnResponseSave(com.google.gwt.user.client.ui.Button oBtnResponseSave)
          Sets the Button to save a response.
 void setModel(WhatsNewEntryModel oModel)
          Sets the model of this component.
 void setMyParent(WhatsNewEntryComposite oMyParent)
          Sets the parent Composite.
 void setTextAreaResponseMsg(com.google.gwt.user.client.ui.TextArea oTextAreaResponseMsg)
          Sets the input field for the response.
 
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

EDIT_MODE

public static boolean EDIT_MODE
Edit Mode.

Constructor Detail

ResponsePanelComposite

public ResponsePanelComposite(WhatsNewEntryModel oModel,
                              WhatsNewEntryComposite oMyParent)
Constructor.

Parameters:
oModel - WhatsNewEntryModel
oMyParent - WhatsNewEntryComposite
Method Detail

getSaveResponseCallback

public com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> getSaveResponseCallback()
Will return the AsyncCallback for saving a response for an Annotation.

Returns:
AsyncCallback of ResponseStatusEnum

getMyParent

public WhatsNewEntryComposite getMyParent()
Will return the parent Composite.

Returns:
WhatsNewEntryComposite

setMyParent

public void setMyParent(WhatsNewEntryComposite oMyParent)
Sets the parent Composite.

Parameters:
oMyParent - WhatsNewEntryComposite

getModel

public WhatsNewEntryModel getModel()
Will return the model of this component.

Returns:
WhatsNewEntryModel

setModel

public void setModel(WhatsNewEntryModel oModel)
Sets the model of this component.

Parameters:
oModel - WhatsNewEntryComposite

getTextAreaResponseMsg

public com.google.gwt.user.client.ui.TextArea getTextAreaResponseMsg()
Will return the input field for the response.

Returns:
TextArea

setTextAreaResponseMsg

public void setTextAreaResponseMsg(com.google.gwt.user.client.ui.TextArea oTextAreaResponseMsg)
Sets the input field for the response.

Parameters:
oTextAreaResponseMsg - TextArea

getBtnResponseSave

public com.google.gwt.user.client.ui.Button getBtnResponseSave()
Will return the Button to save a response.

Returns:
Button

setBtnResponseSave

public void setBtnResponseSave(com.google.gwt.user.client.ui.Button oBtnResponseSave)
Sets the Button to save a response.

Parameters:
oBtnResponseSave - Button