java.lang.Object
org.xhtmlrenderer.swt.FormControlReplacementElement
- All Implemented Interfaces:
org.xhtmlrenderer.extend.ReplacedElement
public class FormControlReplacementElement
extends Object
implements org.xhtmlrenderer.extend.ReplacedElement
ReplacementElement for a FormControl.
- Author:
- Vianney le Clément
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateSize(org.xhtmlrenderer.layout.LayoutContext c, org.xhtmlrenderer.css.style.CalculatedStyle style, int cssWidth, int cssHeight) Recalculate the size of the control based on the css lengths.voiddetach(org.xhtmlrenderer.layout.LayoutContext c) intintintbooleanbooleanvoidsetLocation(int x, int y)
-
Constructor Details
-
FormControlReplacementElement
-
-
Method Details
-
getControl
-
detach
public void detach(org.xhtmlrenderer.layout.LayoutContext c) - Specified by:
detachin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeightin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidthin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
calculateSize
public void calculateSize(org.xhtmlrenderer.layout.LayoutContext c, org.xhtmlrenderer.css.style.CalculatedStyle style, int cssWidth, int cssHeight) Recalculate the size of the control based on the css lengths. These lengths can be -1 if the size has to be determined automatically. -
getLocation
- Specified by:
getLocationin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
setLocation
public void setLocation(int x, int y) - Specified by:
setLocationin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()- Specified by:
isRequiresInteractivePaintin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
getBaseline
public int getBaseline()- Specified by:
getBaselinein interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
hasBaseline
public boolean hasBaseline()- Specified by:
hasBaselinein interfaceorg.xhtmlrenderer.extend.ReplacedElement
-