de.hs_rm.cs.lecturenotes.client.core.presentation.ui
Class MainApplicationDockLayoutPanel

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.DockLayoutPanel
                      extended by de.hs_rm.cs.lecturenotes.client.core.presentation.ui.MainApplicationDockLayoutPanel
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.AnimatedLayout, 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.IsWidget, com.google.gwt.user.client.ui.ProvidesResize, com.google.gwt.user.client.ui.RequiresResize, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>

public final class MainApplicationDockLayoutPanel
extends com.google.gwt.user.client.ui.DockLayoutPanel

This Panel represents the main application panel.

Version:
$LastChangedRevision: 283 $
Author:
Enrico Homann

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.DockLayoutPanel
com.google.gwt.user.client.ui.DockLayoutPanel.Direction
 
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.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
static int MAINPANEL_BORDER_OFFSET_PX
          The distance to the browser dimension for the main panel (height and width) in pixel.
static java.lang.String STRING_TABPANELICONHTML_DIMENSION
          Dimension of the Tab Panel Icons.
static java.lang.String TABPANEL_ICONHTML_CONTENT
          Icon Html Image Code for Paragraph Tab Content.
static java.lang.String TABPANEL_ICONHTML_DISCUSSION
          Icon Html Image Code for Paragraph Tab Discussion.
static java.lang.String TABPANEL_ICONHTML_EXERCISE
          Icon Html Image Code for Paragraph Tab Exercise.
static java.lang.String TABPANEL_ICONHTML_FILECARD
          Icon Html Image Code for Paragraph Tab Filecard.
static java.lang.String TABPANEL_ICONHTML_SLIDE
          Icon Html Image Code for Paragraph Tab Slide.
static int TABSELECTION_ANNOTATION_DOCENT
          Selection Id for Tab Selection Annotation:Docent.
static int TABSELECTION_ANNOTATION_USER
          Selection Id for Tab Selection Annotation:User.
static int TABSELECTION_LECTURE_CHAPTER
          Selection Id for Tab Selection Lecture:Chapter.
static int TABSELECTION_LECTURE_DETAILS
          Selection Id for Tab Selection Lecture:Details.
static int TABSELECTION_PARAGRAPH_CONTENT
          Selection Id for Tab Selection Paragraph:Content.
static int TABSELECTION_PARAGRAPH_EXERCISE
          Selection Id for Tab Selection Paragraph:Exercise.
static int TABSELECTION_PARAGRAPH_FILECARD
          Selection Id for Tab Selection Paragraph:Filecard.
static int TABSELECTION_PARAGRAPH_SLIDE
          Selection Id for Tab Selection Paragraph:Slide.
static int TABSELECTION_PARAGRAPH_WHATSNEW
          Selection Id for Tab Selection Paragraph:Whatsnew.
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
MainApplicationDockLayoutPanel()
          Default Constructor.
 
Method Summary
 void clearAnnotationViews()
          Clears the annotation views.
 AboutDialogBox getAboutDialogBox()
          Will return the about box DialogBox as lazy-init singleton.
 com.google.gwt.user.client.ui.MenuItem getAboutMenuItem()
          Will return the MenuItem for the about box.
 AnnotationModuleComposite getDocentAnnotationComposite()
          Will return the composite representing docent annotations.
 com.google.gwt.user.client.ui.MenuBar getEditTopMenuBar()
          Will return a MenuBar that is the "edit" menu.
 com.google.gwt.user.client.ui.MenuBar getFileTopMenuBar()
          Will return a MenuBar that is the "file" menu.
 com.google.gwt.user.client.ui.MenuItem getGenerateCodeMenuItem()
          Will return the MenuItem for extracting code.
 com.google.gwt.user.client.ui.MenuBar getHelpTopMenuBar()
          Will return a MenuBar that is the "help" menu.
