de.hs_rm.cs.lecturenotes.client.core.presentation.ui.editor
Interface IParagraphViewerEditor

All Known Implementing Classes:
AbstractParagraphViewerEditor, ExerciseViewerEditor, FilecardViewerEditor, ParagraphViewerEditor, SlideViewerEditor

public interface IParagraphViewerEditor

Interface to describe the commonly used methods for the features. Common methodology are shared by these components:

Version:
$LastChangedRevision: 242 $
Author:
Enrico Homann

Method Summary
 Lecture getLecture()
          Will return the Lecture object.
 Paragraph getParagraph()
          Will return the Paragraph object.
 com.google.gwt.user.client.ui.Widget getParagraphEditPanel(Paragraph para, java.lang.String position, com.google.gwt.user.client.ui.VerticalPanel parentPanel, com.google.gwt.user.client.ui.Widget paragraphMenu, com.google.gwt.user.client.ui.HTML htmlParaView)
          Will return the edit panel that is displayed for Paragraph para's contents in edit mode.
 com.google.gwt.user.client.ui.Widget getParagraphMenuPanel(Paragraph para)
          Will return a top menu panel that is displayed above the paragraph's contents.
 void setLecture(Lecture lecture)
          Sets the Lecture object.
 void setParagraph(Paragraph oParagraph)
          Sets the Paragraph object.
 void showParagraph(int currentTableRow, Paragraph para, java.lang.String newPosition, com.google.gwt.user.client.ui.HTML htmlParaView, com.google.gwt.user.client.ui.VerticalPanel panel)
          Called to show the paragraph's contents.
 

Method Detail

setLecture

void setLecture(Lecture lecture)
Sets the Lecture object.

Parameters:
lecture - Lecture

getLecture

Lecture getLecture()
Will return the Lecture object.

Returns:
Lecture

setParagraph

void setParagraph(Paragraph oParagraph)
Sets the Paragraph object.

Parameters:
oParagraph - Paragraph

getParagraph

Paragraph getParagraph()
Will return the Paragraph object.

Returns:
Paragraph

getParagraphMenuPanel

com.google.gwt.user.client.ui.Widget getParagraphMenuPanel(Paragraph para)
Will return a top menu panel that is displayed above the paragraph's contents.

Parameters:
para - Paragraph
Returns:
Widget

getParagraphEditPanel

com.google.gwt.user.client.ui.Widget getParagraphEditPanel(Paragraph para,
                                                           java.lang.String position,
                                                           com.google.gwt.user.client.ui.VerticalPanel parentPanel,
                                                           com.google.gwt.user.client.ui.Widget paragraphMenu,
                                                           com.google.gwt.user.client.ui.HTML htmlParaView)
Will return the edit panel that is displayed for Paragraph para's contents in edit mode.

Parameters:
para - Paragraph
position - String
parentPanel - VerticalPanel
paragraphMenu - Widget
htmlParaView - HTML
Returns:
Widget

showParagraph

void showParagraph(int currentTableRow,
                   Paragraph para,
                   java.lang.String newPosition,
                   com.google.gwt.user.client.ui.HTML htmlParaView,
                   com.google.gwt.user.client.ui.VerticalPanel panel)
Called to show the paragraph's contents.

Parameters:
currentTableRow - int Position of the panel within the FlexTable
para - Paragraph
newPosition - String UI display position
htmlParaView - HTML the view widget of the contents
panel - VerticalPanel