Package org.xhtmlrenderer.swt
Class FormControlReplacementElement
- java.lang.Object
-
- org.xhtmlrenderer.swt.FormControlReplacementElement
-
- All Implemented Interfaces:
ReplacedElement
public class FormControlReplacementElement extends Object implements ReplacedElement
ReplacementElement for a FormControl.- Author:
- Vianney le Clément
-
-
Constructor Summary
Constructors Constructor Description FormControlReplacementElement(SWTFormControl swtControl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalculateSize(LayoutContext c, CalculatedStyle style, int cssWidth, int cssHeight)Recalculate the size of the control based on the css lengths.voiddetach(LayoutContext c)intgetBaseline()SWTFormControlgetControl()intgetIntrinsicHeight()intgetIntrinsicWidth()PointgetLocation()booleanhasBaseline()booleanisRequiresInteractivePaint()voidsetLocation(int x, int y)
-
-
-
Constructor Detail
-
FormControlReplacementElement
public FormControlReplacementElement(SWTFormControl swtControl)
-
-
Method Detail
-
getControl
public SWTFormControl getControl()
-
detach
public void detach(LayoutContext c)
- Specified by:
detachin interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeightin interfaceReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()
- Specified by:
getIntrinsicWidthin interfaceReplacedElement
-
calculateSize
public void calculateSize(LayoutContext c, 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
public Point getLocation()
- Specified by:
getLocationin interfaceReplacedElement
-
setLocation
public void setLocation(int x, int y)- Specified by:
setLocationin interfaceReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaintin interfaceReplacedElement
-
getBaseline
public int getBaseline()
- Specified by:
getBaselinein interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()
- Specified by:
hasBaselinein interfaceReplacedElement
-
-