Class AbstractComponent
java.lang.Object
org.teamapps.ux.component.AbstractComponent
- All Implemented Interfaces:
ClientObject,Component
- Direct Known Subclasses:
AbsoluteLayout,AbstractField,AbstractForm,AbstractInfiniteListComponent,AbstractToolContainer,AudioLevelIndicator,BootstrapishGridLayout,Calendar,ChatDisplay,ChatInput,Collapsible,DefaultMultiProgressDisplay,Div,DocumentViewer,DummyComponent,ElegantPanel,FieldGroup,FlexContainer,FloatingComponent,ForceLayoutGraph,Gauge,GroupingView,HtmlView,IFrame,ImageCropper,InfiniteItemView,ItemView,LinkButton,MapView,MapView2,MediaPlayer,MediaSoupV3WebRtcClient,MediaTrackGraph,MobileLayout,NavigationBar,Notification,NotificationBar,PageView,Panel,PieChart,Popup,ProgressDisplay,QrCodeScanner,ResponsiveGridLayout,RootPanel,Script,ShakaPlayer,SplitPane,TabPanel,TimeGraph,ToolButton,Tree,TreeGraph,VideoPlayer,WorkSpaceLayout
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract UiComponentCreates a ui reference to a client object.getId()booleanbooleanprotected voidmapAbstractUiComponentProperties(UiComponent uiComponent) protected voidqueueCommandIfRendered(Supplier<UiCommand<?>> commandSupplier) final voidrender()voidDeprecated.Use explicit ui commands instead.voidsetAttribute(String selector, String attributeName, String value) voidsetCssStyle(String selector, String propertyName, String value) voidsetDebuggingId(String debuggingId) voidUsed internally for setting the component's container.voidsetVisible(boolean visible) voidtoggleCssClass(String selector, String className, boolean enabled) toString()final voidunrender()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.ux.component.ClientObject
handleUiEvent, handleUiQueryMethods inherited from interface org.teamapps.ux.component.Component
setAriaLabel, setAttribute, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClass
-
Field Details
-
DELETED_ATTRIBUTE
- See Also:
-
onRendered
-
-
Constructor Details
-
AbstractComponent
public AbstractComponent()
-
-
Method Details
-
mapAbstractUiComponentProperties
-
getId
- Specified by:
getIdin interfaceClientObject
-
getSessionContext
-
isRendered
public boolean isRendered()- Specified by:
isRenderedin interfaceClientObject
-
isVisible
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfaceComponent
-
render
public final void render()- Specified by:
renderin interfaceClientObject
-
unrender
public final void unrender()- Specified by:
unrenderin interfaceClientObject
-
createUiComponent
-
createUiReference
Description copied from interface:ClientObjectCreates a ui reference to a client object. Ui references are just a simple way to reference objects on the client side.- Specified by:
createUiReferencein interfaceClientObject
-
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
-
setCssStyle
- Specified by:
setCssStylein interfaceComponent
-
toggleCssClass
- Specified by:
toggleCssClassin interfaceComponent
-
setAttribute
- Specified by:
setAttributein interfaceComponent
-
setParent
-
getParent
-
toString
-
getDebuggingId
-
setDebuggingId
-