public abstract class AbstractJDynForm extends Object implements JDynForm
JDynForm.JDynFormListener
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger |
protected DynObject |
values |
USE_PLAIN, USE_SEPARATORS, USE_TABS, USE_TREE
Constructor and Description |
---|
AbstractJDynForm(DynFormManager manager,
DynFormDefinition definition) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getValue, getValues, hasValidValues, hasValidValues, isModified, setValue, setValues
protected static final Logger logger
protected DynObject values
public AbstractJDynForm(DynFormManager manager, DynFormDefinition definition) throws ServiceException
ServiceException
public static int getLayoutFromTags(Tags tags)
public void loadDefaultValuesFromTags(Tags tags)
public DynFormSPIManager getServiceManager()
public JComponent asJComponent()
Component
JComponent
.asJComponent
in interface Component
JComponent
protected void initComponents()
protected boolean isContentsInitialized()
public void addListener(JDynForm.JDynFormListener listener)
addListener
in interface JDynForm
public void removeListener(JDynForm.JDynFormListener listener)
removeListener
in interface JDynForm
public JLabel getMessagesJLabel()
public void setShowMessageStatus(boolean showMessageStatus)
setShowMessageStatus
in interface JDynForm
public boolean isShowMessageStatus()
isShowMessageStatus
in interface JDynForm
protected void fireMessageEvent(String message)
protected void fireFieldChangeEvent(JDynFormField field)
protected JPanel addScrollsAndMessageBar(JComponent formPanel)
public int getLayoutMode()
getLayoutMode
in interface JDynForm
public void setLayoutMode(int layoutMode)
setLayoutMode
in interface JDynForm
public boolean isReadOnly()
isReadOnly
in interface JDynForm
public void setReadOnly(boolean readOnly)
setReadOnly
in interface JDynForm
public int getFormWidth()
getFormWidth
in interface JDynForm
public int getFormHeight()
getFormHeight
in interface JDynForm
public void setFormSize(int width, int height)
setFormSize
in interface JDynForm
public void addActionToPopupMenu(DataType tipo, String name, Action action)
addActionToPopupMenu
in interface JDynForm
public void addSeparatorToPopupMenu(DataType tipo)
addSeparatorToPopupMenu
in interface JDynForm
public DynFormDefinition getDefinition()
getDefinition
in interface JDynForm
public boolean getUseScrollBars()
getUseScrollBars
in interface JDynForm
public void setUseScrollBars(boolean usesScrolls)
setUseScrollBars
in interface JDynForm
public void setBorder(boolean border)
public JDynFormField getField(String fieldName)
protected abstract JComponent getFieldsContainer()