Package com.hp.lft.sdk.web
Interface EmulatedEnvironment
- All Superinterfaces:
- Environment
- All Known Implementing Classes:
- EmulatedDevice
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the height of the emulated device screen (in pixels).getName()Returns the name of the emulated device.doubleReturns the scale factor of the emulated device screen.Returns the userAgent property of the emulated device.intgetWidth()Returns the width of the emulated device screen (in pixels).booleanisMobile()Returns true if the emulated device is mobile device.booleanReturns true if the emulated device screen touch feature is enabled.voidsetHeight(int height) Sets height of the emulated device screen (in pixels).voidsetMobile(boolean mobile) Sets the mobile property of the emulated device.voidSets name of the emulated device.voidsetScaleFactor(double scaleFactor) Sets the scale factor of the emulated device screen.voidsetTouchable(boolean touchable) Sets the touchable property of the emulated device screen.voidsetUserAgent(String userAgent) Sets the userAgent property of the emulated device.voidsetWidth(int width) Sets width of the emulated device screen (in pixels).
- 
Method Details- 
setNameSets name of the emulated device.- Parameters:
- name- the device name.
 
- 
getNameString getName()Returns the name of the emulated device.- Returns:
- name of the emulated device.
 
- 
setWidthvoid setWidth(int width) Sets width of the emulated device screen (in pixels).- Parameters:
- width- the width of the emulated device screen (in pixels).
 
- 
getWidthint getWidth()Returns the width of the emulated device screen (in pixels).- Returns:
- the width of the emulated device screen (in pixels).
 
- 
setHeightvoid setHeight(int height) Sets height of the emulated device screen (in pixels).- Parameters:
- height- the height of the emulated device screen (in pixels).
 
- 
getHeightint getHeight()Returns the height of the emulated device screen (in pixels).- Returns:
- the height of the emulated device screen (in pixels).
 
- 
setScaleFactorvoid setScaleFactor(double scaleFactor) Sets the scale factor of the emulated device screen.- Parameters:
- scaleFactor- the scale factor of the emulated device screen.
 
- 
getScaleFactordouble getScaleFactor()Returns the scale factor of the emulated device screen.- Returns:
- the scale factor of the emulated device screen.
 
- 
setTouchablevoid setTouchable(boolean touchable) Sets the touchable property of the emulated device screen.- Parameters:
- touchable- the touchable property of the emulated device screen.
 
- 
isTouchableboolean isTouchable()Returns true if the emulated device screen touch feature is enabled.- Returns:
- true if the emulated device screen touch feature is enabled.
 
- 
setUserAgentSets the userAgent property of the emulated device.- Parameters:
- userAgent- the userAgent property of the emulated device.
 
- 
getUserAgentString getUserAgent()Returns the userAgent property of the emulated device.- Returns:
- the userAgent property of the emulated device.
 
- 
setMobilevoid setMobile(boolean mobile) Sets the mobile property of the emulated device.- Parameters:
- mobile- the mobile property of the emulated device.
 
- 
isMobileboolean isMobile()Returns true if the emulated device is mobile device.- Returns:
- true if the emulated device is mobile device.
 
 
-