Class ObjectViewWidget
- java.lang.Object
 - 
- org.neotropic.kuwaiba.core.apis.integration.modules.views.AbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
 - 
- org.neotropic.kuwaiba.modules.optional.physcon.widgets.ObjectViewWidget
 
 
 
- 
@Component public class ObjectViewWidget extends AbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>
Toolkit for anObjectView.- Author:
 - Orlando Paz <orlando.paz@kuwaiba.org>
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ObjectViewWidget() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringappliesTo()Indicates what inventory objects can be represented graphically using the toolkit.com.vaadin.flow.component.orderedlayout.VerticalLayoutbuild(BusinessObjectLight businessObject)The factory method that builds a view (a scene + container with tools).StringgetDescription()More details on what the view does.StringgetName()The name of the view.StringgetTitle()The title of the view.StringgetVendor()Who wrote the view.StringgetVersion()The current version of the view.voidsaveView()voidsetButtonTitle(com.vaadin.flow.component.button.Button button, String title)Set the title/tool tip for the given button 
 - 
 
- 
- 
Method Detail
- 
getName
public String getName()
Description copied from class:AbstractObjectRelatedViewWidgetThe name of the view. This might not be important for hard-coded views, but it is relevant in custom, scripted views.- Specified by:
 getNamein classAbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>- Returns:
 - A short display name of the view
 
 
- 
getDescription
public String getDescription()
Description copied from class:AbstractObjectRelatedViewWidgetMore details on what the view does. This might not be important for hard-coded views, but it is relevant in custom, scripted views.- Specified by:
 getDescriptionin classAbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>- Returns:
 - The view description.
 
 
- 
getVersion
public String getVersion()
Description copied from class:AbstractObjectRelatedViewWidgetThe current version of the view. This might not be important for hard-coded views, but it is relevant in custom, scripted views.- Specified by:
 getVersionin classAbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>- Returns:
 - The version of the view.
 
 
- 
getVendor
public String getVendor()
Description copied from class:AbstractObjectRelatedViewWidgetWho wrote the view.- Specified by:
 getVendorin classAbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>- Returns:
 - A string with the name of the creator of the view, and preferably a way to contact it.
 
 
- 
appliesTo
public String appliesTo()
Description copied from class:AbstractObjectRelatedViewWidgetIndicates what inventory objects can be represented graphically using the toolkit.- Specified by:
 appliesToin classAbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>- Returns:
 - The class of the instances.
 
 
- 
getTitle
public String getTitle()
Description copied from class:AbstractObjectRelatedViewWidgetThe title of the view.- Specified by:
 getTitlein classAbstractObjectRelatedViewWidget<com.vaadin.flow.component.orderedlayout.VerticalLayout>- Returns:
 - A short display title of the view
 
 
- 
build
public com.vaadin.flow.component.orderedlayout.VerticalLayout build(BusinessObjectLight businessObject) throws InventoryException
Description copied from class:AbstractObjectRelatedViewWidgetThe factory method that builds a view (a scene + container with tools).- Specified by:
 buildin classAbstractObjectRelatedViewWidget<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 settitle- the title to be added
 
- 
saveView
public void saveView() throws InventoryException- Throws:
 InventoryException
 
 - 
 
 -