Class LayoutEditorDashboard

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.orderedlayout.VerticalLayout>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasOrderedComponents<com.vaadin.flow.component.orderedlayout.VerticalLayout>, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.orderedlayout.FlexComponent<com.vaadin.flow.component.orderedlayout.VerticalLayout>, com.vaadin.flow.component.orderedlayout.ThemableLayout, Serializable, PropertySheet.IPropertyValueChangedListener

    public class LayoutEditorDashboard
    extends com.vaadin.flow.component.orderedlayout.VerticalLayout
    implements PropertySheet.IPropertyValueChangedListener
    Layout editor Main Dashboard.
    Author:
    Orlando Paz <Orlando.Paz@kuwaiba.org>
    See Also:
    Serialized Form
    • Field Detail

      • PROPERTY_TYPE

        public static String PROPERTY_TYPE
      • PROPERTY_NAME

        public static String PROPERTY_NAME
      • PROPERTY_X

        public static String PROPERTY_X
      • PROPERTY_Y

        public static String PROPERTY_Y
      • PROPERTY_WIDTH

        public static String PROPERTY_WIDTH
      • PROPERTY_HEIGHT

        public static String PROPERTY_HEIGHT
      • PROPERTY_COLOR

        public static String PROPERTY_COLOR
      • PROPERTY_BORDER_WIDTH

        public static String PROPERTY_BORDER_WIDTH
      • PROPERTY_BORDER_COLOR

        public static String PROPERTY_BORDER_COLOR
      • PROPERTY_IS_EQUIPMENT

        public static String PROPERTY_IS_EQUIPMENT
      • PROPERTY_OPAQUE

        public static String PROPERTY_OPAQUE
      • SHAPE_CUSTOM

        public static String SHAPE_CUSTOM
      • SHAPE_RECTANGLE

        public static String SHAPE_RECTANGLE
      • SHAPE_POLYGON

        public static String SHAPE_POLYGON
      • SHAPE_ELLIPSE

        public static String SHAPE_ELLIPSE
      • SHAPE_LABEL

        public static String SHAPE_LABEL
      • PROPERTY_ELLIPSE_COLOR

        public static String PROPERTY_ELLIPSE_COLOR
      • PROPERTY_OVAL_COLOR

        public static String PROPERTY_OVAL_COLOR
      • PROPERTY_NUM_OF_SIDES

        public static String PROPERTY_NUM_OF_SIDES
      • PROPERTY_OUTLINE_COLOR

        public static String PROPERTY_OUTLINE_COLOR
      • PROPERTY_INTERIOR_COLOR

        public static String PROPERTY_INTERIOR_COLOR
      • NODE_GUIDE

        public static String NODE_GUIDE
      • CLASS_CUSTOM

        public static String CLASS_CUSTOM
      • INNER_SHAPE

        public static String INNER_SHAPE
      • DEFAULT_SHAPE_WIDTH

        public static double DEFAULT_SHAPE_WIDTH
      • DEFAULT_SHAPE_HEIGHT

        public static double DEFAULT_SHAPE_HEIGHT
    • Method Detail

      • getCurrentView

        public ViewObject getCurrentView()
      • onAttach

        protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)
        Overrides:
        onAttach in class com.vaadin.flow.component.Component
      • onDetach

        public void onDetach​(com.vaadin.flow.component.DetachEvent ev)
        Overrides:
        onDetach in class com.vaadin.flow.component.Component
      • resetDashboard

        public void resetDashboard()
        resets the layout view instance and creates a empty one
      • loadLayouts

        public void loadLayouts()
      • loadCustomShapes

        public void loadCustomShapes()
      • setButtonTitle

        public static 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
      • getAsXML

        public byte[] getAsXML​(boolean export)
      • getLayoutBounds

        public com.neotropic.flow.component.mxgraph.Rectangle getLayoutBounds​(List<com.neotropic.flow.component.mxgraph.MxGraphNode> children)