Class AbstractComponent

    • Field Detail

      • onDestroyed

        public final Event<java.lang.Void> onDestroyed
      • onRendered

        public final Event<java.lang.Void> onRendered
    • Constructor Detail

      • AbstractComponent

        public AbstractComponent()
    • Method Detail

      • mapAbstractUiComponentProperties

        protected void mapAbstractUiComponentProperties​(org.teamapps.dto.UiComponent uiComponent)
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface Component
      • setVisible

        public void setVisible​(boolean visible)
        Specified by:
        setVisible in interface Component
      • destroy

        public final void destroy()
        Specified by:
        destroy in interface Component
      • doDestroy

        protected void doDestroy()
        Override this method to release resources whenever this component gets destroyed
      • render

        public final void render()
        Specified by:
        render in interface Component
      • unrender

        public final void unrender()
        Specified by:
        unrender in interface Component
      • createUiComponent

        public abstract org.teamapps.dto.UiComponent createUiComponent()
      • reRenderIfRendered

        public void reRenderIfRendered()
      • queueCommandIfRendered

        protected void queueCommandIfRendered​(java.util.function.Supplier<org.teamapps.dto.UiCommand> commandSupplier)
      • setCssStyle

        public void setCssStyle​(java.lang.String selector,
                                java.lang.String propertyName,
                                java.lang.String value)
        Specified by:
        setCssStyle in interface Component
      • setParent

        public void setParent​(Container container)
        Description copied from interface: Component
        Used internally for setting the component's container. May only be invoked by the new container!!
        Specified by:
        setParent in interface Component
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object