com.vaadin.addon.touchkit.settings
Class ApplicationIcons

java.lang.Object
  extended by com.vaadin.addon.touchkit.settings.ApplicationIcons
All Implemented Interfaces:
com.vaadin.server.BootstrapListener, Serializable, EventListener

public class ApplicationIcons
extends Object
implements com.vaadin.server.BootstrapListener

The ApplicationIcons class adds OS level icons (e.g. the iOS home screen icon) for the application.

See Also:
ApplicationIcon, Serialized Form

Constructor Summary
ApplicationIcons()
           
 
Method Summary
 void addApplicationIcon(int width, int height, String url, boolean preComposed)
          Sets the application icon for this web app.
 void addApplicationIcon(String url)
          Sets the web page icon for this web app.
 ApplicationIcon[] getApplicationIcons()
          Gets the ApplicationIcons that have been added to this window with addApplicationIcon(String) or addApplicationIcon(int, int, String, boolean).
 void modifyBootstrapFragment(com.vaadin.server.BootstrapFragmentResponse response)
           
 void modifyBootstrapPage(com.vaadin.server.BootstrapPageResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationIcons

public ApplicationIcons()
Method Detail

addApplicationIcon

public void addApplicationIcon(String url)
Sets the web page icon for this web app. This icon may be used by the client OS in case the user bookmarks the web page containing this window.

Parameters:
url - the URL of the icon.
See Also:
addApplicationIcon(int, int, String, boolean)

addApplicationIcon

public void addApplicationIcon(int width,
                               int height,
                               String url,
                               boolean preComposed)
Sets the application icon for this web app. This icon may be used by the client OS in case user bookmarks the web page containing this window.

See Apple's developer documentation for more details.

Parameters:
width - the width of the icon
height - the height of the icon
url - the URL of the icon

getApplicationIcons

public ApplicationIcon[] getApplicationIcons()
Gets the ApplicationIcons that have been added to this window with addApplicationIcon(String) or addApplicationIcon(int, int, String, boolean).

Returns:
the icons added to this window.

modifyBootstrapFragment

public void modifyBootstrapFragment(com.vaadin.server.BootstrapFragmentResponse response)
Specified by:
modifyBootstrapFragment in interface com.vaadin.server.BootstrapListener

modifyBootstrapPage

public void modifyBootstrapPage(com.vaadin.server.BootstrapPageResponse response)
Specified by:
modifyBootstrapPage in interface com.vaadin.server.BootstrapListener


Copyright © 2014 Vaadin Ltd. All rights reserved.