Class FormControlReplacementElement

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 Details

    • FormControlReplacementElement

      public FormControlReplacementElement(SWTFormControl swtControl)
  • Method Details

    • getControl

      public SWTFormControl getControl()
    • detach

      public void detach(org.xhtmlrenderer.layout.LayoutContext c)
      Specified by:
      detach in interface org.xhtmlrenderer.extend.ReplacedElement
    • getIntrinsicHeight

      public int getIntrinsicHeight()
      Specified by:
      getIntrinsicHeight in interface org.xhtmlrenderer.extend.ReplacedElement
    • getIntrinsicWidth

      public int getIntrinsicWidth()
      Specified by:
      getIntrinsicWidth in interface org.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

      public Point getLocation()
      Specified by:
      getLocation in interface org.xhtmlrenderer.extend.ReplacedElement
    • setLocation

      public void setLocation(int x, int y)
      Specified by:
      setLocation in interface org.xhtmlrenderer.extend.ReplacedElement
    • isRequiresInteractivePaint

      public boolean isRequiresInteractivePaint()
      Specified by:
      isRequiresInteractivePaint in interface org.xhtmlrenderer.extend.ReplacedElement
    • getBaseline

      public int getBaseline()
      Specified by:
      getBaseline in interface org.xhtmlrenderer.extend.ReplacedElement
    • hasBaseline

      public boolean hasBaseline()
      Specified by:
      hasBaseline in interface org.xhtmlrenderer.extend.ReplacedElement