org.xhtmlrenderer.extend.ReplacedElementFactory
protected class TemplatePanel.TemplateSwingReplacedElementFactory
extends org.xhtmlrenderer.swing.SwingReplacedElementFactory
On Swing component creation, the initial value is set from the TemplatePanel property, if any. Also its listeners are set to update the corresponding TemplatePanel property when the component's contents was changed.
Modifier and Type | Class | Description |
---|---|---|
protected class |
TemplatePanel.TemplateSwingReplacedElementFactory.FormComponentListener |
Class that implements listeners for the form elements which update
the corresponding TemplatePanel property.
|
Constructor | Description |
---|---|
TemplateSwingReplacedElementFactory() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
bindProperty(Element e,
JComponent c) |
Add a listener that updates the properties bound to the
enclosing TemplatePane when the supplied component is changed.
|
org.xhtmlrenderer.extend.ReplacedElement |
createReplacedElement(org.xhtmlrenderer.layout.LayoutContext context,
org.xhtmlrenderer.render.BlockBox box,
org.xhtmlrenderer.extend.UserAgentCallback uac,
int cssWidth,
int cssHeight) |
|
String |
getSelectValue(Object obj) |
Helper method to read value from private
SelectField.NameValuePair object |
void |
reset() |
public org.xhtmlrenderer.extend.ReplacedElement createReplacedElement(org.xhtmlrenderer.layout.LayoutContext context, org.xhtmlrenderer.render.BlockBox box, org.xhtmlrenderer.extend.UserAgentCallback uac, int cssWidth, int cssHeight)
createReplacedElement
in interface org.xhtmlrenderer.extend.ReplacedElementFactory
createReplacedElement
in class org.xhtmlrenderer.swing.SwingReplacedElementFactory
public void reset()
reset
in interface org.xhtmlrenderer.extend.ReplacedElementFactory
reset
in class org.xhtmlrenderer.swing.SwingReplacedElementFactory
protected void bindProperty(Element e, JComponent c)
Copyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.