Package org.teamapps.ux.component
Class AbstractComponent
- java.lang.Object
-
- org.teamapps.ux.component.AbstractComponent
-
- All Implemented Interfaces:
Component
- Direct Known Subclasses:
AbsoluteLayout,AbstractField,AbstractForm,AbstractToolContainer,BootstrapishGridLayout,Calendar,ChatDisplay,ChatInput,DocumentViewer,DummyComponent,ElegantPanel,FlexContainer,Gauge,GroupingView,IFrame,ImageCropper,InfiniteItemView,ItemView,MapView,MediaPlayer,MediaTrackGraph,MobileLayout,NavigationBar,PageView,Panel,PieChart,ResponsiveGridLayout,RootPanel,SplitPane,Table,TabPanel,TimeGraph,ToolButton,Tree,VideoPlayer,WebRtcPlayer,WebRtcPublisher,WorkSpaceLayout
public abstract class AbstractComponent extends java.lang.Object implements Component
-
-
Field Summary
Fields Modifier and Type Field Description Event<java.lang.Void>onDestroyedEvent<java.lang.Void>onRendered
-
Constructor Summary
Constructors Constructor Description AbstractComponent()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.teamapps.dto.UiComponentcreateUiComponent()org.teamapps.dto.UiComponentReferencecreateUiComponentReference()voiddestroy()protected voiddoDestroy()Override this method to release resources whenever this component gets destroyedjava.lang.StringgetId()ContainergetParent()SessionContextgetSessionContext()booleanisDestroyed()booleanisEffectivelyVisible()booleanisRendered()booleanisVisible()protected voidmapAbstractUiComponentProperties(org.teamapps.dto.UiComponent uiComponent)protected voidqueueCommandIfRendered(java.util.function.Supplier<org.teamapps.dto.UiCommand> commandSupplier)voidrender()voidreRenderIfRendered()voidsetCssStyle(java.lang.String selector, java.lang.String propertyName, java.lang.String value)voidsetMargin(Spacing margin)voidsetMaxHeight(Length maxHeight)voidsetMaxWidth(Length maxWidth)voidsetMinHeight(Length minHeight)voidsetMinWidth(Length minWidth)voidsetParent(Container container)Used internally for setting the component's container.voidsetShadow(Shadow shadow)voidsetVisible(boolean visible)java.lang.StringtoString()voidunrender()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.Component
handleUiEvent, setCssStyle
-
-
-
-
Method Detail
-
mapAbstractUiComponentProperties
protected void mapAbstractUiComponentProperties(org.teamapps.dto.UiComponent uiComponent)
-
getSessionContext
public SessionContext getSessionContext()
- Specified by:
getSessionContextin interfaceComponent
-
isRendered
public boolean isRendered()
- Specified by:
isRenderedin interfaceComponent
-
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisiblein interfaceComponent
-
isEffectivelyVisible
public boolean isEffectivelyVisible()
- Specified by:
isEffectivelyVisiblein interfaceComponent
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyedin interfaceComponent
-
doDestroy
protected void doDestroy()
Override this method to release resources whenever this component gets destroyed
-
createUiComponent
public abstract org.teamapps.dto.UiComponent createUiComponent()
-
createUiComponentReference
public org.teamapps.dto.UiComponentReference createUiComponentReference()
- Specified by:
createUiComponentReferencein interfaceComponent
-
reRenderIfRendered
public void reRenderIfRendered()
-
queueCommandIfRendered
protected void queueCommandIfRendered(java.util.function.Supplier<org.teamapps.dto.UiCommand> commandSupplier)
-
setMinWidth
public void setMinWidth(Length minWidth)
- Specified by:
setMinWidthin interfaceComponent
-
setMaxWidth
public void setMaxWidth(Length maxWidth)
- Specified by:
setMaxWidthin interfaceComponent
-
setMinHeight
public void setMinHeight(Length minHeight)
- Specified by:
setMinHeightin interfaceComponent
-
setMaxHeight
public void setMaxHeight(Length maxHeight)
- Specified by:
setMaxHeightin interfaceComponent
-
setCssStyle
public void setCssStyle(java.lang.String selector, java.lang.String propertyName, java.lang.String value)- Specified by:
setCssStylein interfaceComponent
-
setParent
public void setParent(Container container)
Description copied from interface:ComponentUsed internally for setting the component's container. May only be invoked by the new container!!
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-