Class AbstractComponent

java.lang.Object
org.teamapps.ux.component.AbstractComponent
  • Field Details

  • Constructor Details

    • AbstractComponent

      public AbstractComponent()
  • Method Details

    • mapAbstractUiComponentProperties

      protected void mapAbstractUiComponentProperties(UiComponent uiComponent)
    • getId

      public String getId()
      Specified by:
      getId in interface ClientObject
    • getSessionContext

      public SessionContext getSessionContext()
    • isRendered

      public boolean isRendered()
      Specified by:
      isRendered in interface ClientObject
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface Component
    • setVisible

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

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

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

      public abstract UiComponent createUiComponent()
    • createUiReference

      public UiClientObjectReference createUiReference()
      Description copied from interface: ClientObject
      Creates a ui reference to a client object. Ui references are just a simple way to reference objects on the client side.
      Specified by:
      createUiReference in interface ClientObject
    • reRenderIfRendered

      @Deprecated public void reRenderIfRendered()
      Deprecated.
      Use explicit ui commands instead.
      Completely removes and rerenders the component on the client side, loosing any state that is not reflected on the server side. This method should be regarded as dangerous, since many components depend on state (data caches, user interaction state) that is not controlled by the server and will get lost when invoking this method.

      Historically, this method was used as a lazy implementation of changing a configuration option, when this change was not implemented on the client side.

    • queueCommandIfRendered

      protected void queueCommandIfRendered(Supplier<UiCommand<?>> commandSupplier)
    • setCssStyle

      public void setCssStyle(String selector, String propertyName, String value)
      Specified by:
      setCssStyle in interface Component
    • toggleCssClass

      public void toggleCssClass(String selector, String className, boolean enabled)
      Specified by:
      toggleCssClass in interface Component
    • setAttribute

      public void setAttribute(String selector, String attributeName, String value)
      Specified by:
      setAttribute in interface Component
    • setParent

      public void setParent(Component 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
    • getParent

      public Component getParent()
      Specified by:
      getParent in interface Component
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDebuggingId

      public String getDebuggingId()
    • setDebuggingId

      public void setDebuggingId(String debuggingId)