public class Placeholder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_EMTPYTEXT |
static java.lang.String |
DEFAULT_PLACEHOLDER_TOUCH |
Constructor and Description |
---|
Placeholder() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getComponentTitle(Component component)
Get title of component
|
static java.lang.String |
getDefaultPlaceholder(ServletRequest slingRequest,
Component component,
java.lang.String defaultPlaceholder)
Get default placeholder for any component incl.
|
static java.lang.String |
getDefaultPlaceholder(ServletRequest slingRequest,
Component component,
java.lang.String defaultPlaceholder,
java.lang.String... addClasses)
Get default placeholder for any component incl.
|
static java.lang.String |
getDefaultPlaceholder(ServletRequest slingRequest,
java.lang.String title,
java.lang.String defaultPlaceholder,
java.lang.String... addClasses)
Get default placeholder for any component incl.
|
static boolean |
isAuthoringUIModeTouch(ServletRequest slingRequest)
Check if UI is in authoring mode TOUCH
|
public static final java.lang.String DEFAULT_PLACEHOLDER_TOUCH
public static final java.lang.String ATTRIBUTE_EMTPYTEXT
public static boolean isAuthoringUIModeTouch(ServletRequest slingRequest)
slingRequest
- requestpublic static java.lang.String getDefaultPlaceholder(ServletRequest slingRequest, java.lang.String title, java.lang.String defaultPlaceholder, java.lang.String... addClasses)
slingRequest
- requesttitle
- text information for placeholderdefaultPlaceholder
- default placeholderaddClasses
- add additional classes to the placeholder divpublic static java.lang.String getDefaultPlaceholder(ServletRequest slingRequest, Component component, java.lang.String defaultPlaceholder, java.lang.String... addClasses)
slingRequest
- requestcomponent
- component to read title fromdefaultPlaceholder
- default placeholderaddClasses
- add additional classes to the placeholder divpublic static java.lang.String getDefaultPlaceholder(ServletRequest slingRequest, Component component, java.lang.String defaultPlaceholder)
slingRequest
- requestcomponent
- component to read title fromdefaultPlaceholder
- default placeholderpublic static java.lang.String getComponentTitle(Component component)
component
- ComponentCopyright © 2010 - 2020 Adobe. All Rights Reserved