fi.paatti.mobile.mobileview
Interface MobileViewHeaderAndFooterActions

All Known Implementing Classes:
MobileView, MobileViewHandler

public interface MobileViewHeaderAndFooterActions

An interface for all the methods that can be used to change MobileView's header and footer icons, text, etc.

Since:
0.0.3
Author:
Lauri Satokangas, lauri.n.satokangas@student.jyu.fi @date 3.4.2012
 

Method Summary
 void resetFooterButtons()
          Removes all text and icons from all the footer buttons.
 void setFooterButtonEnabled(Object footerButton, boolean enabled)
          Enable or disable the button.
 void setFooterButtonIcon(Object footerButton, com.vaadin.terminal.ThemeResource iconResource)
          Set the icon of the footer button.
 void setFooterButtonPressed(Object footerButton, boolean pressed)
          Sets the button state as pressed.
 void setFooterButtonsEnabled(boolean enabled)
          Enable all footerbuttons.
 void setFooterButtonsVisible(boolean visible)
          Hide all the footer buttons or make them visible.
 void setFooterButtonText(Object footerButton, String text)
          Set the text of the footer button.
 void setHeaderIcon(com.vaadin.terminal.ThemeResource iconResource)
          Set icon for the header.
 void setHeaderText(String text)
          Set the text of the header label.
 

Method Detail

setHeaderText

void setHeaderText(String text)
Set the text of the header label.

The text can be styled with the style name .v-label-headertext

Parameters:
text - The text for the header.

setHeaderIcon

void setHeaderIcon(com.vaadin.terminal.ThemeResource iconResource)
Set icon for the header.

Parameters:
iconResource - ThemeResource containing the icon

setFooterButtonText

void setFooterButtonText(Object footerButton,
                         String text)
Set the text of the footer button.

Parameters:
footerButton - On which button the text will be set
text - The new text of the button

setFooterButtonEnabled

void setFooterButtonEnabled(Object footerButton,
                            boolean enabled)
Enable or disable the button.

Parameters:
footerButton - Wich button will be enabled/disabled
enabled - Will the button be enabled or disabled

setFooterButtonPressed

void setFooterButtonPressed(Object footerButton,
                            boolean pressed)
Sets the button state as pressed.

This means adding the button a style 'pressed' or removing the style.

Parameters:
footerButton - Wich button will be pressed/unpressed
pressed - Will the button be pressed or not.

setFooterButtonIcon

void setFooterButtonIcon(Object footerButton,
                         com.vaadin.terminal.ThemeResource iconResource)
Set the icon of the footer button.

Parameters:
footerButton - On which button the icon will be set.
iconResource - ThemeResource containing the icon

setFooterButtonsEnabled

void setFooterButtonsEnabled(boolean enabled)
Enable all footerbuttons.

Parameters:
enabled - Will the buttons be set to enabled or disabled.

resetFooterButtons

void resetFooterButtons()
Removes all text and icons from all the footer buttons. Also sets the state as enabled and makes all the buttons visible.


setFooterButtonsVisible

void setFooterButtonsVisible(boolean visible)
Hide all the footer buttons or make them visible.

Parameters:
visible - Will the buttons be visible or hidden.


Copyright © 2012. All Rights Reserved.