static MainApplicationDockLayoutPanel getInstance()
          Will return the singleton instance.
 com.google.gwt.user.client.ui.MenuItem getLectureListMenuItem()
          Will return the MenuItem for lecture list.
 com.google.gwt.user.client.ui.MenuItem getMedialibCurrentLectureMenuItem()
          Will return the MenuItem for media library.
 com.google.gwt.user.client.ui.MenuItem getNewLectureMenuItem()
          Will return the MenuItem for new lecture.
 com.google.gwt.user.client.ui.MenuItem getNewSystemConfigurationMenuItem()
          Will return the MenuItem for system configuration.
 ParagraphViewerEditor getParagraphViewerEditor()
          Will return the paragraph viewer and editor.
 com.google.gwt.user.client.ui.MenuItem getPrintFilecardsMenuItem()
          Will return the MenuItem for print filecards.
 com.google.gwt.user.client.ui.MenuItem getPrintLectureMenuItem()
          Will return the MenuItem for print lecture.
 com.google.gwt.user.client.ui.TabBar getTabBarAnnotations()
          Will return the TabBar for annotations.
 com.google.gwt.user.client.ui.TabBar getTabBarLecture()
          Will return the TabBar for paragraph.
 com.google.gwt.user.client.ui.TabBar getTabBarParagraph()
          Will return the TabBar for paragraph.
 AnnotationModuleComposite getUserAnnotationComposite()
          Will return the composite representing user annotations.
 com.google.gwt.user.client.ui.MenuBar getViewTopMenuBar()
          Will return a MenuBar that is the "view" menu.
 IModule<WhatsNewModuleModel> getWhatsNewModule()
          Will return the WhatsNewModule.
 void onLoad()
           
 void onTabBarParagraphSelection(int nSelection)
          Will be called when the user changed a selection in the paragraph tab.
 void refreshUI()
          Refreshs the user interface.
 void setAboutMenuItem(com.google.gwt.user.client.ui.MenuItem oAboutMenuItem)
          Sets the MenuItem for the about box.
 void setGenerateCodeMenuItem(com.google.gwt.user.client.ui.MenuItem oGenerateCodeMenuItem)
          Sets the MenuItem for extracting code.
 void setLectureListMenuItem(com.google.gwt.user.client.ui.MenuItem oLectureListMenuItem)
          Sets the MenuItem for lecture list.
 void setLeftContent(com.google.gwt.user.client.ui.Widget widget)
          Sets the left content of the split panel area.
 void setMedialibCurrentLectureMenuItem(com.google.gwt.user.client.ui.MenuItem oMedialibCurrentLectureMenuItem)
          Sets the MenuItem for media library.
 void setMiddleContent(com.google.gwt.user.client.ui.Widget widget)
          Sets the middle content of the split panel area.
 void setNewLectureMenuItem(com.google.gwt.user.client.ui.MenuItem oNewLectureMenuItem)
          Sets the MenuItem for new lecture.
 void setNewSystemConfigurationMenuItem(com.google.gwt.user.client.ui.MenuItem oNewSystemConfigurationMenuItem)
          Sets the MenuItem for system configuration.
 void setPrintFilecardsMenuItem(com.google.gwt.user.client.ui.MenuItem oPrintFilecardsMenuItem)
          Sets the MenuItem for print filecards.
 void setPrintLectureMenuItem(com.google.gwt.user.client.ui.MenuItem oPrintLectureMenuItem)
          Sets the MenuItem for print lecture.
 void setUser(User user)
          Sets the current user of the client.
 void showLectureList()
          Shows the lecture list in the middle content panel.
 void updateCurrentView()
          Updates the current view based upon tab selection.
 void updateMenu()
          Updates the visibility of menu items.
 
Methods inherited from class com.google.gwt.user.client.ui.DockLayoutPanel
add, addEast, addEast, addLineEnd, addLineStart, addNorth, addNorth, addSouth, addSouth, addWest, addWest, animate, animate, forceLayout, getWidgetContainerElement, getWidgetDirection, getWidgetSize, insertEast, insertLineEnd, insertLineStart, insertNorth, insertSouth, insertWest, onResize, remove, setWidgetHidden, setWidgetSize
 
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
 

Field Detail

MAINPANEL_BORDER_OFFSET_PX

public static final int MAINPANEL_BORDER_OFFSET_PX
The distance to the browser dimension for the main panel (height and width) in pixel. This is done to avoid the browser scroll bars.

See Also:
Constant Field Values

STRING_TABPANELICONHTML_DIMENSION

public static final java.lang.String STRING_TABPANELICONHTML_DIMENSION
Dimension of the Tab Panel Icons.

See Also:
Constant Field Values

TABPANEL_ICONHTML_CONTENT

public static final java.lang.String TABPANEL_ICONHTML_CONTENT
Icon Html Image Code for Paragraph Tab Content.


TABPANEL_ICONHTML_EXERCISE

public static final java.lang.String TABPANEL_ICONHTML_EXERCISE
Icon Html Image Code for Paragraph Tab Exercise.


TABPANEL_ICONHTML_SLIDE

public static final java.lang.String TABPANEL_ICONHTML_SLIDE
Icon Html Image Code for Paragraph Tab Slide.


TABPANEL_ICONHTML_FILECARD

public static final java.lang.String TABPANEL_ICONHTML_FILECARD
Icon Html Image Code for Paragraph Tab Filecard.


