Package com.storedobject.vaadin
Class Scrollable
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.Component>
com.storedobject.vaadin.Scrollable
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
public class Scrollable
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.Component>
Make any Vaadin component scrollable.
Example: Component c; new Scrollable(c);
- Author:
- Syam
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScrollable(com.vaadin.flow.component.Component component) Constructor.Scrollable(com.vaadin.flow.component.Component component, boolean scrollable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.ComponentbooleanReturn curent state.static booleanisScrollable(com.vaadin.flow.component.Component component) Check current state of scrollability of a particular component.Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
Scrollable
public Scrollable(com.vaadin.flow.component.Component component) Constructor.- Parameters:
component- Component to make it scroll
-
Scrollable
public Scrollable(com.vaadin.flow.component.Component component, boolean scrollable) Constructor.- Parameters:
component- Component to make it scrollscrollable- Scrollable or not
-
-
Method Details
-
initContent
protected com.vaadin.flow.component.Component initContent()- Overrides:
initContentin classcom.vaadin.flow.component.Composite<com.vaadin.flow.component.Component>
-
isScrollable
public boolean isScrollable()Return curent state.- Returns:
- Scrollable or not.
-
isScrollable
public static boolean isScrollable(com.vaadin.flow.component.Component component) Check current state of scrollability of a particular component.- Parameters:
component- Component to check- Returns:
- Scrollable or not.
-