public class Button extends FormField<Button>
FormField class representing a button in html.tagPropertieschildElements, nextRenderer, stylesproperties| Constructor and Description |
|---|
Button(String id)
Creates a new
Button instance. |
| Modifier and Type | Method and Description |
|---|---|
Button |
add(IBlockElement element)
Adds any block element to the div's contents.
|
Button |
add(Image element)
Adds an image to the div's contents.
|
AccessibilityProperties |
getAccessibilityProperties() |
<T1> T1 |
getDefaultProperty(int property) |
boolean |
isSingleLine()
Indicates if this element represents an input with type button in html.
|
protected IRenderer |
makeNewRenderer() |
Button |
setSingleLineValue(String value)
Sets passed string value to the single line button caption.
|
IFormField |
setValue(String value)
Adds passed string value as paragraph to the button.
|
getId, setHeight, setInteractive, setSize, setWidthaddStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberdeleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing, simulateBold, simulateItalicclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildrencreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setPropertypublic Button add(IBlockElement element)
element - a BlockElementpublic Button add(Image element)
element - an Imagepublic boolean isSingleLine()
public Button setSingleLineValue(String value)
setValue(String). Note that when adding other elements to the button
after this method is called, this added value can be multiline.value - string value to be set as caption.Button instance.public IFormField setValue(String value)
setSingleLineValue(String). Note that the new value will replace all already added elements.setValue in interface IFormFieldsetValue in class FormField<Button>value - string value to be added into button.IFormField instancepublic <T1> T1 getDefaultProperty(int property)
getDefaultProperty in interface IPropertyContainergetDefaultProperty in class FormField<Button>property - public AccessibilityProperties getAccessibilityProperties()
protected IRenderer makeNewRenderer()
makeNewRenderer in class AbstractElement<Button>Copyright © 1998–2024 Apryse Group NV. All rights reserved.