public interface DeviceGroup
DeviceGroup
represents a segment of mobile devices. The segment is defined by the mobile device
capabilities expected by the implementation.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESOURCE_TYPE |
Modifier and Type | Method and Description |
---|---|
void |
drawHead(javax.servlet.jsp.PageContext pageContext)
This method is to be used in a JSP script drawing the HTML head.
|
java.util.Collection<DeviceCapability> |
getCapabilities()
Returns all
DeviceCapability s supported by this device group. |
Emulator |
getDefaultEmulator()
Returns the
Emulator configured for this device group. |
java.lang.String |
getDescription()
Return the description of this device group as entered by the user.
|
java.util.List<Emulator> |
getEmulators()
Returns the emulators associated with this device.
|
java.lang.String[] |
getFilterNames()
Returns the names of filters as configured on a device group page.
|
int |
getMinimumScreenHeight()
Returns the minimum screen height devices must support in order to belong to this group.
|
int |
getMinimumScreenWidth()
Returns the minimum screen width devices must support in order to belong to this group.
|
java.lang.String |
getName()
Return the unique name of this device group.
|
java.lang.String |
getPath()
Return the path of the content page representing this device group.
|
java.lang.String |
getStaticCssPath()
Returns the path of "static.css" if the device group possesses one.
|
java.lang.String |
getTitle()
Returns the title of this device group as entered by the user.
|
java.lang.String |
getUserAgent()
A device class may optionally specify a mobile client user-agent string which devices must match in order to
belong to this group.
|
java.util.regex.Pattern |
getUserAgentPattern()
Returns the regex pattern expected for the mobile device user agent to match.
|
boolean |
hasCapability(DeviceCapability capability)
Checks whether the device group supports the given
DeviceCapability . |
boolean |
hasCapability(java.lang.String name)
Checks whether the device group supports the given
DeviceCapability . |
boolean |
showEditEmulator()
Indicates whether the emulator shall be shown during editing of a page or not.
|
static final java.lang.String RESOURCE_TYPE
java.util.Collection<DeviceCapability> getCapabilities()
DeviceCapability
s supported by this device group.Collection
containing all supported capabilities. If no capabilities are defined, an empty
collection is returned.Emulator getDefaultEmulator()
Emulator
configured for this device group.java.lang.String getDescription()
null
if not defined.java.util.List<Emulator> getEmulators()
int getMinimumScreenWidth()
0
is returned, meaning all widths are
accepted.int getMinimumScreenHeight()
0
is returned, meaning all heights are
accepted.java.lang.String getName()
String
representing the name of this device group.java.lang.String getPath()
String
representing the path of this device group.java.lang.String getTitle()
null
if not defined.java.lang.String getUserAgent()
null
is returned.String
representing the user-agent string expected by this device group, or
null
if not defined.boolean hasCapability(DeviceCapability capability)
DeviceCapability
.capability
- The capability to check whether supported by the device group.true
if the device group supports the capability.boolean hasCapability(java.lang.String name)
DeviceCapability
.name
- The name of the capability to check whether supported by the device group.true
if the device group supports the capability.void drawHead(javax.servlet.jsp.PageContext pageContext) throws java.io.IOException, ServletException
pageContext
- The JSP page context.java.io.IOException
- If an error occurred during writing to the response.ServletException
- If an error occurred including the emulator's init component.boolean showEditEmulator()
true
if the emulator shall be shown.java.util.regex.Pattern getUserAgentPattern()
java.lang.String getStaticCssPath()
String
representing the static path of the CSS of this device group, or null
if no CSS is present.java.lang.String[] getFilterNames()
DeviceMapper.getFilters()
Copyright © 2010 - 2020 Adobe. All Rights Reserved