Class ObjectViewWidget


  • @Component
    public class ObjectViewWidget
    extends AbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
    Toolkit for an ObjectView.
    Author:
    Orlando Paz <orlando.paz@kuwaiba.org>
    • Constructor Detail

      • ObjectViewWidget

        public ObjectViewWidget()
    • Method Detail

      • getName

        public String getName()
        Description copied from class: AbstractObjectRelatedViewWidget
        The name of the view. This might not be important for hard-coded views, but it is relevant in custom, scripted views.
        Specified by:
        getName in class AbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
        Returns:
        A short display name of the view
      • getVersion

        public String getVersion()
        Description copied from class: AbstractObjectRelatedViewWidget
        The current version of the view. This might not be important for hard-coded views, but it is relevant in custom, scripted views.
        Specified by:
        getVersion in class AbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
        Returns:
        The version of the view.
      • build

        public com.vaadin.flow.component.orderedlayout.VerticalLayout build​(BusinessObjectLight businessObject)
                                                                     throws InventoryException
        Description copied from class: AbstractObjectRelatedViewWidget
        The factory method that builds a view (a scene + container with tools).
        Specified by:
        build in class AbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
        Parameters:
        businessObject - The object used as input to build the view.
        Returns:
        A visual component that can be embedded in dashboards and UIs.
        Throws:
        InventoryException - In case the process of building the view raises an exception while interacting with the persistence service.
      • setButtonTitle

        public void setButtonTitle​(com.vaadin.flow.component.button.Button button,
                                   String title)
        Set the title/tool tip for the given button
        Parameters:
        button - the button to be set
        title - the title to be added