Class FormControlReplacementElement
java.lang.Object
org.xhtmlrenderer.swt.FormControlReplacementElement
- All Implemented Interfaces:
ReplacedElement
ReplacementElement for a FormControl.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final Pointprivate final SWTFormControlprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateSize(LayoutContext c, CalculatedStyle style, int cssWidth, int cssHeight) Recalculate the size of the control based on the css lengths.voidintintintReturns the current location where the element will be rendered on the canvasbooleanbooleanvoidsetLocation(int x, int y) Assigns the new locations where the element will be rendered.
-
Field Details
-
_swtControl
-
_location
-
_width
private int _width -
_height
private int _height
-
-
Constructor Details
-
FormControlReplacementElement
-
-
Method Details
-
getControl
-
detach
- Specified by:
detachin interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeightin interfaceReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidthin interfaceReplacedElement
-
calculateSize
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
Description copied from interface:ReplacedElementReturns the current location where the element will be rendered on the canvas- Specified by:
getLocationin interfaceReplacedElement
-
setLocation
public void setLocation(int x, int y) Description copied from interface:ReplacedElementAssigns the new locations where the element will be rendered.- Specified by:
setLocationin interfaceReplacedElement- Parameters:
x- new horizontal positiony- new vertical position
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()- Specified by:
isRequiresInteractivePaintin interfaceReplacedElement
-
getBaseline
public int getBaseline()- Specified by:
getBaselinein interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()- Specified by:
hasBaselinein interfaceReplacedElement
-