de.hs_rm.cs.lecturenotes.client.core.presentation.ui.editor
Class AbstractParagraphViewerEditor

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.core.presentation.ui.editor.AbstractParagraphViewerEditor
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, IParagraphViewerEditor, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
Direct Known Subclasses:
ExerciseViewerEditor, FilecardViewerEditor, ParagraphViewerEditor, SlideViewerEditor

public abstract class AbstractParagraphViewerEditor
extends com.google.gwt.user.client.ui.VerticalPanel
implements IParagraphViewerEditor

Originates from class ScriptViewMode. Abstract Paragraph viewer that is used to edit a paragraph, edit a paragraph excercise and to edit a paragraph slide. This Panel also processes children of a paragraph.

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
 
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
 
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
AbstractParagraphViewerEditor(Lecture oLecture, Paragraph oPararaph)
          Constructor.
 
Method Summary
 com.google.gwt.user.client.ui.FlexTable getFlexTable()
          Will return the FlexTable that holds the paragraphs.
 Lecture getLecture()
          Will return the Lecture object.
 Paragraph getParagraph()
          Will return the Paragraph object.
 com.google.gwt.user.client.ui.ScrollPanel getScrollPanel()
          Will return the ScrollPanel container panel.
 void setLecture(Lecture oLecture)
          Sets the Lecture object.
 void setParagraph(Paragraph oParagraph)
          Sets current Paragraph and processes its children.
 
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 de.hs_rm.cs.lecturenotes.client.core.presentation.ui.editor.IParagraphViewerEditor
getParagraphEditPanel, getParagraphMenuPanel, showParagraph
 
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
 

Constructor Detail

AbstractParagraphViewerEditor

public AbstractParagraphViewerEditor(Lecture oLecture,
                                     Paragraph oPararaph)
Constructor.

Parameters:
oLecture - Lecture, sets current lecture
oPararaph - Paragraph, sets current paragraph
Method Detail

getScrollPanel

public final com.google.gwt.user.client.ui.ScrollPanel getScrollPanel()
Will return the ScrollPanel container panel.

Returns:
ScrollPanel

getFlexTable

public final com.google.gwt.user.client.ui.FlexTable getFlexTable()
Will return the FlexTable that holds the paragraphs.

Returns:
FlexTable

setParagraph

public final void setParagraph(Paragraph oParagraph)
Sets current Paragraph and processes its children.

Specified by:
setParagraph in interface IParagraphViewerEditor
Parameters:
oParagraph - Paragraph

getParagraph

public final Paragraph getParagraph()
Description copied from interface: IParagraphViewerEditor
Will return the Paragraph object.

Specified by:
getParagraph in interface IParagraphViewerEditor
Returns:
Paragraph

setLecture

public final void setLecture(Lecture oLecture)
Description copied from interface: IParagraphViewerEditor
Sets the Lecture object.

Specified by:
setLecture in interface IParagraphViewerEditor
Parameters:
oLecture - Lecture

getLecture

public final Lecture getLecture()
Description copied from interface: IParagraphViewerEditor
Will return the Lecture object.

Specified by:
getLecture in interface IParagraphViewerEditor
Returns:
Lecture