TABPANEL_ICONHTML_DISCUSSION

public static final java.lang.String TABPANEL_ICONHTML_DISCUSSION
Icon Html Image Code for Paragraph Tab Discussion.


TABSELECTION_PARAGRAPH_CONTENT

public static final int TABSELECTION_PARAGRAPH_CONTENT
Selection Id for Tab Selection Paragraph:Content.

See Also:
Constant Field Values

TABSELECTION_PARAGRAPH_EXERCISE

public static final int TABSELECTION_PARAGRAPH_EXERCISE
Selection Id for Tab Selection Paragraph:Exercise.

See Also:
Constant Field Values

TABSELECTION_PARAGRAPH_SLIDE

public static final int TABSELECTION_PARAGRAPH_SLIDE
Selection Id for Tab Selection Paragraph:Slide.

See Also:
Constant Field Values

TABSELECTION_PARAGRAPH_FILECARD

public static final int TABSELECTION_PARAGRAPH_FILECARD
Selection Id for Tab Selection Paragraph:Filecard.

See Also:
Constant Field Values

TABSELECTION_PARAGRAPH_WHATSNEW

public static final int TABSELECTION_PARAGRAPH_WHATSNEW
Selection Id for Tab Selection Paragraph:Whatsnew.

See Also:
Constant Field Values

TABSELECTION_LECTURE_CHAPTER

public static final int TABSELECTION_LECTURE_CHAPTER
Selection Id for Tab Selection Lecture:Chapter.

See Also:
Constant Field Values

TABSELECTION_LECTURE_DETAILS

public static final int TABSELECTION_LECTURE_DETAILS
Selection Id for Tab Selection Lecture:Details.

See Also:
Constant Field Values

TABSELECTION_ANNOTATION_DOCENT

public static final int TABSELECTION_ANNOTATION_DOCENT
Selection Id for Tab Selection Annotation:Docent.

See Also:
Constant Field Values

TABSELECTION_ANNOTATION_USER

public static final int TABSELECTION_ANNOTATION_USER
Selection Id for Tab Selection Annotation:User.

See Also:
Constant Field Values
Constructor Detail

MainApplicationDockLayoutPanel

public MainApplicationDockLayoutPanel()
Default Constructor.

Method Detail

getAboutDialogBox

public AboutDialogBox getAboutDialogBox()
Will return the about box DialogBox as lazy-init singleton.

Returns:
AboutDialogBox

getFileTopMenuBar

public com.google.gwt.user.client.ui.MenuBar getFileTopMenuBar()
Will return a MenuBar that is the "file" menu.

Returns:
MenuBar

getEditTopMenuBar

public com.google.gwt.user.client.ui.MenuBar getEditTopMenuBar()
Will return a MenuBar that is the "edit" menu.

Returns:
MenuBar

getViewTopMenuBar

public com.google.gwt.user.client.ui.MenuBar getViewTopMenuBar()
Will return a MenuBar that is the "view" menu.

Returns:
MenuBar

getHelpTopMenuBar

public com.google.gwt.user.client.ui.MenuBar getHelpTopMenuBar()
Will return a MenuBar that is the "help" menu.

Returns:
MenuBar

getLectureListMenuItem

public com.google.gwt.user.client.ui.MenuItem getLectureListMenuItem()
Will return the MenuItem for lecture list.

Returns:
MenuItem

setLectureListMenuItem

public void setLectureListMenuItem(com.google.gwt.user.client.ui.MenuItem oLectureListMenuItem)
Sets the MenuItem for lecture list.

Parameters:
oLectureListMenuItem - MenuItem

getNewLectureMenuItem

public com.google.gwt.user.client.ui.MenuItem getNewLectureMenuItem()
Will return the MenuItem for new lecture.

Returns:
MenuItem

setNewLectureMenuItem

public void setNewLectureMenuItem(com.google.gwt.user.client.ui.MenuItem oNewLectureMenuItem)
Sets the MenuItem for new lecture.

Parameters:
oNewLectureMenuItem - MenuItem

getNewSystemConfigurationMenuItem

public com.google.gwt.user.client.ui.MenuItem getNewSystemConfigurationMenuItem()
Will return the MenuItem for system configuration.

Returns:
MenuItem

setNewSystemConfigurationMenuItem

public void setNewSystemConfigurationMenuItem(com.google.gwt.user.client.ui.MenuItem oNewSystemConfigurationMenuItem)
Sets the MenuItem for system configuration.

Parameters:
oNewSystemConfigurationMenuItem - MenuItem

getPrintLectureMenuItem

