Package org.xhtmlrenderer.swt
Class FormControlReplacementElement
java.lang.Object
org.xhtmlrenderer.swt.FormControlReplacementElement
- All Implemented Interfaces:
ReplacedElement
ReplacementElement for a FormControl.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final Point
private final SWTFormControl
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
calculateSize
(LayoutContext c, CalculatedStyle style, int cssWidth, int cssHeight) Recalculate the size of the control based on the css lengths.void
int
int
int
Returns the current location where the element will be rendered on the canvasboolean
boolean
void
setLocation
(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:
detach
in interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeight
in interfaceReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidth
in 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:ReplacedElement
Returns the current location where the element will be rendered on the canvas- Specified by:
getLocation
in interfaceReplacedElement
-
setLocation
public void setLocation(int x, int y) Description copied from interface:ReplacedElement
Assigns the new locations where the element will be rendered.- Specified by:
setLocation
in interfaceReplacedElement
- Parameters:
x
- new horizontal positiony
- new vertical position
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()- Specified by:
isRequiresInteractivePaint
in interfaceReplacedElement
-
getBaseline
public int getBaseline()- Specified by:
getBaseline
in interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()- Specified by:
hasBaseline
in interfaceReplacedElement
-