Package com.vaadin.shared.ui
Class ComponentStateUtil
- java.lang.Object
-
- com.vaadin.shared.ui.ComponentStateUtil
-
- All Implemented Interfaces:
Serializable
public final class ComponentStateUtil extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Registration
addRegisteredEventListener(SharedState state, String eventListenerId)
Adds an event listener id.static boolean
hasDescription(AbstractComponentState state)
static boolean
hasStyles(AbstractComponentState state)
static boolean
hasStyles(List<String> styles)
static boolean
isRelativeHeight(AbstractComponentState state)
static boolean
isRelativeWidth(AbstractComponentState state)
static boolean
isUndefinedHeight(AbstractComponentState state)
static boolean
isUndefinedWidth(AbstractComponentState state)
static void
removeRegisteredEventListener(SharedState state, String eventIdentifier)
Deprecated.Use aRegistration
object returned byaddRegisteredEventListener(SharedState, String)
to remove a listener
-
-
-
Method Detail
-
isUndefinedWidth
public static final boolean isUndefinedWidth(AbstractComponentState state)
-
isUndefinedHeight
public static final boolean isUndefinedHeight(AbstractComponentState state)
-
hasDescription
public static final boolean hasDescription(AbstractComponentState state)
-
hasStyles
public static final boolean hasStyles(AbstractComponentState state)
-
isRelativeWidth
public static final boolean isRelativeWidth(AbstractComponentState state)
-
isRelativeHeight
public static final boolean isRelativeHeight(AbstractComponentState state)
-
removeRegisteredEventListener
@Deprecated public static final void removeRegisteredEventListener(SharedState state, String eventIdentifier)
Deprecated.Use aRegistration
object returned byaddRegisteredEventListener(SharedState, String)
to remove a listenerRemoves an event listener id.- Parameters:
state
- shared stateeventIdentifier
- The event identifier to remove
-
addRegisteredEventListener
public static final Registration addRegisteredEventListener(SharedState state, String eventListenerId)
Adds an event listener id.- Parameters:
eventListenerId
- The event identifier to add- Returns:
- a registration object for removing the listener
- Since:
- 8.0
-
-