Class MainMenu

  extended by
      extended by
          extended by
              extended by
                  extended by
                      extended by us.asciiroth.client.ui.CenteredPopupPanel
                          extended by us.asciiroth.client.ui.MainMenu
All Implemented Interfaces:<>,,,,,,, java.lang.Iterable<>

public class MainMenu
extends CenteredPopupPanel

This menu is suprisingly hairy. It has to represent the following states:

1. A browser app but without persistence (!isDesktopApp && !hasPersistence) 2. A browser app with persistence (!isDesktopApp && hasPersistence) 3. A desktop app (isDesktopApp) 4. A test game started from the editor (isTestGame)

Nested Class Summary
Nested classes/interfaces inherited from class
Nested classes/interfaces inherited from class,
Field Summary
Fields inherited from class
Constructor Summary
Method Summary
 void center()
          "Center" the dialog but only relative to the body of the document, not the window as a whole.
 void focus()
Methods inherited from class
addAutoHidePartner, addCloseHandler, addPopupListener, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getTitle, hide, hide, isAnimationEnabled, isAutoHideEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidget, setWidth, show, showRelativeTo
Methods inherited from class
add, getWidget, iterator, remove
Methods inherited from class
Methods inherited from class
fireEvent, getParent, isAttached, onBrowserEvent, removeFromParent, sinkEvents
Methods inherited from class
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, setPixelSize, setSize, setStyleName, setStylePrimaryName, setVisible, toString, unsinkEvents
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface

Constructor Detail


public MainMenu()
Method Detail


public void center()
Description copied from class: CenteredPopupPanel
"Center" the dialog but only relative to the body of the document, not the window as a whole.

center in class CenteredPopupPanel


public void focus()
Specified by:
focus in class CenteredPopupPanel


2009 Alx Dark