fi.paatti.mobile.views.mainmenuview
Class MainMenuViewLogic

java.lang.Object
  extended by fi.paatti.mobile.views.mainmenuview.MainMenuViewLogic
All Implemented Interfaces:
MobileViewLogic, MenuViewLogic

public class MainMenuViewLogic
extends Object
implements MenuViewLogic

The logic for applications main menu.

Author:
Lauri Satokangas, lauri.n.satokangas@student.jyu.fi
 

Constructor Summary
MainMenuViewLogic(MobileViewHandler viewHandler, MainMenuView mainMenuView)
          The constructor.
 
Method Summary
 void footerButtonAction(Object buttonId)
          What will be done when footer (left, middle, right) button has been clicked.
 HashMap<Object,com.vaadin.ui.Component> getFooterComponents()
          Get all the footer components (buttons).
 HashMap<Object,com.vaadin.ui.Component> getMenuComponents()
          Get the components in the actual "menu".
 void menuButtonAction(Object buttonId)
          What to do when a menu (top, center or bottom) button has been pressed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainMenuViewLogic

public MainMenuViewLogic(MobileViewHandler viewHandler,
                         MainMenuView mainMenuView)
The constructor.

Parameters:
viewHandler - The applications view handler.
mainMenuView - The view that uses this logic.
Method Detail

menuButtonAction

public void menuButtonAction(Object buttonId)
What to do when a menu (top, center or bottom) button has been pressed.

Specified by:
menuButtonAction in interface MenuViewLogic
Parameters:
buttonId - The id of the menu button

footerButtonAction

public void footerButtonAction(Object buttonId)
What will be done when footer (left, middle, right) button has been clicked.

Specified by:
footerButtonAction in interface MobileViewLogic
Parameters:
buttonId - The id of the button.

getMenuComponents

public HashMap<Object,com.vaadin.ui.Component> getMenuComponents()
Get the components in the actual "menu". Usually three buttons.

Specified by:
getMenuComponents in interface MenuViewLogic
Returns:

getFooterComponents

public HashMap<Object,com.vaadin.ui.Component> getFooterComponents()
Description copied from interface: MobileViewLogic
Get all the footer components (buttons).

Specified by:
getFooterComponents in interface MobileViewLogic
Returns:
The footer components.


Copyright © 2012. All Rights Reserved.