Package org.xhtmlrenderer.swt.simple
Class SWTXhtmlControl
java.lang.Object
org.xhtmlrenderer.swt.simple.SWTXhtmlControl
- All Implemented Interfaces:
SWTFormControl
- Direct Known Subclasses:
SWTButtonControl
,SWTCheckControl
,SWTSelectControl
,SWTTextControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.graphics.Color
private final FormControl
private org.eclipse.swt.graphics.Color
private final org.eclipse.swt.widgets.Control
-
Constructor Summary
ConstructorsConstructorDescriptionSWTXhtmlControl
(FormControl control, BasicRenderer parent, LayoutContext c, CalculatedStyle style, UserAgentCallback uac) -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.eclipse.swt.graphics.Color
createFromAWT
(org.eclipse.swt.graphics.Device device, FSColor fsColor) protected abstract org.eclipse.swt.widgets.Control
createSWTControl
(FormControl control, BasicRenderer parent, LayoutContext c, CalculatedStyle style, UserAgentCallback uac) void
dispose()
org.eclipse.swt.widgets.Control
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xhtmlrenderer.swt.simple.SWTFormControl
getIdealHeight, getIdealWidth
-
Field Details
-
_control
-
_swtControl
private final org.eclipse.swt.widgets.Control _swtControl -
_foreground
private org.eclipse.swt.graphics.Color _foreground -
_background
private org.eclipse.swt.graphics.Color _background
-
-
Constructor Details
-
SWTXhtmlControl
public SWTXhtmlControl(FormControl control, BasicRenderer parent, LayoutContext c, CalculatedStyle style, UserAgentCallback uac)
-
-
Method Details
-
createFromAWT
private static org.eclipse.swt.graphics.Color createFromAWT(org.eclipse.swt.graphics.Device device, FSColor fsColor) -
createSWTControl
protected abstract org.eclipse.swt.widgets.Control createSWTControl(FormControl control, BasicRenderer parent, LayoutContext c, CalculatedStyle style, UserAgentCallback uac) -
dispose
public void dispose()- Specified by:
dispose
in interfaceSWTFormControl
-
getSWTControl
public org.eclipse.swt.widgets.Control getSWTControl()- Specified by:
getSWTControl
in interfaceSWTFormControl
-
getFormControl
- Specified by:
getFormControl
in interfaceSWTFormControl
-