IDocumentContainer
ITemplatePanel
RequestWizard
, TemplateButtonPanel
, TemplatePanel
, TemplateWizard
public interface ITemplateContainer extends IDocumentContainer
TemplatePanel
methods related to the TemplateDocument
.Modifier and Type | Method | Description |
---|---|---|
Properties |
data() |
Return the properties.
|
boolean |
refresh() |
Refresh the contents so that all parsing is redone.
|
void |
setData(Properties p) |
Set the properties to use for the template and form elements.
|
void |
setDocument(TemplateDocument doc) |
Renders an ITemplateDocument instance.
|
void |
setSubmitAction(Action e) |
Set the action to perform on form submission.
|
getDocument, getDocumentTitle, getURL, reloadDocument, reloadDocument, setDocument, setDocument, setDocument, setDocument, setDocument, setDocument, setDocument, setDocumentFromString
void setData(Properties p)
Also reparses the document and updates the panel, if a template was set.
p
- New properties to setProperties data()
Use this to retrieve data from form elements. The name of each element has a corresponding property key, and the value of the property is updated when the form element changes.
void setDocument(TemplateDocument doc)
doc
- template to show, this will be processed with the data
supplied by this container.boolean refresh()
Note that the template may or may not be retrieved again from its source.
This happens automatically in setData(java.util.Properties)
and setDocument(nl.nikhef.xhtmlrenderer.swing.TemplateDocument)
.
void setSubmitAction(Action e)
If this is set to null, the standard behaviour is done: posting data to the url supplied by the form.
Copyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.