Class AbstractComponent

java.lang.Object
org.teamapps.ux.component.AbstractComponent
All Implemented Interfaces:
ClientObject, Component
Direct Known Subclasses:
AbsoluteLayout, AbstractField, AbstractForm, AbstractToolContainer, BootstrapishGridLayout, Calendar, ChatDisplay, ChatInput, DefaultMultiProgressDisplay, Div, DocumentViewer, DummyComponent, ElegantPanel, FieldGroup, FlexContainer, FloatingComponent, ForceLayoutGraph, Gauge, GroupingView, HtmlView, IFrame, ImageCropper, InfiniteItemView, InfiniteItemView2, ItemView, LinkButton, MapView, MapView2, MediaPlayer, MediaSoupV3WebRtcClient, MediaTrackGraph, MobileLayout, NavigationBar, Notification, NotificationBar, PageView, Panel, PieChart, Popup, ProgressDisplay, QrCodeScanner, ReactView, ResponsiveGridLayout, RootPanel, SplitPane, Table, TabPanel, TimeGraph, ToolButton, Tree, TreeGraph, VideoPlayer, WebRtcPlayer, WebRtcPublisher, WorkSpaceLayout

public abstract class AbstractComponent
extends java.lang.Object
implements Component
  • Field Details

    • DELETED_ATTRIBUTE

      public static final java.lang.String DELETED_ATTRIBUTE
      See Also:
      Constant Field Values
    • onRendered

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

    • AbstractComponent

      public AbstractComponent()
  • Method Details

    • mapAbstractUiComponentProperties

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

      public java.lang.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 org.teamapps.dto.UiComponent createUiComponent()
    • createUiReference

      public org.teamapps.dto.UiClientObjectReference createUiReference()
      Specified by:
      createUiReference in interface ClientObject
    • 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
    • toggleCssClass

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

      public void setAttribute​(java.lang.String selector, java.lang.String attributeName, java.lang.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 java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getDebuggingId

      public java.lang.String getDebuggingId()
    • setDebuggingId

      public void setDebuggingId​(java.lang.String debuggingId)