|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.config.base.BaseConfigurationImpl
com.ibm.di.config.base.FormConfigImpl
public class FormConfigImpl
Implementation of the configuration of a Form that can be displayed by the Configuration Editor
Field Summary |
---|
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl |
---|
NAME |
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration |
---|
CHILD_PATH_SEPARATOR, DISABLE_EXTPROPS, DISABLE_INHERITANCE, INHERIT_NONE, INHERIT_PARENT, ONE_LEVEL, RECURSIVE, RECURSIVE_ONELEVEL, RECURSIVE_SUBTREE, SEARCH_EXACTCASE, SEARCH_ONELEVEL, SEARCH_PARAMNAME, SEARCH_PARAMNAME_RE, SEARCH_PROPERTY, SEARCH_REGEX, SEARCH_SUBSTRING, SUBTREE |
Constructor Summary | |
---|---|
FormConfigImpl()
|
|
FormConfigImpl(java.lang.Object obj)
|
Method Summary | |
---|---|
void |
addFormItem(FormItemConfig item)
Add a FormItem definition to this FormConfig |
void |
addSection(FormSection section)
Add a FormSection definition to this FormConfig |
java.lang.Object |
getClone()
Return self clone |
java.lang.String |
getFormEventHandler()
/** Get the script that handles events in this FormConfig. |
FormItemConfig |
getFormItem(java.lang.String name)
Get a FormItem defined by this FormConfig. |
java.util.List<java.lang.String> |
getFormItemNames()
Returns a list of the names of all the FormItems in this FormConfig. |
java.lang.String |
getFormScript()
Get the script that will be executed every time a button is pressed. |
int |
getHeight(int h)
Get the preferred height of this Form. |
java.util.Iterator<java.lang.String> |
getLocalFormItemNames()
Returns an Iterator over names of FormItems defined in this FormConfig. |
FormSection |
getSection(java.lang.String name)
Get the FormSection with the given name. |
java.util.List<java.lang.String> |
getSectionNames()
Get a list of the names of all Sections used by this FormConfig, if defined. |
java.util.List<java.lang.String> |
getTabNames()
Get names of tabs. |
java.lang.String |
getTabTitle(java.lang.String name)
Get Title for one tab. |
java.lang.String |
getTabToolTip(java.lang.String name)
Get Tooltip for one tab. |
java.lang.String |
getTitle()
Get the title of this FormConfig. |
java.lang.String |
getTranslationFile()
Get the name of the translation file. |
java.lang.String |
getUIClass()
Get the name of a UI class that will be used to display the form. |
boolean |
getUseHyperLabel()
Return true if this FormConfig uses hyperlabels |
boolean |
getUseTabs()
Return true if this form uses tabs. |
int |
getWidth(int w)
Get the preferred width of this Form. |
void |
init()
Called after internal data structure is set. |
FormItemConfig |
newFormItem(java.lang.String name)
Create a new FormItem with the given name |
void |
removeFormItem(java.lang.String name)
Remove the FormItem with the given name |
void |
renameFormItem(java.lang.String oldName,
java.lang.String newName)
Rename a FormItem. |
void |
setTranslationFile(java.lang.String name)
Set the name of the translation file. |
java.lang.String |
translate(java.lang.String str)
Translate a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FormConfigImpl()
public FormConfigImpl(java.lang.Object obj)
Method Detail |
---|
public void init()
BaseConfigurationImpl
init
in interface BaseConfiguration
init
in class BaseConfigurationImpl
public java.util.List<java.lang.String> getFormItemNames()
FormConfig
getFormItemNames
in interface FormConfig
public java.util.Iterator<java.lang.String> getLocalFormItemNames()
FormConfig
getLocalFormItemNames
in interface FormConfig
public FormItemConfig getFormItem(java.lang.String name)
FormConfig
getFormItem
in interface FormConfig
name
- The name of the FormItempublic FormItemConfig newFormItem(java.lang.String name)
FormConfig
newFormItem
in interface FormConfig
name
- The name of the FormItempublic void addFormItem(FormItemConfig item)
FormConfig
addFormItem
in interface FormConfig
public void addSection(FormSection section)
FormConfig
addSection
in interface FormConfig
public void removeFormItem(java.lang.String name)
FormConfig
removeFormItem
in interface FormConfig
name
- The name of the FormItempublic void renameFormItem(java.lang.String oldName, java.lang.String newName)
FormConfig
renameFormItem
in interface FormConfig
oldName
- The old name of the FormItemnewName
- The new name of the FormItempublic java.util.List<java.lang.String> getSectionNames()
FormConfig
getSectionNames
in interface FormConfig
public FormSection getSection(java.lang.String name)
FormConfig
getSection
in interface FormConfig
name
- The name of the FormSectionpublic java.lang.Object getClone() throws java.lang.Exception
getClone
in interface BaseConfiguration
getClone
in class BaseConfigurationImpl
java.lang.Exception
public java.lang.String getFormEventHandler()
FormConfig
getFormEventHandler
in interface FormConfig
public java.lang.String getFormScript()
FormConfig
getFormScript
in interface FormConfig
public java.lang.String getTitle()
FormConfig
getTitle
in interface FormConfig
public java.lang.String getUIClass()
FormConfig
getUIClass
in interface FormConfig
public int getWidth(int w)
FormConfig
getWidth
in interface FormConfig
w
- Use this width if no width definedpublic int getHeight(int h)
FormConfig
getHeight
in interface FormConfig
h
- Use this height if no height defined.public boolean getUseHyperLabel()
FormConfig
getUseHyperLabel
in interface FormConfig
public boolean getUseTabs()
FormConfig
getUseTabs
in interface FormConfig
public java.util.List<java.lang.String> getTabNames()
FormConfig
getTabNames
in interface FormConfig
public java.lang.String getTabTitle(java.lang.String name)
FormConfig
getTabTitle
in interface FormConfig
name
- Name of the tabpublic java.lang.String getTabToolTip(java.lang.String name)
FormConfig
getTabToolTip
in interface FormConfig
name
- Name of the tabpublic java.lang.String getTranslationFile()
FormConfig
getTranslationFile
in interface FormConfig
public void setTranslationFile(java.lang.String name)
FormConfig
setTranslationFile
in interface FormConfig
public java.lang.String translate(java.lang.String str)
FormConfig
translate
in interface FormConfig
str
- The string to be translated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |