|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.addon.touchkit.settings.ViewPortSettings
public class ViewPortSettings
The ViewPortSettings class is responsible for configuring the viewport in the application bootstrap page. See the Apple developer documentation for details.
Constructor Summary | |
---|---|
ViewPortSettings()
|
Method Summary | |
---|---|
Float |
getViewPortInitialScale()
|
Float |
getViewPortMaximumScale()
|
Float |
getViewPortMinimumScale()
|
String |
getViewPortWidth()
|
Boolean |
isViewPortUserScalable()
|
void |
modifyBootstrapFragment(com.vaadin.server.BootstrapFragmentResponse response)
|
void |
modifyBootstrapPage(com.vaadin.server.BootstrapPageResponse response)
|
void |
setViewPortInitialScale(Float viewPortInitialScale)
Sets the initial scale of the viewport. |
void |
setViewPortMaximumScale(Float viewPortMaximumScale)
Sets the maximum scale allowed for the user. |
void |
setViewPortMinimumScale(Float viewPortMinimumScale)
Sets the minimum scale allowed by the user. |
void |
setViewPortUserScalable(Boolean viewPortUserScalable)
Sets whether the user should be allowed to zoom the content. |
void |
setViewPortWidth(String viewPortWidth)
Sets the viewport width into which the client browsers should render the page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewPortSettings()
Method Detail |
---|
public void setViewPortUserScalable(Boolean viewPortUserScalable)
viewPortUserScalable
- true to allow pinch-to-zoompublic Boolean isViewPortUserScalable()
setViewPortUserScalable(Boolean)
public void setViewPortInitialScale(Float viewPortInitialScale)
viewPortInitialScale
- The initial scale of the viewport as a multiplier.public Float getViewPortInitialScale()
public void setViewPortMaximumScale(Float viewPortMaximumScale)
viewPortMaximumScale
- the maximum scale allowed when zoomingpublic Float getViewPortMaximumScale()
public void setViewPortWidth(String viewPortWidth)
viewPortWidth
- the requested viewport width.public String getViewPortWidth()
setViewPortWidth(String)
public void setViewPortMinimumScale(Float viewPortMinimumScale)
viewPortMinimumScale
- the minimum scale allowed when zooming.public Float getViewPortMinimumScale()
setViewPortMinimumScale(Float)
public void modifyBootstrapFragment(com.vaadin.server.BootstrapFragmentResponse response)
modifyBootstrapFragment
in interface com.vaadin.server.BootstrapListener
public void modifyBootstrapPage(com.vaadin.server.BootstrapPageResponse response)
modifyBootstrapPage
in interface com.vaadin.server.BootstrapListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |