public class FormEditor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FormEditor.EditNotify |
Constructor and Description |
---|
FormEditor(FormsControl formsControl,
java.awt.Window parentFrame,
FormDescription formDescription) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<ItemInformation> |
getAllFormInformations()
Extracts a fresh list of all item informations from the dialog.
|
java.util.ArrayList<ControlTitle> |
getControlTitles() |
FormDescription |
getFormDescription() |
ItemInformation |
getFormProperty(PropertyTypes propertyType)
Get a specific property.
|
FormsControl |
getFormsControl() |
java.awt.Window |
getParentFrame() |
java.util.Hashtable<PropertyTypes,ItemInformation> |
getPropertyInformation() |
PropertyPanel |
makePropertyPanel(PropertyTypes propertyType)
Create the right type of panel for the given property
|
void |
previewForm()
Create a temporary preview of a form during the design phase.
|
void |
setFormProperty(PropertyTypes propertyType,
ItemInformation itemInformation)
Set a form property.
|
public FormEditor(FormsControl formsControl, java.awt.Window parentFrame, FormDescription formDescription)
public java.util.ArrayList<ControlTitle> getControlTitles()
public java.util.Hashtable<PropertyTypes,ItemInformation> getPropertyInformation()
public ItemInformation getFormProperty(PropertyTypes propertyType)
Since not all properties will be set, null will often be returned which equivalent to it not being selected.
propertyType
- Property to fetchpublic void setFormProperty(PropertyTypes propertyType, ItemInformation itemInformation)
propertyType
- property to set.itemInformation
- description of the property or nullpublic java.awt.Window getParentFrame()
public FormsControl getFormsControl()
public FormDescription getFormDescription()
public PropertyPanel makePropertyPanel(PropertyTypes propertyType)
propertyType
- public void previewForm()
public java.util.ArrayList<ItemInformation> getAllFormInformations()
This is put pack into a single list since that's the way that the FormDescription originally received it. Note entirely efficient, but