public com.google.gwt.user.client.ui.MenuItem getPrintLectureMenuItem()
Will return the MenuItem for print lecture.

Returns:
MenuItem

setPrintLectureMenuItem

public void setPrintLectureMenuItem(com.google.gwt.user.client.ui.MenuItem oPrintLectureMenuItem)
Sets the MenuItem for print lecture.

Parameters:
oPrintLectureMenuItem - MenuItem

getPrintFilecardsMenuItem

public com.google.gwt.user.client.ui.MenuItem getPrintFilecardsMenuItem()
Will return the MenuItem for print filecards.

Returns:
MenuItem

setPrintFilecardsMenuItem

public void setPrintFilecardsMenuItem(com.google.gwt.user.client.ui.MenuItem oPrintFilecardsMenuItem)
Sets the MenuItem for print filecards.

Parameters:
oPrintFilecardsMenuItem - MenuItem

getMedialibCurrentLectureMenuItem

public com.google.gwt.user.client.ui.MenuItem getMedialibCurrentLectureMenuItem()
Will return the MenuItem for media library.

Returns:
MenuItem

setMedialibCurrentLectureMenuItem

public void setMedialibCurrentLectureMenuItem(com.google.gwt.user.client.ui.MenuItem oMedialibCurrentLectureMenuItem)
Sets the MenuItem for media library.

Parameters:
oMedialibCurrentLectureMenuItem - MenuItem

getGenerateCodeMenuItem

public com.google.gwt.user.client.ui.MenuItem getGenerateCodeMenuItem()
Will return the MenuItem for extracting code.

Returns:
MenuItem

setGenerateCodeMenuItem

public void setGenerateCodeMenuItem(com.google.gwt.user.client.ui.MenuItem oGenerateCodeMenuItem)
Sets the MenuItem for extracting code.

Parameters:
oGenerateCodeMenuItem - MenuItem

getAboutMenuItem

public com.google.gwt.user.client.ui.MenuItem getAboutMenuItem()
Will return the MenuItem for the about box.

Returns:
MenuItem

setAboutMenuItem

public void setAboutMenuItem(com.google.gwt.user.client.ui.MenuItem oAboutMenuItem)
Sets the MenuItem for the about box.

Parameters:
oAboutMenuItem - MenuItem

getInstance

public static MainApplicationDockLayoutPanel getInstance()
Will return the singleton instance.

Returns:
MainApplicationDockLayoutPanel

onLoad

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

onTabBarParagraphSelection

public void onTabBarParagraphSelection(int nSelection)
Will be called when the user changed a selection in the paragraph tab.

Parameters:
nSelection - int

clearAnnotationViews

public void clearAnnotationViews()
Clears the annotation views.


getWhatsNewModule

public IModule<WhatsNewModuleModel> getWhatsNewModule()
Will return the WhatsNewModule.

Returns:
IModule of WhatsNewModuleModel

getParagraphViewerEditor

public ParagraphViewerEditor getParagraphViewerEditor()
Will return the paragraph viewer and editor.

Returns:
ParagraphViewerEditor

getDocentAnnotationComposite

public AnnotationModuleComposite getDocentAnnotationComposite()
Will return the composite representing docent annotations.

Returns:
AnootationModuleComposite

getUserAnnotationComposite

public AnnotationModuleComposite getUserAnnotationComposite()
Will return the composite representing user annotations.

Returns:
AnootationModuleComposite

getTabBarAnnotations

public com.google.gwt.user.client.ui.TabBar getTabBarAnnotations()
Will return the TabBar for annotations.

Returns:
TabBar

getTabBarParagraph

public com.google.gwt.user.client.ui.TabBar getTabBarParagraph()
Will return the TabBar for paragraph.

Returns:
TabBar

getTabBarLecture

public com.google.gwt.user.client.ui.TabBar getTabBarLecture()
Will return the TabBar for paragraph.

Returns:
TabBar

showLectureList

public void showLectureList()
Shows the lecture list in the middle content panel.


refreshUI

public void refreshUI()
Refreshs the user interface.


updateCurrentView

public void updateCurrentView()
Updates the current view based upon tab selection.


updateMenu

public void updateMenu()
Updates the visibility of menu items.


setMiddleContent

public void setMiddleContent(com.google.gwt.user.client.ui.Widget widget)
Sets the middle content of the split panel area.

Parameters:
widget - Widget

setLeftContent

public void setLeftContent(com.google.gwt.user.client.ui.Widget widget)
Sets the left content of the split panel area.

Parameters:
widget - Widget

setUser

public void setUser(User user)
Sets the current user of the client.

Parameters:
user - User