Class StyledElement<T extends StyledElement<T>>
- Type Parameters:
T-
- Direct Known Subclasses:
Accordion,AccordionItem,Area,AspectRatio,Audio,AutoLayout,Br,Canvas,Center,CenteredContentLayout,Col,Colgroup,ComposableLayout,Container,DataList,Divider,Dl,Drawer,Embed,FlowLayout,GlassPane,Grid,GridItem,Hgroup,Hide,HPanel,Hr,Html,IFrame,Img,InputElement,MathMlElement,MediaLayout,Menu,NavbarLayout,Object,Ol,OptGroup,Option,Overlay,PageLayout,PageSection,Picture,ReferenceLayout,Ruby,ScrollBox,Show,Spacer,Spacer,SplitLayout,SplitNavLayout,Sticky,StyledContainerElement,SvgElement,TabbedLayout,Table,Tbody,TextElement,Tfoot,Thead,Tr,Ul,Video,VPanel,Wbr
StyledElement extends VisualElement to add full CSS styling support through a fluent API. This class implements numerous CSS interfaces to provide type-safe access to all CSS properties including animations, backgrounds, borders, fonts, flexbox layout, transforms, transitions, and more.
Key Features:
- Complete CSS property support through type-safe methods
- Fluent API for method chaining
- State-based styling via scoped CSS pseudo-class rules (hover, active, focus, focus-visible, disabled)
- CSS class management (add, remove, set classes)
- Inline style management with CssStyle objects
- Interactive state handling with automatic cursor changes
Implemented CSS Interfaces:
- AnimationIntf - CSS animations and keyframes
- BackgroundIntf - Background colors, images, and positioning
- BorderIntf - Border styles, widths, and colors
- FlexibleBoxLayoutIntf - Flexbox container and item properties
- FontIntf - Font families, sizes, and styles
- TransformIntf - 2D and 3D transformations
- TransitionIntf - CSS transitions and timing
Usage:
Div container = new Div();
container.setDisplay(Display.FLEX)
.setFlexDirection(FlexDirection.COLUMN)
.setBackgroundColor(Color.WHITE)
.setPadding("20px")
.setBorderRadius("8px");
// State-based styling (injected as scoped CSS into page head)
container.setHoverStyle(new CssStyle("background-color: #1a73e8; cursor: pointer;"));
container.setActiveStyle(new CssStyle("background-color: #0d47a1;"));
container.setFocusVisibleStyle(new CssStyle("outline: 2px solid #4285f4;"));
- Since:
- 2016
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStyledElement(String tagName) Constructs a StyledElement with the specified tag name.StyledElement(String tagName, boolean closed) Constructs a StyledElement with the specified tag name and closed state. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAdds a CSS class to the existing class attribute.final CssStyleMerges additional CSS styles into the current style.final CssStylefinal voidaddStyleAttribute(String name, String value) Adds a single CSS property to the current style.addTransition(Transition transition) Adds a transition to this element.Applies a CSS keyframe animation to this element.voidRemoves all transitions from this element.Returns the CSS style applied when the element is pressed or active.Returns the class attribute value.Returns the CSS style applied when the element is disabled.Returns the CSS style applied when the element has focus.Returns the CSS style applied when focus should be visibly indicated.Returns the CSS style applied when the mouse hovers over the element.voidgetHtml(StringBuilder sb) Generates the HTML representation of this element, including state-based styles and interactive cursor attributes.final CssStylegetStyle()Returns the inline CssStyle object for this element.final StringgetStyleAttribute(String name) Returns the value of a single CSS property from the current inline style.protected final voidhidden()Handles the visibility cascade when this element becomes hidden.voidhide()Hides this element by setting its CSS display tonone.protected voidHook method called during element initialization.final booleanReturns whether thedisplayedproperty is set.booleanReturns whether a forward transition is currently active on this element.protected voidonHide()Hook method called immediately whenhide()is invoked on this element.protected voidHook method called when this element is removed from a page.protected voidonShow()Hook method called immediately whenshow()is invoked on this element.final voidremoveClass(String className) Removes a CSS class from the class attribute.setActiveStyle(CssStyle activeStyle) Sets the CSS style applied when the element is pressed or active (:active).setAlignContent(AlignContent attrValue) Sets the CSSalign-contentproperty.setAlignContent(String attrValue) Sets the CSSalign-contentproperty.setAlignItems(AlignItems attrValue) Sets the CSSalign-itemsproperty.setAlignItems(String attrValue) Sets the CSSalign-itemsproperty.setAlignSelf(AlignSelf attrValue) Sets the CSSalign-selfproperty.setAlignSelf(String attrValue) Sets the CSSalign-selfproperty.setAnimation(String attrValue) Sets the CSSanimationproperty.setAnimationDelay(int delayInSecs) Sets the CSSanimation-delayproperty.setAnimationDelay(long delayInMsecs) Sets the CSSanimation-delayproperty.setAnimationDelay(String attrValue) Sets the CSSanimation-delayproperty.setAnimationDirection(AnimationDirection attrValue) Sets the CSSanimation-directionproperty.setAnimationDirection(String attrValue) Sets the CSSanimation-directionproperty.setAnimationDuration(int secs) Sets the CSSanimation-durationproperty.setAnimationDuration(long msecs) Sets the CSSanimation-durationproperty.setAnimationDuration(String attrValue) Sets the CSSanimation-durationproperty.setAnimationFillMode(AnimationFillMode attrValue) Sets the CSSanimation-fill-modeproperty.setAnimationFillMode(String attrValue) Sets the CSSanimation-fill-modeproperty.setAnimationIterationCount(int count) Sets the CSSanimation-iteration-countproperty.Sets the CSSanimation-iteration-countproperty.setAnimationIterationCount(String attrValue) Sets the CSSanimation-iteration-countproperty.setAnimationName(String attrValue) Sets the CSSanimation-nameproperty.setAnimationPlayState(AnimationPlayState attrValue) Sets the CSSanimation-play-stateproperty.setAnimationPlayState(String attrValue) Sets the CSSanimation-play-stateproperty.setAnimationTimingFunction(float n1, float n2, float n3, float n4) Sets the CSSanimation-timing-functionproperty.setAnimationTimingFunction(int intervals, boolean start) Sets the CSSanimation-timing-functionproperty.Sets the CSSanimation-timing-functionproperty.setAnimationTimingFunction(String attrValue) Sets the CSSanimation-timing-functionproperty.setBackdropFilter(Filter filter) Sets the CSSbackdrop-filterproperty from aFilterbuilder.setBackdropFilter(String attrValue) Sets the CSSbackdrop-filterproperty.setBackfaceVisibility(BackfaceVisibility attrValue) Sets the CSSbackface-visibilityproperty.setBackfaceVisibility(String attrValue) Sets the CSSbackface-visibilityproperty.setBackground(Color color) Sets the CSSbackgroundproperty using a Color object.setBackground(String attrValue) Sets the CSSbackgroundproperty.setBackgroundAttachment(BackgroundAttachment attrValue) Sets the CSSbackground-attachmentproperty.setBackgroundAttachment(String attrValue) Sets the CSSbackground-attachmentproperty.setBackgroundBlendMode(BackgroundBlendMode attrValue) Sets the CSSbackground-blend-modeproperty.setBackgroundBlendMode(String attrValue) Sets the CSSbackground-blend-modeproperty.setBackgroundClip(BackgroundClip attrValue) Sets the CSSbackground-clipproperty.setBackgroundClip(String attrValue) Sets the CSSbackground-clipproperty.setBackgroundColor(BackgroundColor attrValue) Sets the CSSbackground-colorproperty.setBackgroundColor(Color attrValue) Sets the CSSbackground-colorproperty using a Color object.setBackgroundColor(String attrValue) Sets the CSSbackground-colorproperty.setBackgroundImage(Gradient gradient) Sets the CSSbackground-imageproperty from aGradientbuilder.setBackgroundImage(String attrValue) Sets the CSSbackground-imageproperty.setBackgroundOrigin(BackgroundOrigin attrValue) Sets the CSSbackground-originproperty.setBackgroundOrigin(String attrValue) Sets the CSSbackground-originproperty.setBackgroundPosition(int xpos, int ypos) Sets the CSSbackground-positionproperty.setBackgroundPosition(BackgroundPosition attrValue) Sets the CSSbackground-positionproperty.setBackgroundPosition(Units xpos, Units ypos) Sets the CSSbackground-positionproperty.setBackgroundPosition(String attrValue) Sets the CSSbackground-positionproperty.setBackgroundPosition(String xpos, String ypos) Sets the CSSbackground-positionproperty.setBackgroundRepeat(BackgroundRepeat attrValue) Sets the CSSbackground-repeatproperty.setBackgroundRepeat(String attrValue) Sets the CSSbackground-repeatproperty.setBackgroundSize(int width, int height) Sets the CSSbackground-sizeproperty.setBackgroundSize(BackgroundSize attrValue) Sets the CSSbackground-sizeproperty.setBackgroundSize(Units width, Units height) Sets the CSSbackground-sizeproperty.setBackgroundSize(String attrValue) Sets the CSSbackground-sizeproperty.setBackgroundSize(String width, String height) Sets the CSSbackground-sizeproperty.Sets theblur()function within the CSSfilterproperty.setBorder(int width, BorderStyle style, Color color) Sets the CSSbordershorthand property.Sets the CSSbordershorthand property.setBorder(BorderWidth width, BorderStyle style, Color color) Sets the CSSbordershorthand property.setBorder(BorderWidth width, Color color) Sets the CSSbordershorthand property.Sets the CSSborderproperty using a Color object.setBorder(Units width, BorderStyle style, Color color) Sets the CSSbordershorthand property.Sets the CSSbordershorthand property.Sets the CSSborderproperty.Sets the CSSbordershorthand property.setBorderBottom(int width, BorderStyle style, Color color) Sets the CSSborder-bottomshorthand property.setBorderBottom(int width, Color color) Sets the CSSborder-bottomshorthand property.setBorderBottom(BorderWidth width, BorderStyle style, Color color) Sets the CSSborder-bottomshorthand property.setBorderBottom(BorderWidth width, Color color) Sets the CSSborder-bottomshorthand property.setBorderBottom(Units width, BorderStyle style, Color color) Sets the CSSborder-bottomshorthand property.setBorderBottom(Units width, Color color) Sets the CSSborder-bottomshorthand property.setBorderBottom(String attrValue) Sets the CSSborder-bottomproperty.setBorderBottom(String width, String style, String color) Sets the CSSborder-bottomshorthand property.setBorderBottomColor(Color attrValue) Sets the CSSborder-bottom-colorproperty using a Color object.setBorderBottomColor(String attrValue) Sets the CSSborder-bottom-colorproperty.setBorderBottomLeftRadius(int pixels) Sets the CSSborder-bottom-left-radiusproperty in pixels.setBorderBottomLeftRadius(Units units) Sets the CSSborder-bottom-left-radiusproperty using a CSS unit value.setBorderBottomLeftRadius(String attrValue) Sets the CSSborder-bottom-left-radiusproperty.setBorderBottomRightRadius(int pixels) Sets the CSSborder-bottom-right-radiusproperty in pixels.setBorderBottomRightRadius(Units units) Sets the CSSborder-bottom-right-radiusproperty using a CSS unit value.setBorderBottomRightRadius(String attrValue) Sets the CSSborder-bottom-right-radiusproperty.setBorderBottomStyle(BorderStyle attrValue) Sets the CSSborder-bottom-styleproperty.setBorderBottomStyle(String attrValue) Sets the CSSborder-bottom-styleproperty.setBorderBottomWidth(int pixels) Sets the CSSborder-bottom-widthproperty in pixels.setBorderBottomWidth(BorderWidth attrValue) Sets the CSSborder-bottom-widthproperty.setBorderBottomWidth(Units units) Sets the CSSborder-bottom-widthproperty using a CSS unit value.setBorderBottomWidth(String attrValue) Sets the CSSborder-bottom-widthproperty.setBorderColor(Color color) Sets the CSSborder-colorproperty using a Color object.setBorderColor(Color top, Color right, Color bottom, Color left) Sets the CSSborder-colorproperty using individual values for each side.setBorderColor(String attrValue) Sets the CSSborder-colorproperty.setBorderColor(String top, String right, String bottom, String left) Sets the CSSborder-colorproperty using individual values for each side.setBorderImage(String attrValue) Sets the CSSborder-imageproperty.Sets the CSSborder-imageshorthand property.setBorderImageOutset(String attrValue) Sets the CSSborder-image-outsetproperty.setBorderImageRepeat(String attrValue) Sets the CSSborder-image-repeatproperty.setBorderImageSlice(String attrValue) Sets the CSSborder-image-sliceproperty.setBorderImageSource(String attrValue) Sets the CSSborder-image-sourceproperty.setBorderImageWidth(String attrValue) Sets the CSSborder-image-widthproperty.setBorderLeft(int width, BorderStyle style, Color color) Sets the CSSborder-leftshorthand property.setBorderLeft(int width, Color color) Sets the CSSborder-leftshorthand property.setBorderLeft(BorderWidth width, BorderStyle style, Color color) Sets the CSSborder-leftshorthand property.setBorderLeft(BorderWidth width, Color color) Sets the CSSborder-leftshorthand property.setBorderLeft(Units width, BorderStyle style, Color color) Sets the CSSborder-leftshorthand property.setBorderLeft(Units width, Color color) Sets the CSSborder-leftshorthand property.setBorderLeft(String attrValue) Sets the CSSborder-leftproperty.setBorderLeft(String width, String style, String color) Sets the CSSborder-leftshorthand property.setBorderLeftColor(Color attrValue) Sets the CSSborder-left-colorproperty using a Color object.setBorderLeftColor(String attrValue) Sets the CSSborder-left-colorproperty.setBorderLeftStyle(BorderStyle attrValue) Sets the CSSborder-left-styleproperty.setBorderLeftStyle(String attrValue) Sets the CSSborder-left-styleproperty.setBorderLeftWidth(int pixels) Sets the CSSborder-left-widthproperty in pixels.setBorderLeftWidth(BorderWidth attrValue) Sets the CSSborder-left-widthproperty.setBorderLeftWidth(Units units) Sets the CSSborder-left-widthproperty using a CSS unit value.setBorderLeftWidth(String attrValue) Sets the CSSborder-left-widthproperty.setBorderRadius(int pixels) Sets the CSSborder-radiusproperty in pixels.setBorderRadius(int topLeft, int topRight, int bottomRight, int bottomLeft) Sets the CSSborder-radiusproperty.setBorderRadius(Units units) Sets the CSSborder-radiusproperty using a CSS unit value.setBorderRadius(Units topLeft, Units topRight, Units bottomRight, Units bottomLeft) Sets the CSSborder-radiusproperty.setBorderRadius(String attrValue) Sets the CSSborder-radiusproperty.setBorderRadius(String topLeft, String topRight, String bottomRight, String bottomLeft) Sets the CSSborder-radiusproperty.setBorderRight(int width, BorderStyle style, Color color) Sets the CSSborder-rightshorthand property.setBorderRight(int width, Color color) Sets the CSSborder-rightshorthand property.setBorderRight(BorderWidth width, BorderStyle style, Color color) Sets the CSSborder-rightshorthand property.setBorderRight(BorderWidth width, Color color) Sets the CSSborder-rightshorthand property.setBorderRight(Units width, BorderStyle style, Color color) Sets the CSSborder-rightshorthand property.setBorderRight(Units width, Color color) Sets the CSSborder-rightshorthand property.setBorderRight(String attrValue) Sets the CSSborder-rightproperty.setBorderRight(String width, String style, String color) Sets the CSSborder-rightshorthand property.setBorderRightColor(Color attrValue) Sets the CSSborder-right-colorproperty using a Color object.setBorderRightColor(String attrValue) Sets the CSSborder-right-colorproperty.setBorderRightStyle(BorderStyle attrValue) Sets the CSSborder-right-styleproperty.setBorderRightStyle(String attrValue) Sets the CSSborder-right-styleproperty.setBorderRightWidth(int pixels) Sets the CSSborder-right-widthproperty in pixels.setBorderRightWidth(BorderWidth attrValue) Sets the CSSborder-right-widthproperty.setBorderRightWidth(Units units) Sets the CSSborder-right-widthproperty using a CSS unit value.setBorderRightWidth(String attrValue) Sets the CSSborder-right-widthproperty.setBorderStyle(BorderStyle attrValue) Sets the CSSborder-styleproperty.setBorderStyle(String attrValue) Sets the CSSborder-styleproperty.setBorderTop(int width, BorderStyle style, Color color) Sets the CSSborder-topshorthand property.setBorderTop(int width, Color color) Sets the CSSborder-topshorthand property.setBorderTop(BorderWidth width, BorderStyle style, Color color) Sets the CSSborder-topshorthand property.setBorderTop(BorderWidth width, Color color) Sets the CSSborder-topshorthand property.setBorderTop(Units width, BorderStyle style, Color color) Sets the CSSborder-topshorthand property.setBorderTop(Units width, Color color) Sets the CSSborder-topshorthand property.setBorderTop(String attrValue) Sets the CSSborder-topproperty.setBorderTop(String width, String style, String color) Sets the CSSborder-topshorthand property.setBorderTopColor(Color attrValue) Sets the CSSborder-top-colorproperty using a Color object.setBorderTopColor(String attrValue) Sets the CSSborder-top-colorproperty.setBorderTopLeftRadius(int pixels) Sets the CSSborder-top-left-radiusproperty in pixels.setBorderTopLeftRadius(Units units) Sets the CSSborder-top-left-radiusproperty using a CSS unit value.setBorderTopLeftRadius(String attrValue) Sets the CSSborder-top-left-radiusproperty.setBorderTopRightRadius(int pixels) Sets the CSSborder-top-right-radiusproperty in pixels.setBorderTopRightRadius(Units units) Sets the CSSborder-top-right-radiusproperty using a CSS unit value.setBorderTopRightRadius(String attrValue) Sets the CSSborder-top-right-radiusproperty.setBorderTopStyle(BorderStyle attrValue) Sets the CSSborder-top-styleproperty.setBorderTopStyle(String attrValue) Sets the CSSborder-top-styleproperty.setBorderTopWidth(int pixels) Sets the CSSborder-top-widthproperty in pixels.setBorderTopWidth(BorderWidth attrValue) Sets the CSSborder-top-widthproperty.setBorderTopWidth(Units units) Sets the CSSborder-top-widthproperty using a CSS unit value.setBorderTopWidth(String attrValue) Sets the CSSborder-top-widthproperty.setBorderWidth(int pixels) Sets the CSSborder-widthproperty in pixels.setBorderWidth(int top, int right, int bottom, int left) Sets the CSSborder-widthproperty using individual values for each side.setBorderWidth(BorderWidth attrValue) Sets the CSSborder-widthproperty.setBorderWidth(Units units) Sets the CSSborder-widthproperty using a CSS unit value.setBorderWidth(Units top, Units right, Units bottom, Units left) Sets the CSSborder-widthproperty using individual values for each side.setBorderWidth(String attrValue) Sets the CSSborder-widthproperty.setBorderWidth(String top, String right, String bottom, String left) Sets the CSSborder-widthproperty using individual values for each side.setBottom(int pixels) Sets the CSSbottomproperty in pixels.Sets the CSSbottomproperty using a CSS unit value.Sets the CSSbottomproperty.setBoxShadow(int hShadow, int vShadow, int blur, int spread, Color color) Sets the CSSbox-shadowproperty.setBoxShadow(BoxShadow boxShadow) Sets the CSSbox-shadowproperty from aBoxShadowbuilder.Sets the CSSbox-shadowproperty.setBoxShadow(String attrValue) Sets the CSSbox-shadowproperty.Sets the CSSbox-shadowproperty.setBoxSizing(BoxSizing attrValue) setBoxSizing(String attrValue) setBreakAfter(String attrValue) Sets the CSSbreak-afterproperty.setBreakBefore(String attrValue) Sets the CSSbreak-beforeproperty.setBreakInside(String attrValue) Sets the CSSbreak-insideproperty.setBrightness(float value) Sets thebrightness()function within the CSSfilterproperty.final voidSets the CSS class attribute for this element.Sets the CSSclearproperty.Sets the CSSclearproperty.Sets the CSSclipproperty.setClipPath(ClipPath clipPath) Sets the CSSclip-pathproperty from aClipPathbuilder.setClipPath(String attrValue) Sets the CSSclip-pathproperty.setColGap(int colgap) Sets the CSScolorproperty using a Color object.Sets the CSScolorproperty.setColumnCount(int count) Sets the CSScolumn-countproperty.setColumnCount(String attrValue) Sets the CSScolumn-countproperty.setColumnFill(ColumnFill attrValue) Sets the CSScolumn-fillproperty.setColumnFill(String attrValue) Sets the CSScolumn-fillproperty.setColumnGap(String attrValue) Sets the CSScolumn-gapproperty.setColumnRule(String attrValue) Sets the CSScolumn-ruleproperty.setColumnRuleColor(Color color) Sets the CSScolumn-rule-colorproperty using a Color object.setColumnRuleColor(String attrValue) Sets the CSScolumn-rule-colorproperty.setColumnRuleStyle(ColumnRuleStyle attrValue) Sets the CSScolumn-rule-styleproperty.setColumnRuleStyle(String attrValue) Sets the CSScolumn-rule-styleproperty.setColumnRuleWidth(ColumnRuleWidth attrValue) Sets the CSScolumn-rule-widthproperty.setColumnRuleWidth(String attrValue) Sets the CSScolumn-rule-widthproperty.setColumns(int count, int width) Sets the CSScolumnsproperty.setColumns(int count, Units width) Sets the CSScolumnsproperty.setColumns(String attrValue) Sets the CSScolumnsproperty.setColumnSpan(String attrValue) Sets the CSScolumn-spanproperty.setColumnWidth(int pixels) Sets the CSScolumn-widthproperty in pixels.setColumnWidth(Units units) Sets the CSScolumn-widthproperty using a CSS unit value.setColumnWidth(String attrValue) Sets the CSScolumn-widthproperty.setContrast(float value) Sets thecontrast()function within the CSSfilterproperty.setCounterIncrement(String attrValue) Sets the CSScounter-incrementproperty.setCounterReset(String keyFrameName) Sets the CSScounter-resetproperty.setDirection(TextDirection attrValue) Sets the CSSdirectionproperty.setDirection(String attrValue) Sets the CSSdirectionproperty.setDisabledStyle(CssStyle disabledStyle) Sets the CSS style applied when the element is disabled (:disabled).setDisplay(Display attrValue) Sets the CSSdisplayproperty.setDisplay(String attrValue) Sets the CSSdisplayproperty.Sets the CSSfilterproperty from aFilterbuilder.Sets the CSSfilterproperty.setFilterOpacity(float value) Sets theopacity()function within the CSSfilterproperty.Sets the CSSflexproperty.setFlexBasis(String attrValue) Sets the CSSflex-basisproperty.setFlexDirection(FlexDirection attrValue) Sets the CSSflex-directionproperty.setFlexDirection(String attrValue) Sets the CSSflex-directionproperty.setFlexFlow(String attrValue) Sets the CSSflex-flowproperty.setFlexGrow(int attrValue) Sets the CSSflex-growproperty.setFlexGrow(String attrValue) Sets the CSSflex-growproperty.setFlexShrink(int attrValue) Sets the CSSflex-shrinkproperty.setFlexShrink(String attrValue) Sets the CSSflex-shrinkproperty.setFlexWrap(FlexWrap attrValue) Sets the CSSflex-wrapproperty.setFlexWrap(String attrValue) Sets the CSSflex-wrapproperty.Sets the CSSfloatproperty.Sets the CSSfloatproperty.setFocusStyle(CssStyle focusStyle) Sets the CSS style applied when the element has focus (:focus).setFocusVisibleStyle(CssStyle focusVisibleStyle) Sets the CSS style applied when focus should be visibly indicated (:focus-visible).Sets the CSSfontproperty.setFont(FontFamily family, float size) Sets the CSSfontproperty.setFont(FontFamily family, float size, FontWeight weight) Sets the CSSfontproperty.setFont(FontFamily family, Units size) Sets the CSSfontproperty.setFont(FontFamily family, Units size, FontWeight weight) Sets the CSSfontproperty.Sets the CSSfontproperty.Sets the CSSfontproperty.setFont(String family, float size, FontWeight weight) Sets the CSSfontproperty.Sets the CSSfontproperty.setFont(String family, Units size, FontWeight weight) Sets the CSSfontproperty.Sets the CSSfontproperty.Sets the CSSfontproperty.setFontFace(String attrValue) Sets the CSSfont-faceproperty.setFontFamily(FontFamily attrValue) Sets the CSSfont-familyproperty.setFontFamily(String attrValue) Sets the CSSfont-familyproperty.setFontFeatureSettings(String attrValue) Sets the CSSfont-feature-settingsproperty.setFontKerning(String attrValue) Sets the CSSfont-kerningproperty.setFontLanguageOverride(String attrValue) Sets the CSSfont-language-overrideproperty.setFontSize(float pts) Sets the CSSfont-sizeproperty.setFontSize(Units units) Sets the CSSfont-sizeproperty using a CSS unit value.setFontSize(String attrValue) Sets the CSSfont-sizeproperty.setFontSizeAdjust(String attrValue) Sets the CSSfont-size-adjustproperty.setFontStretch(FontStretch attrValue) Sets the CSSfont-stretchproperty.setFontStretch(String attrValue) Sets the CSSfont-stretchproperty.setFontStyle(FontStyle attrValue) Sets the CSSfont-styleproperty.setFontStyle(String attrValue) Sets the CSSfont-styleproperty.setFontSynthesis(String attrValue) Sets the CSSfont-synthesisproperty.setFontVariant(FontVariant attrValue) Sets the CSSfont-variantproperty.setFontVariant(String attrValue) Sets the CSSfont-variantproperty.setFontVariantAlternates(String attrValue) Sets the CSSfont-variant-alternatesproperty.setFontVariantCaps(String attrValue) Sets the CSSfont-variant-capsproperty.setFontVariantEastAsian(String attrValue) Sets the CSSfont-variant-east-asianproperty.setFontVariantLigatures(String attrValue) Sets the CSSfont-variant-ligaturesproperty.setFontVariantNumeric(String attrValue) Sets the CSSfont-variant-numericproperty.setFontVariantPosition(String attrValue) Sets the CSSfont-variant-positionproperty.setFontWeight(FontWeight attrValue) Sets the CSSfont-weightproperty.setFontWeight(String attrValue) Sets the CSSfont-weightproperty.setGap(int gap) setGap(int rowgap, int colgap) setGrayscale(float value) Sets thegrayscale()function within the CSSfilterproperty.setHangingPunctuation(HangingPunctuation attrValue) Sets the CSShanging-punctuationproperty.setHangingPunctuation(String attrValue) Sets the CSShanging-punctuationproperty.setHeight(int pixels) Sets the CSSheightproperty in pixels.Sets the CSSheightproperty using a CSS unit value.Sets the CSSheightproperty.setHoverStyle(CssStyle hoverStyle) Sets the CSS style applied when the mouse hovers over the element (:hover).setHueRotate(float degrees) Sets thehue-rotate()function within the CSSfilterproperty.setHyphens(String attrValue) Sets the CSShyphensproperty.setImageOrientation(String attrValue) Sets the CSSimage-orientationproperty.setImageRendering(String attrValue) Sets the CSSimage-renderingproperty.setImageResolution(String attrValue) Sets the CSSimage-resolutionproperty.setImeMode(String attrValue) setInvert(float value) Sets theinvert()function within the CSSfilterproperty.setJustifyContent(JustifyContent attrValue) Sets the CSSjustify-contentproperty.setJustifyContent(String attrValue) Sets the CSSjustify-contentproperty.setKeyFrames(String attrValue) Sets the CSS@keyframesanimation name.setLeft(int pixels) Sets the CSSleftproperty in pixels.Sets the CSSleftproperty using a CSS unit value.Sets the CSSleftproperty.setLetterSpacing(float pts) Sets the CSSletter-spacingproperty.setLetterSpacing(int pixels) Sets the CSSletter-spacingproperty in pixels.setLetterSpacing(Units units) Sets the CSSletter-spacingproperty using a CSS unit value.setLetterSpacing(String attrValue) Sets the CSSletter-spacingproperty.setLineBreak(String attrValue) Sets the CSSline-breakproperty.setLineHeight(float pts) Sets the CSSline-heightproperty.setLineHeight(int pixels) Sets the CSSline-heightproperty in pixels.setLineHeight(Units units) Sets the CSSline-heightproperty using a CSS unit value.setLineHeight(String attrValue) Sets the CSSline-heightproperty.setMargin(int pixels) Sets the CSSmarginproperty in pixels.setMargin(int top, int right, int bottom, int left) Sets the CSSmarginproperty using individual values for each side.Sets the CSSmarginproperty using a CSS unit value.Sets the CSSmarginproperty using individual values for each side.Sets the CSSmarginproperty.setMarginBottom(int pixels) Sets the CSSmargin-bottomproperty in pixels.setMarginBottom(Units units) Sets the CSSmargin-bottomproperty using a CSS unit value.setMarginBottom(String attrValue) Sets the CSSmargin-bottomproperty.setMarginLeft(int pixels) Sets the CSSmargin-leftproperty in pixels.setMarginLeft(Units units) Sets the CSSmargin-leftproperty using a CSS unit value.setMarginLeft(String attrValue) Sets the CSSmargin-leftproperty.setMarginRight(int pixels) Sets the CSSmargin-rightproperty in pixels.setMarginRight(Units units) Sets the CSSmargin-rightproperty using a CSS unit value.setMarginRight(String attrValue) Sets the CSSmargin-rightproperty.setMarginTop(int pixels) Sets the CSSmargin-topproperty in pixels.setMarginTop(Units units) Sets the CSSmargin-topproperty using a CSS unit value.setMarginTop(String attrValue) Sets the CSSmargin-topproperty.Sets the CSSmarkproperty.setMarkAfter(String attrValue) Sets the CSSmark-afterproperty.setMarkBefore(String attrValue) Sets the CSSmark-beforeproperty.Sets the CSSmarksproperty.setMarqueeDirection(String attrValue) setMarqueePlayCount(String attrValue) setMarqueeSpeed(String attrValue) setMarqueeStyle(String attrValue) setMaskType(String attrValue) setMaxHeight(int pixels) Sets the CSSmax-heightproperty in pixels.setMaxHeight(Units units) Sets the CSSmax-heightproperty using a CSS unit value.setMaxHeight(String attrValue) Sets the CSSmax-heightproperty.voidsetMaxHeightToWindowHeight(int dy) Sets the CSSmax-height-to-window-heightproperty.setMaxWidth(int pixels) Sets the CSSmax-widthproperty in pixels.setMaxWidth(Units units) Sets the CSSmax-widthproperty using a CSS unit value.setMaxWidth(String maxWidth) Sets the CSSmax-widthproperty.voidsetMaxWidthToWindowWidth(int dx) Sets the CSSmax-width-to-window-widthproperty.setMinHeight(int pixels) Sets the CSSmin-heightproperty in pixels.setMinHeight(Units units) Sets the CSSmin-heightproperty using a CSS unit value.setMinHeight(String attrValue) Sets the CSSmin-heightproperty.voidsetMinHeightToWindowHeight(int dy) Sets the CSSmin-height-to-window-heightproperty.setMinWidth(int pixels) Sets the CSSmin-widthproperty in pixels.setMinWidth(Units units) Sets the CSSmin-widthproperty using a CSS unit value.setMinWidth(String attrValue) Sets the CSSmin-widthproperty.voidsetMinWidthToWindowWidth(int dx) Sets the CSSmin-width-to-window-widthproperty.setNavDown(String attrValue) setNavIndex(int index) setNavIndex(String attrValue) setNavLeft(String attrValue) setNavRight(String attrValue) setObjectFit(String attrValue) Sets the CSSobject-fitproperty.setObjectPosition(String attrValue) Sets the CSSobject-positionproperty.voidSets the CSSon-click-navigate-backproperty.voidsetOnClickNavigateBack(int pages) Sets the CSSon-click-navigate-backproperty.voidSets the CSSon-click-navigate-backproperty.voidSets the CSSon-click-navigate-forwardproperty.voidsetOnClickNavigateForward(int pages) Sets the CSSon-click-navigate-forwardproperty.voidSets the CSSon-click-navigate-forwardproperty.voidSets the CSSon-click-navigate-toproperty.voidsetOnDblClick(String value) Sets the CSSon-dbl-clickproperty.voidSets the CSSon-dbl-click-changeproperty.setOpacity(int opacity) Sets the CSSopacityproperty.setOpacity(String attrValue) Sets the CSSopacityproperty.setOrder(int order) Sets the CSSorderproperty.Sets the CSSorderproperty.setOrphans(String attrValue) Sets the CSSorphansproperty.setOutline(Color color, OutlineStyle style, int width) setOutline(Color color, OutlineStyle style, Units width) setOutline(String attrValue) setOutline(String color, String style, String width) setOutlineColor(Color attrValue) setOutlineColor(String attrValue) setOutlineOffset(int pixels) setOutlineOffset(Units units) setOutlineOffset(String attrValue) setOutlineStyle(OutlineStyle attrValue) setOutlineStyle(String attrValue) setOutlineWidth(int pixels) setOutlineWidth(OutlineWidth attrValue) setOutlineWidth(Units units) setOutlineWidth(String attrValue) setOverflow(Overflow attrValue) Sets the CSSoverflowproperty.setOverflow(Overflow x, Overflow y) Sets the CSSoverflowproperty.setOverflow(String attrValue) Sets the CSSoverflowproperty.setOverflowWrap(String attrValue) Sets the CSSoverflow-wrapproperty.setOverflowX(Overflow attrValue) Sets the CSSoverflow-xproperty.setOverflowX(String attrValue) Sets the CSSoverflow-xproperty.setOverflowY(Overflow attrValue) Sets the CSSoverflow-yproperty.setOverflowY(String attrValue) Sets the CSSoverflow-yproperty.setPadding(int pixels) Sets the CSSpaddingproperty in pixels.setPadding(int topBottom, int leftRight) setPadding(int top, int right, int bottom, int left) Sets the CSSpaddingproperty using individual values for each side.setPadding(Units units) Sets the CSSpaddingproperty using a CSS unit value.setPadding(Units topBottom, Units leftRight) setPadding(Units top, Units right, Units bottom, Units left) Sets the CSSpaddingproperty using individual values for each side.setPadding(String attrValue) Sets the CSSpaddingproperty.setPadding(String top, String right, String bottom, String left) Sets the CSSpaddingproperty using individual values for each side.setPaddingBottom(int pixels) Sets the CSSpadding-bottomproperty in pixels.setPaddingBottom(Units units) Sets the CSSpadding-bottomproperty using a CSS unit value.setPaddingBottom(String attrValue) Sets the CSSpadding-bottomproperty.setPaddingLeft(int pixels) Sets the CSSpadding-leftproperty in pixels.setPaddingLeft(Units units) Sets the CSSpadding-leftproperty using a CSS unit value.setPaddingLeft(String attrValue) Sets the CSSpadding-leftproperty.setPaddingRight(int pixels) Sets the CSSpadding-rightproperty in pixels.setPaddingRight(Units units) Sets the CSSpadding-rightproperty using a CSS unit value.setPaddingRight(String attrValue) Sets the CSSpadding-rightproperty.setPaddingTop(int pixels) Sets the CSSpadding-topproperty in pixels.setPaddingTop(Units units) Sets the CSSpadding-topproperty using a CSS unit value.setPaddingTop(String attrValue) Sets the CSSpadding-topproperty.setPageBreakAfter(PageBreakAfter attrValue) Sets the CSSpage-break-afterproperty.setPageBreakAfter(String attrValue) Sets the CSSpage-break-afterproperty.setPageBreakBefore(PageBreakBefore attrValue) Sets the CSSpage-break-beforeproperty.setPageBreakBefore(String attrValue) Sets the CSSpage-break-beforeproperty.setPageBreakInside(PageBreakInside attrValue) Sets the CSSpage-break-insideproperty.setPageBreakInside(String attrValue) Sets the CSSpage-break-insideproperty.setPerspective(int pixels) Sets the CSSperspectiveproperty in pixels.setPerspective(Units units) Sets the CSSperspectiveproperty using a CSS unit value.setPerspective(String attrValue) Sets the CSSperspectiveproperty.setPerspectiveOrigin(Origin xAxis, Origin yAxis) Sets the CSSperspective-originproperty.setPerspectiveOrigin(Units xAxis, Units yAxis) Sets the CSSperspective-originproperty.setPerspectiveOrigin(String attrValue) Sets the CSSperspective-originproperty.setPerspectiveOrigin(String xAxis, String yAxis) Sets the CSSperspective-originproperty.setPhonemes(String attrValue) Sets the CSSphonemesproperty.setPosition(int left, int top) Sets the CSSpositionproperty using individual values for each side.setPosition(Position attrValue) Sets the CSSpositionproperty.setPosition(Units left, Units top) Sets the CSSpositionproperty using individual values for each side.setPosition(String attrValue) Sets the CSSpositionproperty.setPosition(String left, String top) Sets the CSSpositionproperty using individual values for each side.Sets the CSSquotesproperty.voidsetResizeToWindowHeight(int dy) Sets the CSSresize-to-window-heightproperty.voidsetResizeToWindowHeight(int dy, String otherElementId) Sets the CSSresize-to-window-heightproperty.voidsetResizeToWindowWidth(int dx) Sets the CSSresize-to-window-widthproperty.Sets the CSSrestproperty.setRestAfter(String attrValue) Sets the CSSrest-afterproperty.setRestBefore(String attrValue) Sets the CSSrest-beforeproperty.setRight(int pixels) Sets the CSSrightproperty in pixels.Sets the CSSrightproperty using a CSS unit value.Sets the CSSrightproperty.setRotate(float degrees) Sets therotate()function within the CSStransformproperty.Sets therotate()function within the CSStransformproperty.setRowGap(int rowgap) setSaturate(float value) Sets thesaturate()function within the CSSfilterproperty.setScale(float value) Sets thescale()function within the CSStransformproperty.Sets thescale()function within the CSStransformproperty.setSepia(float value) Sets thesepia()function within the CSSfilterproperty.voidsetShow(boolean flag) Sets the CSSshowproperty.setSize(int width, int height) Sets the CSSsizeproperty.Sets the CSSsizeproperty.Sets the CSSsizeproperty.Sets theskewX()function within the CSStransformproperty.Sets theskewY()function within the CSStransformproperty.final CssStyleSets the inline CSS style from a CssStyle object.Sets the inline CSS style from a CSS string.setTabSize(float pts) Sets the CSStab-sizeproperty.setTabSize(int pixels) Sets the CSStab-sizeproperty in pixels.setTabSize(Units units) Sets the CSStab-sizeproperty using a CSS unit value.setTabSize(String attrValue) Sets the CSStab-sizeproperty.setTextAlign(TextAlign attrValue) Sets the CSStext-alignproperty.setTextAlign(String attrValue) Sets the CSStext-alignproperty.setTextAlignLast(TextAlignLast attrValue) Sets the CSStext-align-lastproperty.setTextAlignLast(String attrValue) Sets the CSStext-align-lastproperty.setTextCombineUpright(String attrValue) Sets the CSStext-combine-uprightproperty.setTextCombineWeight(String attrValue) Sets the CSStext-combine-weightproperty.setTextDecoration(TextDecoration attrValue) Sets the CSStext-decorationproperty.setTextDecoration(String attrValue) Sets the CSStext-decorationproperty.setTextDecorationColor(Color color) Sets the CSStext-decoration-colorproperty using a Color object.setTextDecorationColor(String attrValue) Sets the CSStext-decoration-colorproperty.setTextDecorationLine(TextDecorationLine attrValue) Sets the CSStext-decoration-lineproperty.setTextDecorationLine(String attrValue) Sets the CSStext-decoration-lineproperty.setTextDecorationStyle(TextDecorationStyle attrValue) Sets the CSStext-decoration-styleproperty.setTextDecorationStyle(String attrValue) Sets the CSStext-decoration-styleproperty.setTextIndent(float pts) Sets the CSStext-indentproperty.setTextIndent(int pixels) Sets the CSStext-indentproperty in pixels.setTextIndent(Units units) Sets the CSStext-indentproperty using a CSS unit value.setTextIndent(String attrValue) Sets the CSStext-indentproperty.setTextJustify(TextJustify attrValue) Sets the CSStext-justifyproperty.setTextJustify(String attrValue) Sets the CSStext-justifyproperty.setTextOrientation(String attrValue) Sets the CSStext-orientationproperty.setTextOverflow(TextOverflow attrValue) setTextOverflow(String attrValue) setTextSelectDisabled(boolean flag) Sets the CSStext-select-disabledproperty.setTextShadow(int hShadow, int vShadow) Sets the CSStext-shadowproperty.setTextShadow(int hShadow, int vShadow, int blurRadius) Sets the CSStext-shadowproperty.setTextShadow(int hShadow, int vShadow, int blurRadius, Color color) Sets the CSStext-shadowproperty.setTextShadow(BoxShadow boxShadow) Sets the CSStext-shadowproperty from aBoxShadowbuilder.setTextShadow(String attrValue) Sets the CSStext-shadowproperty.setTextTransform(TextTransform attrValue) Sets the CSStext-transformproperty.setTextTransform(String attrValue) Sets the CSStext-transformproperty.setTextUnderlinePosition(String attrValue) Sets the CSStext-underline-positionproperty.setTop(int pixels) Sets the CSStopproperty in pixels.Sets the CSStopproperty using a CSS unit value.Sets the CSStopproperty.setTransform(Transform transform) Sets the CSStransformproperty from aTransformbuilder.setTransform(String attrValue) Sets the CSStransformproperty.setTransformOrigin(int xAxis, int yAxis, int zAxis) Sets the CSStransform-originproperty.setTransformOrigin(Origin xAxis, Origin yAxis, Units zAxis) Sets the CSStransform-originproperty.setTransformOrigin(Units xAxis, Units yAxis, Units zAxis) Sets the CSStransform-originproperty.setTransformOrigin(String attrValue) Sets the CSStransform-originproperty.setTransformOrigin(String xAxis, String yAxis, String zAxis) Sets the CSStransform-originproperty.setTransformStyle(TransformStyle attrValue) Sets the CSStransform-styleproperty.setTransformStyle(String attrValue) Sets the CSStransform-styleproperty.setTransition(String attrValue) Sets the CSStransitionproperty.setTransitionDelay(int secs) Sets the CSStransition-delayproperty.setTransitionDelay(long msecs) Sets the CSStransition-delayproperty.setTransitionDelay(String attrValue) Sets the CSStransition-delayproperty.setTransitionDuration(float secs) Sets the CSStransition-durationproperty.setTransitionDuration(long msecs) Sets the CSStransition-durationproperty.setTransitionDuration(String attrValue) Sets the CSStransition-durationproperty.setTransitionProperty(String attrValue) Sets the CSStransition-propertyproperty.setTransitionTimingFunction(float n1, float n2, float n3, float n4) Sets the CSStransition-timing-functionproperty.setTransitionTimingFunction(int intervals, boolean start) Sets the CSStransition-timing-functionproperty.Sets the CSStransition-timing-functionproperty.setTransitionTimingFunction(String attrValue) Sets the CSStransition-timing-functionproperty.setTranslateX(String value) Sets thetranslateX()function within the CSStransformproperty.setTranslateY(String value) Sets thetranslateY()function within the CSStransformproperty.setTranslateZ(String value) Sets thetranslateZ()function within the CSStransformproperty.setUnicodeBidi(UnicodeBidi attrValue) Sets the CSSunicode-bidiproperty.setUnicodeBidi(String attrValue) Sets the CSSunicode-bidiproperty.setVerticalAlign(VerticalAlign attrValue) Sets the CSSvertical-alignproperty.setVerticalAlign(String attrValue) Sets the CSSvertical-alignproperty.setVisibility(Visibility attrValue) Sets the CSSvisibilityproperty.setVisibility(String attrValue) Sets the CSSvisibilityproperty.setVoiceBalance(String attrValue) Sets the CSSvoice-balanceproperty.setVoiceDuration(String attrValue) Sets the CSSvoice-durationproperty.setVoicePitch(String attrValue) Sets the CSSvoice-pitchproperty.setVoicePitchRange(String attrValue) Sets the CSSvoice-pitch-rangeproperty.setVoiceRate(String attrValue) Sets the CSSvoice-rateproperty.setVoiceStress(String attrValue) Sets the CSSvoice-stressproperty.setVoiceVolume(String attrValue) Sets the CSSvoice-volumeproperty.setWhiteSpace(WhiteSpace attrValue) Sets the CSSwhite-spaceproperty.setWhiteSpace(String attrValue) Sets the CSSwhite-spaceproperty.Sets the CSSwidowsproperty.setWidth(int pixels) Sets the CSSwidthproperty in pixels.Sets the CSSwidthproperty using a CSS unit value.Sets the CSSwidthproperty.setWordBreak(WordBreak attrValue) Sets the CSSword-breakproperty.setWordBreak(String attrValue) Sets the CSSword-breakproperty.setWordSpacing(float pts) Sets the CSSword-spacingproperty.setWordSpacing(int pixels) Sets the CSSword-spacingproperty in pixels.setWordSpacing(Units units) Sets the CSSword-spacingproperty using a CSS unit value.setWordSpacing(String attrValue) Sets the CSSword-spacingproperty.setWordWrap(WordWrap attrValue) Sets the CSSword-wrapproperty.setWordWrap(String attrValue) Sets the CSSword-wrapproperty.setWritingMode(String attrValue) Sets the CSSwriting-modeproperty.setZIndex(int attrValue) Sets the CSSz-indexproperty.Sets the CSSz-indexproperty.voidshow()Makes this element visible by restoring its display value and setting visibility tovisible.protected final voidshown()Handles the visibility cascade when this element becomes visible.Stops any active CSS keyframe animation on this element.voidPlays all registered transitions forward.voidtransitionForward(long delayMs) Plays all registered transitions forward after a delay.voidPlays all registered transitions in reverse, returning to the original state.voidtransitionReverse(long delayMs) Plays all registered transitions in reverse after a delay.protected final voidprotected final booleanupdateStyle(boolean changeOccurred) Conditionally updates the element's style attribute if a change occurred.protected final voidUpdates the style attribute if any CSS properties have been modified.Methods inherited from class com.oorian.html.VisualElement
clearOnClick, click, disable, enable, getAccessKey, getAutoCapitalize, getEnterKeyHint, getInputMode, getPopover, getRole, getTabIndex, getTitle, isAutoFocus, isContentEditable, isDisabled, isDraggable, isHidden, isInert, isSpellCheck, onDisabled, onEnabled, setAccessKey, setAriaAtomic, setAriaBusy, setAriaChecked, setAriaCheckedMixed, setAriaControls, setAriaCurrent, setAriaDescribedBy, setAriaDisabled, setAriaErrorMessage, setAriaExpanded, setAriaHasPopup, setAriaHasPopup, setAriaHidden, setAriaInvalid, setAriaLabel, setAriaLabelledBy, setAriaLevel, setAriaLive, setAriaModal, setAriaOwns, setAriaPressed, setAriaRequired, setAriaSelected, setAriaValueRange, setAriaValueText, setAutoCapitalize, setAutoFocus, setConsumeEvent, setContentEditable, setDisabled, setDraggable, setDropAllowed, setEnterKeyHint, setFocus, setHidden, setInert, setInputMode, setOnAnimationCancel, setOnAnimationEnd, setOnAnimationIteration, setOnAnimationStart, setOnAuxClick, setOnBeforeInput, setOnBeforeToggle, setOnBlur, setOnChange, setOnClick, setOnClickChange, setOnCompositionEnd, setOnCompositionStart, setOnCompositionUpdate, setOnContextMenu, setOnCopy, setOnCut, setOnDocumentResize, setOnFocus, setOnFocusIn, setOnFocusOut, setOnFormData, setOnGotPointerCapture, setOnInput, setOnInvalid, setOnKeyDown, setOnKeyPressed, setOnKeyUp, setOnLostPointerCapture, setOnMouseDown, setOnMouseEnter, setOnMouseLeave, setOnMouseMove, setOnMouseOut, setOnMouseOutChangeClass, setOnMouseOutChangeStyle, setOnMouseOutChangeStyle, setOnMouseOver, setOnMouseOverChangeClass, setOnMouseOverChangeStyle, setOnMouseOverChangeStyle, setOnMouseOverShow, setOnMouseUp, setOnPageLoad, setOnPaste, setOnPointerCancel, setOnPointerDown, setOnPointerEnter, setOnPointerLeave, setOnPointerMove, setOnPointerOut, setOnPointerOver, setOnPointerUp, setOnResize, setOnScroll, setOnScrollEnd, setOnSelect, setOnSelectionChange, setOnSelectStart, setOnToggle, setOnTouchCancel, setOnTouchEnd, setOnTouchMove, setOnTouchStart, setOnTransitionCancel, setOnTransitionEnd, setOnTransitionRun, setOnTransitionStart, setOnWheel, setOnWindowResize, setPopover, setRole, setRole, setSpellCheck, setTabIndex, setTitle, setTooltipMethods inherited from class com.oorian.html.Element
addAttribute, addAttribute, addAttribute, addAttribute, addElement, addLineBreak, addLineOfText, addLineOfText, addLineOfText, addParagraph, addParagraph, addSpacer, addText, addText, addText, addText, assignId, containsElement, containsElement, create, dispatchEvent, dispatchEvent, dispatchEvent, dispatchEvent, equals, excludeId, executeJs, executeJs, executeJs, getAccept, getAllElements, getAncestor, getAttribute, getAttributes, getComponent, getDir, getElement, getElementById, getElementCount, getElementCount, getElements, getElements, getElementsByComponentName, getElementsByTagName, getHtml, getId, getInnerHtml, getInnerHtml, getIs, getItemId, getItemProp, getItemRef, getItemType, getLang, getNextSibling, getPage, getParent, getPart, getPrevSibling, getSlot, getTagName, getTextContent, getUrl, hasAttribute, hasElements, insertElement, isChildOf, isClosedTag, isCreated, isDescendantOf, isDescendantOf, isInitialized, isItemScope, isTranslate, onCallback, onCreated, onElementAdded, onElementRemoved, onHashChange, onHidden, onInitialized, onJsReturn, onPageLoaded, onPageUnloaded, onRefresh, onShown, onUpdated, onUserEvent, prewrite, recreate, refresh, refresh, registerAddition, registerListener, registerListener, registerListener, registerListener, registerListener, registerListener, registerListener, registerSubtraction, registerUpdate, removeAllElements, removeAttribute, removeAttribute, removeElement, removeElement, removeFromParent, requestCallback, requestCallback, requestCallback, requestCallback, resetId, scrollTo, scrollToBottom, scrollToTop, self, sendCommand, sendUpdate, setAccept, setComponent, setDir, setDir, setElement, setId, setIs, setItemId, setItemProp, setItemRef, setItemScope, setItemType, setLang, setOnError, setOnLoad, setPage, setParent, setPart, setSlot, setTagName, setText, setText, setText, setText, setTranslate, toString, unregisterListener, update, updateAttributes
-
Constructor Details
-
StyledElement
Constructs a StyledElement with the specified tag name.- Parameters:
tagName- The HTML tag name for this element.
-
StyledElement
Constructs a StyledElement with the specified tag name and closed state.- Parameters:
tagName- The HTML tag name for this element.closed-truefor self-closing elements,falseotherwise.
-
-
Method Details
-
setClass
Sets the CSS class attribute for this element.This replaces any existing class attribute value.
- Parameters:
className- The CSS class name to set.
-
addClass
Adds a CSS class to the existing class attribute.If the element already has classes, the new class is appended with a space separator. If no classes exist, sets the class attribute.
- Parameters:
className- The CSS class name to add.
-
removeClass
Removes a CSS class from the class attribute.- Parameters:
className- The CSS class name to remove.
-
setStyle
Sets the inline CSS style from a CssStyle object.Creates a copy of the provided style and updates the element's style attribute.
- Parameters:
style- the CssStyle object to apply- Returns:
- the element's current style object
-
setStyle
Sets the inline CSS style from a CSS string.Parses the string into a CssStyle object and applies it to the element.
- Parameters:
style- the CSS style string (e.g., "color: red; font-size: 14px")- Returns:
- the element's current style object
-
addStyle
-
addStyle
Merges additional CSS styles into the current style.Properties from the provided style are added to or override existing properties.
- Parameters:
style- the CssStyle object to merge- Returns:
- the element's current style object
-
addStyleAttribute
Adds a single CSS property to the current style.- Parameters:
name- the CSS property namevalue- the CSS property value
-
getStyleAttribute
Returns the value of a single CSS property from the current inline style.- Parameters:
name- the CSS property name- Returns:
- the property value, or
nullif not set
-
setHoverStyle
Sets the CSS style applied when the mouse hovers over the element (:hover).The hover style is injected as an ID-scoped CSS rule into the page
<head>. If the element is already initialized, the rule is injected immediately; otherwise it is deferred untilinitialize().- Parameters:
hoverStyle- the CssStyle for hover state, ornullto remove- Returns:
- this element for method chaining
-
setActiveStyle
Sets the CSS style applied when the element is pressed or active (:active).The active style is injected as an ID-scoped CSS rule into the page
<head>. If the element is already initialized, the rule is injected immediately; otherwise it is deferred untilinitialize().- Parameters:
activeStyle- the CssStyle for active state, ornullto remove- Returns:
- this element for method chaining
-
setFocusStyle
Sets the CSS style applied when the element has focus (:focus).The focus style is injected as an ID-scoped CSS rule into the page
<head>. If the element is already initialized, the rule is injected immediately; otherwise it is deferred untilinitialize().- Parameters:
focusStyle- the CssStyle for focus state, ornullto remove- Returns:
- this element for method chaining
-
setFocusVisibleStyle
Sets the CSS style applied when focus should be visibly indicated (:focus-visible).The :focus-visible pseudo-class applies when the element has focus and the browser determines that focus should be visibly indicated (e.g., via keyboard navigation). The style is injected as an ID-scoped CSS rule into the page
<head>.- Parameters:
focusVisibleStyle- the CssStyle for focus-visible state, ornullto remove- Returns:
- this element for method chaining
-
setDisabledStyle
Sets the CSS style applied when the element is disabled (:disabled).The disabled style is injected as an ID-scoped CSS rule into the page
<head>. If the element is already initialized, the rule is injected immediately; otherwise it is deferred untilinitialize().- Parameters:
disabledStyle- the CssStyle for disabled state, ornullto remove- Returns:
- this element for method chaining
-
getHoverStyle
Returns the CSS style applied when the mouse hovers over the element.- Returns:
- the hover CssStyle, or
nullif not set
-
getActiveStyle
Returns the CSS style applied when the element is pressed or active.- Returns:
- the active CssStyle, or
nullif not set
-
getFocusStyle
Returns the CSS style applied when the element has focus.- Returns:
- the focus CssStyle, or
nullif not set
-
getFocusVisibleStyle
Returns the CSS style applied when focus should be visibly indicated.- Returns:
- the focus-visible CssStyle, or
nullif not set
-
getDisabledStyle
Returns the CSS style applied when the element is disabled.- Returns:
- the disabled CssStyle, or
nullif not set
-
setOnDblClickChange
Sets the CSSon-dbl-click-changeproperty.- Overrides:
setOnDblClickChangein classVisualElement<T extends StyledElement<T>>- Parameters:
id- The id value.
-
setOnDblClick
Sets the CSSon-dbl-clickproperty.- Overrides:
setOnDblClickin classVisualElement<T extends StyledElement<T>>- Parameters:
value- The property value.
-
setShow
public void setShow(boolean flag) Sets the CSSshowproperty.- Parameters:
flag-trueto enable,falseto disable.
-
show
public void show() -
hide
public void hide() -
isDisplayed
public final boolean isDisplayed()Returns whether thedisplayedproperty is set.- Returns:
- The current
displayedvalue.
-
setKeyFrames
Sets the CSS@keyframesanimation name.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAnimation
Sets the CSSanimationproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAnimationDelay
Sets the CSSanimation-delayproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAnimationDelay
Sets the CSSanimation-delayproperty.- Parameters:
delayInSecs- The delay in secs value.- Returns:
- This instance for method chaining.
-
setAnimationDelay
Sets the CSSanimation-delayproperty.- Parameters:
delayInMsecs- The long value.- Returns:
- This instance for method chaining.
-
setAnimationDirection
Sets the CSSanimation-directionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAnimationDirection
Sets the CSSanimation-directionproperty.- Parameters:
attrValue- The animation direction value.- Returns:
- This instance for method chaining.
-
setAnimationDuration
Sets the CSSanimation-durationproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAnimationDuration
Sets the CSSanimation-durationproperty.- Parameters:
secs- The secs value.- Returns:
- This instance for method chaining.
-
setAnimationDuration
Sets the CSSanimation-durationproperty.- Parameters:
msecs- The long value.- Returns:
- This instance for method chaining.
-
setAnimationFillMode
Sets the CSSanimation-fill-modeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAnimationFillMode
Sets the CSSanimation-fill-modeproperty.- Parameters:
attrValue- The animation fill mode value.- Returns:
- This instance for method chaining.
-
setAnimationIterationCount
Sets the CSSanimation-iteration-countproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAnimationIterationCount
Sets the CSSanimation-iteration-countproperty.- Parameters:
count- The iteration count.- Returns:
- This instance for method chaining.
-
setAnimationIterationCount
Sets the CSSanimation-iteration-countproperty.- Parameters:
attrValue- The animation iteration count value.- Returns:
- This instance for method chaining.
-
setAnimationName
Sets the CSSanimation-nameproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAnimationPlayState
Sets the CSSanimation-play-stateproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAnimationPlayState
Sets the CSSanimation-play-stateproperty.- Parameters:
attrValue- The animation play state value.- Returns:
- This instance for method chaining.
-
setAnimationTimingFunction
Sets the CSSanimation-timing-functionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAnimationTimingFunction
Sets the CSSanimation-timing-functionproperty.- Parameters:
attrValue- The animation timing function value.- Returns:
- This instance for method chaining.
-
setAnimationTimingFunction
Sets the CSSanimation-timing-functionproperty.- Parameters:
intervals- The number of intervals.start-trueto start the steps from the beginning.- Returns:
- This instance for method chaining.
-
setAnimationTimingFunction
Sets the CSSanimation-timing-functionproperty.- Parameters:
n1- The first cubic-bezier control point value.n2- The second cubic-bezier control point value.n3- The third cubic-bezier control point value.n4- The fourth cubic-bezier control point value.- Returns:
- This instance for method chaining.
-
setBackground
Sets the CSSbackgroundproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackground
Sets the CSSbackgroundproperty using a Color object.- Parameters:
color- The color value.- Returns:
- This instance for method chaining.
-
setBackgroundAttachment
Sets the CSSbackground-attachmentproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackgroundAttachment
Sets the CSSbackground-attachmentproperty.- Parameters:
attrValue- The background attachment value.- Returns:
- This instance for method chaining.
-
setBackgroundBlendMode
Sets the CSSbackground-blend-modeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackgroundBlendMode
Sets the CSSbackground-blend-modeproperty.- Parameters:
attrValue- The background blend mode value.- Returns:
- This instance for method chaining.
-
setBackgroundColor
Sets the CSSbackground-colorproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackgroundColor
Sets the CSSbackground-colorproperty using a Color object.- Parameters:
attrValue- The attrValue color.- Returns:
- This instance for method chaining.
-
setBackgroundColor
Sets the CSSbackground-colorproperty.- Parameters:
attrValue- The background color value.- Returns:
- This instance for method chaining.
-
setBackgroundImage
Sets the CSSbackground-imageproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackgroundImage
Sets the CSSbackground-imageproperty from aGradientbuilder.- Parameters:
gradient- the Gradient builder containing the gradient definition.- Returns:
- This instance for method chaining.
- See Also:
-
setBackgroundPosition
Sets the CSSbackground-positionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackgroundPosition
Sets the CSSbackground-positionproperty.- Parameters:
attrValue- The background position value.- Returns:
- This instance for method chaining.
-
setBackgroundPosition
Sets the CSSbackground-positionproperty.- Parameters:
xpos- The xpos value.ypos- The ypos value.- Returns:
- This instance for method chaining.
-
setBackgroundPosition
Sets the CSSbackground-positionproperty.- Parameters:
xpos- The xpos value.ypos- The ypos value.- Returns:
- This instance for method chaining.
-
setBackgroundPosition
Sets the CSSbackground-positionproperty.- Parameters:
xpos- The value as a CSS unit.ypos- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBackgroundRepeat
Sets the CSSbackground-repeatproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackgroundRepeat
Sets the CSSbackground-repeatproperty.- Parameters:
attrValue- The background repeat value.- Returns:
- This instance for method chaining.
-
setBackgroundClip
Sets the CSSbackground-clipproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackgroundClip
Sets the CSSbackground-clipproperty.- Parameters:
attrValue- The background clip value.- Returns:
- This instance for method chaining.
-
setBackgroundOrigin
Sets the CSSbackground-originproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackgroundOrigin
Sets the CSSbackground-originproperty.- Parameters:
attrValue- The background origin value.- Returns:
- This instance for method chaining.
-
setBackgroundSize
Sets the CSSbackground-sizeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackgroundSize
Sets the CSSbackground-sizeproperty.- Parameters:
attrValue- The background size value.- Returns:
- This instance for method chaining.
-
setBackgroundSize
Sets the CSSbackground-sizeproperty.- Parameters:
width- The width value.height- The height value.- Returns:
- This instance for method chaining.
-
setBackgroundSize
Sets the CSSbackground-sizeproperty.- Parameters:
width- The width value.height- The height value.- Returns:
- This instance for method chaining.
-
setBackgroundSize
Sets the CSSbackground-sizeproperty.- Parameters:
width- The value as a CSS unit.height- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setClear
Sets the CSSclearproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setClear
Sets the CSSclearproperty.- Parameters:
attrValue- The clear value.- Returns:
- This instance for method chaining.
-
setClip
Sets the CSSclipproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setClipPath
Sets the CSSclip-pathproperty.- Parameters:
attrValue- The CSS clip-path value (e.g., "circle(50%)", "polygon(50% 0%, 100% 100%, 0% 100%)").- Returns:
- This instance for method chaining.
-
setClipPath
Sets the CSSclip-pathproperty from aClipPathbuilder.- Parameters:
clipPath- the ClipPath builder containing the shape definition.- Returns:
- This instance for method chaining.
- See Also:
-
setDisplay
Sets the CSSdisplayproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setDisplay
Sets the CSSdisplayproperty.- Parameters:
attrValue- The display value.- Returns:
- This instance for method chaining.
-
setFloat
Sets the CSSfloatproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFloat
Sets the CSSfloatproperty.- Parameters:
attrValue- The float value.- Returns:
- This instance for method chaining.
-
setMargin
Sets the CSSmarginproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMargin
Sets the CSSmarginproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setMargin
Sets the CSSmarginproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setMargin
Sets the CSSmarginproperty using individual values for each side.- Parameters:
top- The top value in pixels.right- The right value in pixels.bottom- The bottom value in pixels.left- The left value in pixels.- Returns:
- This instance for method chaining.
-
setMargin
Sets the CSSmarginproperty using individual values for each side.- Parameters:
top- The top value as a CSS unit.right- The right value as a CSS unit.bottom- The bottom value as a CSS unit.left- The left value as a CSS unit.- Returns:
- This instance for method chaining.
-
setMarginBottom
Sets the CSSmargin-bottomproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMarginBottom
Sets the CSSmargin-bottomproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setMarginBottom
Sets the CSSmargin-bottomproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setMarginLeft
Sets the CSSmargin-leftproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMarginLeft
Sets the CSSmargin-leftproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setMarginLeft
Sets the CSSmargin-leftproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setMarginRight
Sets the CSSmargin-rightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMarginRight
Sets the CSSmargin-rightproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setMarginRight
Sets the CSSmargin-rightproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setMarginTop
Sets the CSSmargin-topproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMarginTop
Sets the CSSmargin-topproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setMarginTop
Sets the CSSmargin-topproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setOverflow
Sets the CSSoverflowproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setOverflow
Sets the CSSoverflowproperty.- Parameters:
attrValue- The overflow value.- Returns:
- This instance for method chaining.
-
setOverflow
Sets the CSSoverflowproperty.- Parameters:
x- The overflow value.y- The overflow value.- Returns:
- This instance for method chaining.
-
setOverflowX
Sets the CSSoverflow-xproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setOverflowX
Sets the CSSoverflow-xproperty.- Parameters:
attrValue- The overflow value.- Returns:
- This instance for method chaining.
-
setOverflowY
Sets the CSSoverflow-yproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setOverflowY
Sets the CSSoverflow-yproperty.- Parameters:
attrValue- The overflow value.- Returns:
- This instance for method chaining.
-
setPadding
Sets the CSSpaddingproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPadding
Sets the CSSpaddingproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setPadding
Sets the CSSpaddingproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setPadding
-
setPadding
-
setPadding
Sets the CSSpaddingproperty using individual values for each side.- Parameters:
top- The top value as a CSS string.right- The right value as a CSS string.bottom- The bottom value as a CSS string.left- The left value as a CSS string.- Returns:
- This instance for method chaining.
-
setPadding
Sets the CSSpaddingproperty using individual values for each side.- Parameters:
top- The top value in pixels.right- The right value in pixels.bottom- The bottom value in pixels.left- The left value in pixels.- Returns:
- This instance for method chaining.
-
setPadding
Sets the CSSpaddingproperty using individual values for each side.- Parameters:
top- The top value as a CSS unit.right- The right value as a CSS unit.bottom- The bottom value as a CSS unit.left- The left value as a CSS unit.- Returns:
- This instance for method chaining.
-
setPaddingBottom
Sets the CSSpadding-bottomproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPaddingBottom
Sets the CSSpadding-bottomproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setPaddingBottom
Sets the CSSpadding-bottomproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setPaddingLeft
Sets the CSSpadding-leftproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPaddingLeft
Sets the CSSpadding-leftproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setPaddingLeft
Sets the CSSpadding-leftproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setPaddingRight
Sets the CSSpadding-rightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPaddingRight
Sets the CSSpadding-rightproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setPaddingRight
Sets the CSSpadding-rightproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setPaddingTop
Sets the CSSpadding-topproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPaddingTop
Sets the CSSpadding-topproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setPaddingTop
Sets the CSSpadding-topproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setPosition
Sets the CSSpositionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPosition
Sets the CSSpositionproperty.- Parameters:
attrValue- The position value.- Returns:
- This instance for method chaining.
-
setPosition
Sets the CSSpositionproperty using individual values for each side.- Parameters:
left- The left value as a CSS string.top- The top value as a CSS string.- Returns:
- This instance for method chaining.
-
setPosition
Sets the CSSpositionproperty using individual values for each side.- Parameters:
left- The left value in pixels.top- The top value in pixels.- Returns:
- This instance for method chaining.
-
setPosition
Sets the CSSpositionproperty using individual values for each side.- Parameters:
left- The left value as a CSS unit.top- The top value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBottom
Sets the CSSbottomproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBottom
Sets the CSSbottomproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBottom
Sets the CSSbottomproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setLeft
Sets the CSSleftproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setLeft
Sets the CSSleftproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setLeft
Sets the CSSleftproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setRight
Sets the CSSrightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setRight
Sets the CSSrightproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setRight
Sets the CSSrightproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setTop
Sets the CSStopproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTop
Sets the CSStopproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setTop
Sets the CSStopproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setVerticalAlign
Sets the CSSvertical-alignproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setVerticalAlign
Sets the CSSvertical-alignproperty.- Parameters:
attrValue- The vertical align value.- Returns:
- This instance for method chaining.
-
setVisibility
Sets the CSSvisibilityproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setVisibility
Sets the CSSvisibilityproperty.- Parameters:
attrValue- The visibility value.- Returns:
- This instance for method chaining.
-
setHeight
Sets the CSSheightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setHeight
Sets the CSSheightproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setHeight
Sets the CSSheightproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setMaxHeight
Sets the CSSmax-heightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMaxHeight
Sets the CSSmax-heightproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setMaxHeight
Sets the CSSmax-heightproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setMinHeight
Sets the CSSmin-heightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMinHeight
Sets the CSSmin-heightproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setMinHeight
Sets the CSSmin-heightproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setWidth
Sets the CSSwidthproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setWidth
Sets the CSSwidthproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setWidth
Sets the CSSwidthproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setMaxWidth
Sets the CSSmax-widthproperty.- Parameters:
maxWidth- The max width value.- Returns:
- This instance for method chaining.
-
setMaxWidth
Sets the CSSmax-widthproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setMaxWidth
Sets the CSSmax-widthproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setMinWidth
Sets the CSSmin-widthproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMinWidth
Sets the CSSmin-widthproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setMinWidth
Sets the CSSmin-widthproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setSize
Sets the CSSsizeproperty.- Parameters:
width- The width value.height- The height value.- Returns:
- This instance for method chaining.
-
setSize
Sets the CSSsizeproperty.- Parameters:
width- The width value.height- The height value.- Returns:
- This instance for method chaining.
-
setSize
Sets the CSSsizeproperty.- Parameters:
width- The value as a CSS unit.height- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setZIndex
Sets the CSSz-indexproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setZIndex
Sets the CSSz-indexproperty.- Parameters:
attrValue- The value.- Returns:
- This instance for method chaining.
-
setBoxSizing
-
setBoxSizing
-
setCursor
-
setCursor
-
setImeMode
-
setOutline
-
setOutline
-
setOutline
-
setOutline
-
setOutlineColor
-
setOutlineColor
-
setOutlineOffset
-
setOutlineOffset
-
setOutlineOffset
-
setOutlineStyle
-
setOutlineStyle
-
setOutlineWidth
-
setOutlineWidth
-
setOutlineWidth
-
setOutlineWidth
-
setResize
-
setResize
-
setTextOverflow
-
setTextOverflow
-
setBorder
Sets the CSSborderproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorder
Sets the CSSbordershorthand property.- Parameters:
width- The width value.style- The style value.color- The color value.- Returns:
- This instance for method chaining.
-
setBorder
Sets the CSSbordershorthand property.- Parameters:
width- The width value.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorder
Sets the CSSbordershorthand property.- Parameters:
width- The width value.color- The color value.- Returns:
- This instance for method chaining.
-
setBorder
Sets the CSSborderproperty using a Color object.- Parameters:
color- The color value.- Returns:
- This instance for method chaining.
-
setBorder
Sets the CSSbordershorthand property.- Parameters:
width- The value as a CSS unit.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorder
Sets the CSSbordershorthand property.- Parameters:
width- The value as a CSS unit.color- The color value.- Returns:
- This instance for method chaining.
-
setBorder
Sets the CSSbordershorthand property.- Parameters:
width- The border width.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorder
Sets the CSSbordershorthand property.- Parameters:
width- The border width.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderBottom
Sets the CSSborder-bottomproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderBottom
Sets the CSSborder-bottomshorthand property.- Parameters:
width- The width value.style- The style value.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderBottom
Sets the CSSborder-bottomshorthand property.- Parameters:
width- The width value.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderBottom
Sets the CSSborder-bottomshorthand property.- Parameters:
width- The width value.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderBottom
Sets the CSSborder-bottomshorthand property.- Parameters:
width- The value as a CSS unit.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderBottom
Sets the CSSborder-bottomshorthand property.- Parameters:
width- The value as a CSS unit.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderBottom
Sets the CSSborder-bottomshorthand property.- Parameters:
width- The border width.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderBottom
Sets the CSSborder-bottomshorthand property.- Parameters:
width- The border width.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderBottomColor
Sets the CSSborder-bottom-colorproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderBottomColor
Sets the CSSborder-bottom-colorproperty using a Color object.- Parameters:
attrValue- The attrValue color.- Returns:
- This instance for method chaining.
-
setBorderBottomLeftRadius
Sets the CSSborder-bottom-left-radiusproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderBottomLeftRadius
Sets the CSSborder-bottom-left-radiusproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBorderBottomLeftRadius
Sets the CSSborder-bottom-left-radiusproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderBottomRightRadius
Sets the CSSborder-bottom-right-radiusproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderBottomRightRadius
Sets the CSSborder-bottom-right-radiusproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBorderBottomRightRadius
Sets the CSSborder-bottom-right-radiusproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderBottomStyle
Sets the CSSborder-bottom-styleproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderBottomStyle
Sets the CSSborder-bottom-styleproperty.- Parameters:
attrValue- The border style.- Returns:
- This instance for method chaining.
-
setBorderBottomWidth
Sets the CSSborder-bottom-widthproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderBottomWidth
Sets the CSSborder-bottom-widthproperty.- Parameters:
attrValue- The border width.- Returns:
- This instance for method chaining.
-
setBorderBottomWidth
Sets the CSSborder-bottom-widthproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBorderBottomWidth
Sets the CSSborder-bottom-widthproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderColor
Sets the CSSborder-colorproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderColor
Sets the CSSborder-colorproperty using a Color object.- Parameters:
color- The color value.- Returns:
- This instance for method chaining.
-
setBorderColor
Sets the CSSborder-colorproperty using individual values for each side.- Parameters:
top- The top value as a CSS string.right- The right value as a CSS string.bottom- The bottom value as a CSS string.left- The left value as a CSS string.- Returns:
- This instance for method chaining.
-
setBorderColor
Sets the CSSborder-colorproperty using individual values for each side.- Parameters:
top- The top value.right- The right value.bottom- The bottom value.left- The left value.- Returns:
- This instance for method chaining.
-
setBorderImage
Sets the CSSborder-imageproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderImage
public StyledElement setBorderImage(String srcUrl, String slice, String width, String outset, String repeat) Sets the CSSborder-imageshorthand property.- Parameters:
srcUrl- The src url value.slice- The slice value.width- The width value.outset- The outset value.repeat- The repeat value.- Returns:
- This instance for method chaining.
-
setBorderImageOutset
Sets the CSSborder-image-outsetproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderImageRepeat
Sets the CSSborder-image-repeatproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderImageSlice
Sets the CSSborder-image-sliceproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderImageSource
Sets the CSSborder-image-sourceproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderImageWidth
Sets the CSSborder-image-widthproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderLeft
Sets the CSSborder-leftproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderLeft
Sets the CSSborder-leftshorthand property.- Parameters:
width- The width value.style- The style value.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderLeft
Sets the CSSborder-leftshorthand property.- Parameters:
width- The width value.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderLeft
Sets the CSSborder-leftshorthand property.- Parameters:
width- The width value.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderLeft
Sets the CSSborder-leftshorthand property.- Parameters:
width- The value as a CSS unit.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderLeft
Sets the CSSborder-leftshorthand property.- Parameters:
width- The value as a CSS unit.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderLeft
Sets the CSSborder-leftshorthand property.- Parameters:
width- The border width.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderLeft
Sets the CSSborder-leftshorthand property.- Parameters:
width- The border width.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderLeftColor
Sets the CSSborder-left-colorproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderLeftColor
Sets the CSSborder-left-colorproperty using a Color object.- Parameters:
attrValue- The attrValue color.- Returns:
- This instance for method chaining.
-
setBorderLeftStyle
Sets the CSSborder-left-styleproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderLeftStyle
Sets the CSSborder-left-styleproperty.- Parameters:
attrValue- The border style.- Returns:
- This instance for method chaining.
-
setBorderLeftWidth
Sets the CSSborder-left-widthproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderLeftWidth
Sets the CSSborder-left-widthproperty.- Parameters:
attrValue- The border width.- Returns:
- This instance for method chaining.
-
setBorderLeftWidth
Sets the CSSborder-left-widthproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBorderLeftWidth
Sets the CSSborder-left-widthproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderRadius
Sets the CSSborder-radiusproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderRadius
Sets the CSSborder-radiusproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBorderRadius
Sets the CSSborder-radiusproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderRadius
public StyledElement setBorderRadius(String topLeft, String topRight, String bottomRight, String bottomLeft) Sets the CSSborder-radiusproperty.- Parameters:
topLeft- The top left value.topRight- The top right value.bottomRight- The bottom right value.bottomLeft- The bottom left value.- Returns:
- This instance for method chaining.
-
setBorderRadius
Sets the CSSborder-radiusproperty.- Parameters:
topLeft- The top left value.topRight- The top right value.bottomRight- The bottom right value.bottomLeft- The bottom left value.- Returns:
- This instance for method chaining.
-
setBorderRadius
public StyledElement setBorderRadius(Units topLeft, Units topRight, Units bottomRight, Units bottomLeft) Sets the CSSborder-radiusproperty.- Parameters:
topLeft- The value as a CSS unit.topRight- The value as a CSS unit.bottomRight- The value as a CSS unit.bottomLeft- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderRight
Sets the CSSborder-rightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderRight
Sets the CSSborder-rightshorthand property.- Parameters:
width- The width value.style- The style value.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderRight
Sets the CSSborder-rightshorthand property.- Parameters:
width- The width value.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderRight
Sets the CSSborder-rightshorthand property.- Parameters:
width- The width value.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderRight
Sets the CSSborder-rightshorthand property.- Parameters:
width- The value as a CSS unit.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderRight
Sets the CSSborder-rightshorthand property.- Parameters:
width- The value as a CSS unit.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderRight
Sets the CSSborder-rightshorthand property.- Parameters:
width- The border width.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderRight
Sets the CSSborder-rightshorthand property.- Parameters:
width- The border width.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderRightColor
Sets the CSSborder-right-colorproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderRightColor
Sets the CSSborder-right-colorproperty using a Color object.- Parameters:
attrValue- The attrValue color.- Returns:
- This instance for method chaining.
-
setBorderRightStyle
Sets the CSSborder-right-styleproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderRightStyle
Sets the CSSborder-right-styleproperty.- Parameters:
attrValue- The border style.- Returns:
- This instance for method chaining.
-
setBorderRightWidth
Sets the CSSborder-right-widthproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderRightWidth
Sets the CSSborder-right-widthproperty.- Parameters:
attrValue- The border width.- Returns:
- This instance for method chaining.
-
setBorderRightWidth
Sets the CSSborder-right-widthproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBorderRightWidth
Sets the CSSborder-right-widthproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderStyle
Sets the CSSborder-styleproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderStyle
Sets the CSSborder-styleproperty.- Parameters:
attrValue- The border style.- Returns:
- This instance for method chaining.
-
setBorderTop
Sets the CSSborder-topproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderTop
Sets the CSSborder-topshorthand property.- Parameters:
width- The width value.style- The style value.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderTop
Sets the CSSborder-topshorthand property.- Parameters:
width- The width value.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderTop
Sets the CSSborder-topshorthand property.- Parameters:
width- The width value.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderTop
Sets the CSSborder-topshorthand property.- Parameters:
width- The value as a CSS unit.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderTop
Sets the CSSborder-topshorthand property.- Parameters:
width- The value as a CSS unit.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderTop
Sets the CSSborder-topshorthand property.- Parameters:
width- The border width.style- The border style.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderTop
Sets the CSSborder-topshorthand property.- Parameters:
width- The border width.color- The color value.- Returns:
- This instance for method chaining.
-
setBorderTopColor
Sets the CSSborder-top-colorproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderTopColor
Sets the CSSborder-top-colorproperty using a Color object.- Parameters:
attrValue- The attrValue color.- Returns:
- This instance for method chaining.
-
setBorderTopLeftRadius
Sets the CSSborder-top-left-radiusproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderTopLeftRadius
Sets the CSSborder-top-left-radiusproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBorderTopLeftRadius
Sets the CSSborder-top-left-radiusproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderTopRightRadius
Sets the CSSborder-top-right-radiusproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderTopRightRadius
Sets the CSSborder-top-right-radiusproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBorderTopRightRadius
Sets the CSSborder-top-right-radiusproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderTopStyle
Sets the CSSborder-top-styleproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderTopStyle
Sets the CSSborder-top-styleproperty.- Parameters:
attrValue- The border style.- Returns:
- This instance for method chaining.
-
setBorderTopWidth
Sets the CSSborder-top-widthproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderTopWidth
Sets the CSSborder-top-widthproperty.- Parameters:
attrValue- The border width.- Returns:
- This instance for method chaining.
-
setBorderTopWidth
Sets the CSSborder-top-widthproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBorderTopWidth
Sets the CSSborder-top-widthproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderWidth
Sets the CSSborder-widthproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBorderWidth
Sets the CSSborder-widthproperty.- Parameters:
attrValue- The border width.- Returns:
- This instance for method chaining.
-
setBorderWidth
Sets the CSSborder-widthproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setBorderWidth
Sets the CSSborder-widthproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBorderWidth
Sets the CSSborder-widthproperty using individual values for each side.- Parameters:
top- The top value as a CSS string.right- The right value as a CSS string.bottom- The bottom value as a CSS string.left- The left value as a CSS string.- Returns:
- This instance for method chaining.
-
setBorderWidth
Sets the CSSborder-widthproperty using individual values for each side.- Parameters:
top- The top value in pixels.right- The right value in pixels.bottom- The bottom value in pixels.left- The left value in pixels.- Returns:
- This instance for method chaining.
-
setBorderWidth
Sets the CSSborder-widthproperty using individual values for each side.- Parameters:
top- The top value as a CSS unit.right- The right value as a CSS unit.bottom- The bottom value as a CSS unit.left- The left value as a CSS unit.- Returns:
- This instance for method chaining.
-
setBoxShadow
Sets the CSSbox-shadowproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBoxShadow
public StyledElement setBoxShadow(String hShadow, String vShadow, String blur, String spread, String color) Sets the CSSbox-shadowproperty.- Parameters:
hShadow- The h shadow value.vShadow- The v shadow value.blur- The blur value.spread- The spread value.color- The color value.- Returns:
- This instance for method chaining.
-
setBoxShadow
Sets the CSSbox-shadowproperty.- Parameters:
hShadow- The h shadow value.vShadow- The v shadow value.blur- The blur value.spread- The spread value.color- The color value.- Returns:
- This instance for method chaining.
-
setBoxShadow
public StyledElement setBoxShadow(Units hShadow, Units vShadow, Units blur, Units spread, Color color) Sets the CSSbox-shadowproperty.- Parameters:
hShadow- The value as a CSS unit.vShadow- The value as a CSS unit.blur- The value as a CSS unit.spread- The value as a CSS unit.color- The color value.- Returns:
- This instance for method chaining.
-
setBoxShadow
Sets the CSSbox-shadowproperty from aBoxShadowbuilder.- Parameters:
boxShadow- the BoxShadow builder containing the shadow definitions.- Returns:
- This instance for method chaining.
- See Also:
-
setColor
Sets the CSScolorproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColor
Sets the CSScolorproperty using a Color object.- Parameters:
color- The color value.- Returns:
- This instance for method chaining.
-
setOpacity
Sets the CSSopacityproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setOpacity
Sets the CSSopacityproperty.- Parameters:
opacity- The opacity value.- Returns:
- This instance for method chaining.
-
setCounterIncrement
Sets the CSScounter-incrementproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setCounterReset
Sets the CSScounter-resetproperty.- Parameters:
keyFrameName- The key frame name value.- Returns:
- This instance for method chaining.
-
setFilter
Sets the CSSfilterproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFilter
Sets the CSSfilterproperty from aFilterbuilder.- Parameters:
filter- the Filter builder containing the functions to apply.- Returns:
- This instance for method chaining.
- See Also:
-
setBackdropFilter
Sets the CSSbackdrop-filterproperty.- Parameters:
attrValue- The CSS backdrop-filter value (e.g., "blur(10px)", "brightness(0.5)").- Returns:
- This instance for method chaining.
-
setBackdropFilter
Sets the CSSbackdrop-filterproperty from aFilterbuilder.- Parameters:
filter- the Filter builder containing the functions to apply.- Returns:
- This instance for method chaining.
- See Also:
-
setBlur
Sets theblur()function within the CSSfilterproperty.- Parameters:
value- the CSS length value (e.g.,"5px","0.5rem").- Returns:
- This instance for method chaining.
-
setBrightness
Sets thebrightness()function within the CSSfilterproperty.- Parameters:
value- the brightness factor (e.g.,1.5ffor 150%).- Returns:
- This instance for method chaining.
-
setContrast
Sets thecontrast()function within the CSSfilterproperty.- Parameters:
value- the contrast factor (e.g.,1.5ffor 150%).- Returns:
- This instance for method chaining.
-
setGrayscale
Sets thegrayscale()function within the CSSfilterproperty.- Parameters:
value- the grayscale amount from0.0fto1.0f.- Returns:
- This instance for method chaining.
-
setHueRotate
Sets thehue-rotate()function within the CSSfilterproperty.- Parameters:
degrees- the rotation angle in degrees.- Returns:
- This instance for method chaining.
-
setInvert
Sets theinvert()function within the CSSfilterproperty.- Parameters:
value- the inversion amount from0.0fto1.0f.- Returns:
- This instance for method chaining.
-
setFilterOpacity
Sets theopacity()function within the CSSfilterproperty.This controls the filter opacity, distinct from the CSS
opacityproperty.- Parameters:
value- the opacity amount from0.0fto1.0f.- Returns:
- This instance for method chaining.
-
setSaturate
Sets thesaturate()function within the CSSfilterproperty.- Parameters:
value- the saturation factor (e.g.,1.5ffor 150%).- Returns:
- This instance for method chaining.
-
setSepia
Sets thesepia()function within the CSSfilterproperty.- Parameters:
value- the sepia amount from0.0fto1.0f.- Returns:
- This instance for method chaining.
-
setAlignContent
Sets the CSSalign-contentproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAlignContent
Sets the CSSalign-contentproperty.- Parameters:
attrValue- The align content value.- Returns:
- This instance for method chaining.
-
setAlignItems
Sets the CSSalign-itemsproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAlignItems
Sets the CSSalign-itemsproperty.- Parameters:
attrValue- The align items value.- Returns:
- This instance for method chaining.
-
setAlignSelf
Sets the CSSalign-selfproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setAlignSelf
Sets the CSSalign-selfproperty.- Parameters:
attrValue- The align self value.- Returns:
- This instance for method chaining.
-
setFlex
Sets the CSSflexproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFlexBasis
Sets the CSSflex-basisproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFlexDirection
Sets the CSSflex-directionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFlexDirection
Sets the CSSflex-directionproperty.- Parameters:
attrValue- The flex direction value.- Returns:
- This instance for method chaining.
-
setFlexFlow
Sets the CSSflex-flowproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFlexGrow
Sets the CSSflex-growproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFlexGrow
Sets the CSSflex-growproperty.- Parameters:
attrValue- The value.- Returns:
- This instance for method chaining.
-
setFlexShrink
Sets the CSSflex-shrinkproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFlexShrink
Sets the CSSflex-shrinkproperty.- Parameters:
attrValue- The value.- Returns:
- This instance for method chaining.
-
setFlexWrap
Sets the CSSflex-wrapproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFlexWrap
Sets the CSSflex-wrapproperty.- Parameters:
attrValue- The flex wrap value.- Returns:
- This instance for method chaining.
-
setJustifyContent
Sets the CSSjustify-contentproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setJustifyContent
Sets the CSSjustify-contentproperty.- Parameters:
attrValue- The justify content value.- Returns:
- This instance for method chaining.
-
setOrder
Sets the CSSorderproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setOrder
Sets the CSSorderproperty.- Parameters:
order- The order value.- Returns:
- This instance for method chaining.
-
setColGap
-
setColGap
-
setGap
-
setGap
-
setGap
-
setGap
-
setRowGap
-
setRowGap
-
setFont
Sets the CSSfontproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
font- The font value.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
family- The family value.size- The size value.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
family- The font family value.size- The float value.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
family- The family value.size- The float value.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
family- The font family value.size- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
family- The family value.size- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
family- The family value.size- The size value.weight- The weight value.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
family- The font family value.size- The float value.weight- The font weight value.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
family- The family value.size- The float value.weight- The font weight value.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
family- The font family value.size- The value as a CSS unit.weight- The font weight value.- Returns:
- This instance for method chaining.
-
setFont
Sets the CSSfontproperty.- Parameters:
family- The family value.size- The value as a CSS unit.weight- The font weight value.- Returns:
- This instance for method chaining.
-
setFontFamily
Sets the CSSfont-familyproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontFamily
Sets the CSSfont-familyproperty.- Parameters:
attrValue- The font family value.- Returns:
- This instance for method chaining.
-
setFontSize
Sets the CSSfont-sizeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontSize
Sets the CSSfont-sizeproperty.- Parameters:
pts- The float value.- Returns:
- This instance for method chaining.
-
setFontSize
Sets the CSSfont-sizeproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setFontStretch
Sets the CSSfont-stretchproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontStretch
Sets the CSSfont-stretchproperty.- Parameters:
attrValue- The font stretch value.- Returns:
- This instance for method chaining.
-
setFontStyle
Sets the CSSfont-styleproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontStyle
Sets the CSSfont-styleproperty.- Parameters:
attrValue- The font style value.- Returns:
- This instance for method chaining.
-
setFontVariant
Sets the CSSfont-variantproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontVariant
Sets the CSSfont-variantproperty.- Parameters:
attrValue- The font variant value.- Returns:
- This instance for method chaining.
-
setFontWeight
Sets the CSSfont-weightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontWeight
Sets the CSSfont-weightproperty.- Parameters:
attrValue- The font weight value.- Returns:
- This instance for method chaining.
-
setFontFace
Sets the CSSfont-faceproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontFeatureSettings
Sets the CSSfont-feature-settingsproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontKerning
Sets the CSSfont-kerningproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontLanguageOverride
Sets the CSSfont-language-overrideproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontSizeAdjust
Sets the CSSfont-size-adjustproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontSynthesis
Sets the CSSfont-synthesisproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontVariantAlternates
Sets the CSSfont-variant-alternatesproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontVariantCaps
Sets the CSSfont-variant-capsproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontVariantEastAsian
Sets the CSSfont-variant-east-asianproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontVariantLigatures
Sets the CSSfont-variant-ligaturesproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontVariantNumeric
Sets the CSSfont-variant-numericproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setFontVariantPosition
Sets the CSSfont-variant-positionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMarks
Sets the CSSmarksproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setQuotes
Sets the CSSquotesproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setImageOrientation
Sets the CSSimage-orientationproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setImageRendering
Sets the CSSimage-renderingproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setImageResolution
Sets the CSSimage-resolutionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setObjectFit
Sets the CSSobject-fitproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setObjectPosition
Sets the CSSobject-positionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMarqueeDirection
-
setMarqueePlayCount
-
setMarqueeSpeed
-
setMarqueeStyle
-
setMask
-
setMaskType
-
setBreakAfter
Sets the CSSbreak-afterproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBreakBefore
Sets the CSSbreak-beforeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBreakInside
Sets the CSSbreak-insideproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumnCount
Sets the CSScolumn-countproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumnCount
Sets the CSScolumn-countproperty.- Parameters:
count- The iteration count.- Returns:
- This instance for method chaining.
-
setColumnFill
Sets the CSScolumn-fillproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumnFill
Sets the CSScolumn-fillproperty.- Parameters:
attrValue- The column fill value.- Returns:
- This instance for method chaining.
-
setColumnGap
Sets the CSScolumn-gapproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumnRule
Sets the CSScolumn-ruleproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumnRuleColor
Sets the CSScolumn-rule-colorproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumnRuleColor
Sets the CSScolumn-rule-colorproperty using a Color object.- Parameters:
color- The color value.- Returns:
- This instance for method chaining.
-
setColumnRuleStyle
Sets the CSScolumn-rule-styleproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumnRuleStyle
Sets the CSScolumn-rule-styleproperty.- Parameters:
attrValue- The column rule style.- Returns:
- This instance for method chaining.
-
setColumnRuleWidth
Sets the CSScolumn-rule-widthproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumnRuleWidth
Sets the CSScolumn-rule-widthproperty.- Parameters:
attrValue- The column rule width.- Returns:
- This instance for method chaining.
-
setColumnSpan
Sets the CSScolumn-spanproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumnWidth
Sets the CSScolumn-widthproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumnWidth
Sets the CSScolumn-widthproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setColumnWidth
Sets the CSScolumn-widthproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setColumns
Sets the CSScolumnsproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setColumns
Sets the CSScolumnsproperty.- Parameters:
count- The iteration count.width- The width value.- Returns:
- This instance for method chaining.
-
setColumns
Sets the CSScolumnsproperty.- Parameters:
count- The iteration count.width- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setWidows
Sets the CSSwidowsproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setOrphans
Sets the CSSorphansproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPageBreakAfter
Sets the CSSpage-break-afterproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPageBreakAfter
Sets the CSSpage-break-afterproperty.- Parameters:
attrValue- The page break after value.- Returns:
- This instance for method chaining.
-
setPageBreakBefore
Sets the CSSpage-break-beforeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPageBreakBefore
Sets the CSSpage-break-beforeproperty.- Parameters:
attrValue- The page break before value.- Returns:
- This instance for method chaining.
-
setPageBreakInside
Sets the CSSpage-break-insideproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPageBreakInside
Sets the CSSpage-break-insideproperty.- Parameters:
attrValue- The page break inside value.- Returns:
- This instance for method chaining.
-
setMark
Sets the CSSmarkproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMarkAfter
Sets the CSSmark-afterproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setMarkBefore
Sets the CSSmark-beforeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPhonemes
Sets the CSSphonemesproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setRest
Sets the CSSrestproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setRestAfter
Sets the CSSrest-afterproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setRestBefore
Sets the CSSrest-beforeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setVoiceBalance
Sets the CSSvoice-balanceproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setVoiceDuration
Sets the CSSvoice-durationproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setVoicePitch
Sets the CSSvoice-pitchproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setVoicePitchRange
Sets the CSSvoice-pitch-rangeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setVoiceRate
Sets the CSSvoice-rateproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setVoiceStress
Sets the CSSvoice-stressproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setVoiceVolume
Sets the CSSvoice-volumeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextDecoration
Sets the CSStext-decorationproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextDecoration
Sets the CSStext-decorationproperty.- Parameters:
attrValue- The text decoration value.- Returns:
- This instance for method chaining.
-
setTextDecorationColor
Sets the CSStext-decoration-colorproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextDecorationColor
Sets the CSStext-decoration-colorproperty using a Color object.- Parameters:
color- The color value.- Returns:
- This instance for method chaining.
-
setTextDecorationLine
Sets the CSStext-decoration-lineproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextDecorationLine
Sets the CSStext-decoration-lineproperty.- Parameters:
attrValue- The text decoration line value.- Returns:
- This instance for method chaining.
-
setTextDecorationStyle
Sets the CSStext-decoration-styleproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextDecorationStyle
Sets the CSStext-decoration-styleproperty.- Parameters:
attrValue- The text decoration style value.- Returns:
- This instance for method chaining.
-
setTextShadow
Sets the CSStext-shadowproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextShadow
Sets the CSStext-shadowproperty.- Parameters:
hShadow- The h shadow value.vShadow- The v shadow value.- Returns:
- This instance for method chaining.
-
setTextShadow
Sets the CSStext-shadowproperty.- Parameters:
hShadow- The h shadow value.vShadow- The v shadow value.blurRadius- The blur radius value.- Returns:
- This instance for method chaining.
-
setTextShadow
Sets the CSStext-shadowproperty.- Parameters:
hShadow- The h shadow value.vShadow- The v shadow value.blurRadius- The blur radius value.color- The color value.- Returns:
- This instance for method chaining.
-
setTextShadow
Sets the CSStext-shadowproperty from aBoxShadowbuilder.- Parameters:
boxShadow- the BoxShadow builder containing the shadow definitions.- Returns:
- This instance for method chaining.
- See Also:
-
setTextUnderlinePosition
Sets the CSStext-underline-positionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setHangingPunctuation
Sets the CSShanging-punctuationproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setHangingPunctuation
Sets the CSShanging-punctuationproperty.- Parameters:
attrValue- The hanging punctuation value.- Returns:
- This instance for method chaining.
-
setHyphens
Sets the CSShyphensproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setLetterSpacing
Sets the CSSletter-spacingproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setLetterSpacing
Sets the CSSletter-spacingproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setLetterSpacing
Sets the CSSletter-spacingproperty.- Parameters:
pts- The float value.- Returns:
- This instance for method chaining.
-
setLetterSpacing
Sets the CSSletter-spacingproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setLineBreak
Sets the CSSline-breakproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setLineHeight
Sets the CSSline-heightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setLineHeight
Sets the CSSline-heightproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setLineHeight
Sets the CSSline-heightproperty.- Parameters:
pts- The float value.- Returns:
- This instance for method chaining.
-
setLineHeight
Sets the CSSline-heightproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setOverflowWrap
Sets the CSSoverflow-wrapproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTabSize
Sets the CSStab-sizeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTabSize
Sets the CSStab-sizeproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setTabSize
Sets the CSStab-sizeproperty.- Parameters:
pts- The float value.- Returns:
- This instance for method chaining.
-
setTabSize
Sets the CSStab-sizeproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setTextAlign
Sets the CSStext-alignproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextAlign
Sets the CSStext-alignproperty.- Parameters:
attrValue- The text align value.- Returns:
- This instance for method chaining.
-
setTextAlignLast
Sets the CSStext-align-lastproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextAlignLast
Sets the CSStext-align-lastproperty.- Parameters:
attrValue- The text align last value.- Returns:
- This instance for method chaining.
-
setTextCombineUpright
Sets the CSStext-combine-uprightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextIndent
Sets the CSStext-indentproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextIndent
Sets the CSStext-indentproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setTextIndent
Sets the CSStext-indentproperty.- Parameters:
pts- The float value.- Returns:
- This instance for method chaining.
-
setTextIndent
Sets the CSStext-indentproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setTextJustify
Sets the CSStext-justifyproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextJustify
Sets the CSStext-justifyproperty.- Parameters:
attrValue- The text justify value.- Returns:
- This instance for method chaining.
-
setTextTransform
Sets the CSStext-transformproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextTransform
Sets the CSStext-transformproperty.- Parameters:
attrValue- The text transform value.- Returns:
- This instance for method chaining.
-
setWhiteSpace
Sets the CSSwhite-spaceproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setWhiteSpace
Sets the CSSwhite-spaceproperty.- Parameters:
attrValue- The white space value.- Returns:
- This instance for method chaining.
-
setWordBreak
Sets the CSSword-breakproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setWordBreak
Sets the CSSword-breakproperty.- Parameters:
attrValue- The word break value.- Returns:
- This instance for method chaining.
-
setWordSpacing
Sets the CSSword-spacingproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setWordSpacing
Sets the CSSword-spacingproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setWordSpacing
Sets the CSSword-spacingproperty.- Parameters:
pts- The float value.- Returns:
- This instance for method chaining.
-
setWordSpacing
Sets the CSSword-spacingproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setWordWrap
Sets the CSSword-wrapproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setWordWrap
Sets the CSSword-wrapproperty.- Parameters:
attrValue- The word wrap value.- Returns:
- This instance for method chaining.
-
setTextSelectDisabled
Sets the CSStext-select-disabledproperty.- Parameters:
flag-trueto enable,falseto disable.- Returns:
- This instance for method chaining.
-
setBackfaceVisibility
Sets the CSSbackface-visibilityproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setBackfaceVisibility
Sets the CSSbackface-visibilityproperty.- Parameters:
attrValue- The backface visibility value.- Returns:
- This instance for method chaining.
-
setPerspective
Sets the CSSperspectiveproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPerspective
Sets the CSSperspectiveproperty in pixels.- Parameters:
pixels- The value in pixels.- Returns:
- This instance for method chaining.
-
setPerspective
Sets the CSSperspectiveproperty using a CSS unit value.- Parameters:
units- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setPerspectiveOrigin
Sets the CSSperspective-originproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setPerspectiveOrigin
Sets the CSSperspective-originproperty.- Parameters:
xAxis- The x axis value.yAxis- The y axis value.- Returns:
- This instance for method chaining.
-
setPerspectiveOrigin
Sets the CSSperspective-originproperty.- Parameters:
xAxis- The value as a CSS unit.yAxis- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setPerspectiveOrigin
Sets the CSSperspective-originproperty.- Parameters:
xAxis- The origin value.yAxis- The origin value.- Returns:
- This instance for method chaining.
-
setTransform
Sets the CSStransformproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTransform
Sets the CSStransformproperty from aTransformbuilder.- Parameters:
transform- the Transform builder containing the functions to apply.- Returns:
- This instance for method chaining.
- See Also:
-
setTranslateX
Sets thetranslateX()function within the CSStransformproperty.- Parameters:
value- the CSS length value (e.g.,"50px","10%").- Returns:
- This instance for method chaining.
-
setTranslateY
Sets thetranslateY()function within the CSStransformproperty.- Parameters:
value- the CSS length value (e.g.,"50px","10%").- Returns:
- This instance for method chaining.
-
setTranslateZ
Sets thetranslateZ()function within the CSStransformproperty.- Parameters:
value- the CSS length value (e.g.,"50px").- Returns:
- This instance for method chaining.
-
setRotate
Sets therotate()function within the CSStransformproperty.- Parameters:
degrees- the rotation angle in degrees.- Returns:
- This instance for method chaining.
-
setRotate
Sets therotate()function within the CSStransformproperty.- Parameters:
value- the CSS angle value (e.g.,"45deg","0.5turn").- Returns:
- This instance for method chaining.
-
setScale
Sets thescale()function within the CSStransformproperty.- Parameters:
value- the scale factor (e.g.,1.5ffor 150%).- Returns:
- This instance for method chaining.
-
setScale
Sets thescale()function within the CSStransformproperty.- Parameters:
value- the CSS scale value (e.g.,"1.5","2, 0.5").- Returns:
- This instance for method chaining.
-
setSkewX
Sets theskewX()function within the CSStransformproperty.- Parameters:
value- the CSS angle value (e.g.,"15deg").- Returns:
- This instance for method chaining.
-
setSkewY
Sets theskewY()function within the CSStransformproperty.- Parameters:
value- the CSS angle value (e.g.,"15deg").- Returns:
- This instance for method chaining.
-
setTransformOrigin
Sets the CSStransform-originproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTransformOrigin
Sets the CSStransform-originproperty.- Parameters:
xAxis- The x axis value.yAxis- The y axis value.zAxis- The z axis value.- Returns:
- This instance for method chaining.
-
setTransformOrigin
Sets the CSStransform-originproperty.- Parameters:
xAxis- The x axis value.yAxis- The y axis value.zAxis- The z axis value.- Returns:
- This instance for method chaining.
-
setTransformOrigin
Sets the CSStransform-originproperty.- Parameters:
xAxis- The value as a CSS unit.yAxis- The value as a CSS unit.zAxis- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setTransformOrigin
Sets the CSStransform-originproperty.- Parameters:
xAxis- The origin value.yAxis- The origin value.zAxis- The value as a CSS unit.- Returns:
- This instance for method chaining.
-
setTransformStyle
Sets the CSStransform-styleproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTransformStyle
Sets the CSStransform-styleproperty.- Parameters:
attrValue- The transform style value.- Returns:
- This instance for method chaining.
-
setTransition
Sets the CSStransitionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTransitionProperty
Sets the CSStransition-propertyproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTransitionDuration
Sets the CSStransition-durationproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTransitionDuration
Sets the CSStransition-durationproperty.- Parameters:
secs- The float value.- Returns:
- This instance for method chaining.
-
setTransitionDuration
Sets the CSStransition-durationproperty.- Parameters:
msecs- The long value.- Returns:
- This instance for method chaining.
-
setTransitionTimingFunction
Sets the CSStransition-timing-functionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTransitionTimingFunction
Sets the CSStransition-timing-functionproperty.- Parameters:
attrValue- The transition timing function value.- Returns:
- This instance for method chaining.
-
setTransitionTimingFunction
Sets the CSStransition-timing-functionproperty.- Parameters:
intervals- The number of intervals.start-trueto start the steps from the beginning.- Returns:
- This instance for method chaining.
-
setTransitionTimingFunction
Sets the CSStransition-timing-functionproperty.- Parameters:
n1- The first cubic-bezier control point value.n2- The second cubic-bezier control point value.n3- The third cubic-bezier control point value.n4- The fourth cubic-bezier control point value.- Returns:
- This instance for method chaining.
-
setTransitionDelay
Sets the CSStransition-delayproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTransitionDelay
Sets the CSStransition-delayproperty.- Parameters:
secs- The secs value.- Returns:
- This instance for method chaining.
-
setTransitionDelay
Sets the CSStransition-delayproperty.- Parameters:
msecs- The long value.- Returns:
- This instance for method chaining.
-
setDirection
Sets the CSSdirectionproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setDirection
Sets the CSSdirectionproperty.- Parameters:
attrValue- The text direction value.- Returns:
- This instance for method chaining.
-
setTextOrientation
Sets the CSStext-orientationproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setTextCombineWeight
Sets the CSStext-combine-weightproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setUnicodeBidi
Sets the CSSunicode-bidiproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setUnicodeBidi
Sets the CSSunicode-bidiproperty.- Parameters:
attrValue- The unicode bidi value.- Returns:
- This instance for method chaining.
-
setWritingMode
Sets the CSSwriting-modeproperty.- Parameters:
attrValue- The CSS value.- Returns:
- This instance for method chaining.
-
setResizeToWindowHeight
public void setResizeToWindowHeight(int dy) Sets the CSSresize-to-window-heightproperty.- Parameters:
dy- The dy value.
-
setResizeToWindowHeight
Sets the CSSresize-to-window-heightproperty.- Parameters:
dy- The dy value.otherElementId- The other element id value.
-
setResizeToWindowWidth
public void setResizeToWindowWidth(int dx) Sets the CSSresize-to-window-widthproperty.- Parameters:
dx- The dx value.
-
setMinHeightToWindowHeight
public void setMinHeightToWindowHeight(int dy) Sets the CSSmin-height-to-window-heightproperty.- Parameters:
dy- The dy value.
-
setMinWidthToWindowWidth
public void setMinWidthToWindowWidth(int dx) Sets the CSSmin-width-to-window-widthproperty.- Parameters:
dx- The dx value.
-
setMaxHeightToWindowHeight
public void setMaxHeightToWindowHeight(int dy) Sets the CSSmax-height-to-window-heightproperty.- Parameters:
dy- The dy value.
-
setMaxWidthToWindowWidth
public void setMaxWidthToWindowWidth(int dx) Sets the CSSmax-width-to-window-widthproperty.- Parameters:
dx- The dx value.
-
getCssClass
Returns the class attribute value.- Returns:
- The CSS class string, or
nullif not set.
-
getStyle
Returns the inline CssStyle object for this element.- Returns:
- The element's CssStyle instance.
-
updateStyle
protected final void updateStyle() -
updateStyleIfChanged
protected final void updateStyleIfChanged()Updates the style attribute if any CSS properties have been modified.This method checks the internal modification flag of the CssStyle object and only triggers an update if actual changes occurred, preventing unnecessary browser updates.
-
updateStyle
protected final boolean updateStyle(boolean changeOccurred) Conditionally updates the element's style attribute if a change occurred.- Parameters:
changeOccurred-trueif a style change occurred that requires updating.- Returns:
- The value of
changeOccurredfor convenience.
-
getHtml
Generates the HTML representation of this element, including state-based styles and interactive cursor attributes.- Overrides:
getHtmlin classElement<T extends StyledElement<T>>- Parameters:
sb- The StringBuilder to append the HTML output to.
-
onShow
protected void onShow()Hook method called immediately whenshow()is invoked on this element.Unlike
Element.onShown(), this is called directly byshow()and does not cascade to children. Override this to perform actions specific to this element being explicitly shown. -
onHide
protected void onHide()Hook method called immediately whenhide()is invoked on this element.Unlike
Element.onHidden(), this is called directly byhide()and does not cascade to children. Override this to perform actions specific to this element being explicitly hidden. -
shown
protected final void shown()Handles the visibility cascade when this element becomes visible.Checks the current CSS display and visibility properties to confirm this element is actually shown. If so, calls
Element.onShown()on this element and then cascadesshown()to all child elements.- Overrides:
shownin classElement<T extends StyledElement<T>>
-
addTransition
Adds a transition to this element.Multiple transitions can be added and will play simultaneously when
transitionForward()ortransitionReverse()is called. No CSS is applied until a transition is triggered.- Parameters:
transition- the transition to add- Returns:
- this element for method chaining
-
clearTransitions
public void clearTransitions()Removes all transitions from this element.Clears the transition list, any saved snapshot, and removes the CSS
transitionproperty from the element's style. -
transitionForward
public void transitionForward()Plays all registered transitions forward.Snapshots the current values of all animated CSS properties, sets the CSS
transitionshorthand, then applies each transition's end state. The browser animates from the current values to the end-state values. -
transitionForward
public void transitionForward(long delayMs) Plays all registered transitions forward after a delay.Same as
transitionForward()but each transition includes the specified delay before starting. This is used byTransitionSequenceto stagger transitions across multiple elements.- Parameters:
delayMs- the delay in milliseconds before the transition starts
-
transitionReverse
public void transitionReverse()Plays all registered transitions in reverse, returning to the original state.Rebuilds the CSS
transitionshorthand and restores property values from the snapshot taken duringtransitionForward(). The browser animates from the current (end) state back to the original values.Has no effect if
transitionForward()has not been called. -
transitionReverse
public void transitionReverse(long delayMs) Plays all registered transitions in reverse after a delay.Same as
transitionReverse()but each transition includes the specified delay before starting.- Parameters:
delayMs- the delay in milliseconds before the reverse transition starts
-
isTransitionForwardActive
public boolean isTransitionForwardActive()Returns whether a forward transition is currently active on this element.- Returns:
- true if the element is in a transitioned-forward state
-
animate
Applies a CSS keyframe animation to this element.Injects the animation's
@keyframesdefinition into the page<head>(deduplicated by keyframes ID) and sets all animation CSS properties on this element's inline style.Note: This method requires the element to be attached to a page tree (i.e.,
getPage()must return non-null). For elements not yet attached, set the animation name on the inline style and inject keyframes manually increateHead()viahead.addCssStyleSheet(animation.getStyleSheet()).- Parameters:
animation- the animation to apply- Returns:
- this element for method chaining
- See Also:
-
stopAnimation
Stops any active CSS keyframe animation on this element.Removes the animation CSS properties from this element's inline style, causing the browser to stop the animation immediately.
- Returns:
- this element for method chaining
-
initialize
protected void initialize()Description copied from class:ElementHook method called during element initialization.Override this method to set up the element's structure by adding child elements. This is called before
Element.create()and only once during the element's lifecycle.- Overrides:
initializein classElement<T extends StyledElement<T>>
-
onRemovedFromPage
protected void onRemovedFromPage()Description copied from class:ElementHook method called when this element is removed from a page.Override this method to perform cleanup when the element is detached.
- Overrides:
onRemovedFromPagein classElement<T extends StyledElement<T>>
-