|
|||||||||||
| 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(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 |
Object |
getClone()
Return self clone |
String |
getFormEventHandler()
/** Get the script that handles events in this FormConfig. |
FormItemConfig |
getFormItem(String name)
Get a FormItem defined by this FormConfig. |
List<String> |
getFormItemNames()
Returns a list of the names of all the FormItems in this FormConfig. |
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. |
Iterator<String> |
getLocalFormItemNames()
Returns an Iterator over names of FormItems defined in this FormConfig. |
FormSection |
getSection(String name)
Get the FormSection with the given name. |
List<String> |
getSectionNames()
Get a list of the names of all Sections used by this FormConfig, if defined. |
List<String> |
getTabNames()
Get names of tabs. |
String |
getTabTitle(String name)
Get Title for one tab. |
String |
getTabToolTip(String name)
Get Tooltip for one tab. |
String |
getTitle()
Get the title of this FormConfig. |
String |
getTranslationFile()
Get the name of the translation file. |
String |
getTranslationLocale()
Returns Locale identifier (ISO lang code) to use when translating resources. |
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(String name)
Create a new FormItem with the given name |
void |
removeFormItem(String name)
Remove the FormItem with the given name |
void |
renameFormItem(String oldName,
String newName)
Rename a FormItem. |
void |
setTranslationFile(String name)
Set the name of the translation file. |
void |
setTranslationLocale(String locale)
Sets the preferred Locale to use when translating strings |
String |
translate(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(Object obj)
| Method Detail |
|---|
public void init()
BaseConfigurationImpl
init in interface BaseConfigurationinit in class BaseConfigurationImplpublic List<String> getFormItemNames()
FormConfig
getFormItemNames in interface FormConfigpublic Iterator<String> getLocalFormItemNames()
FormConfig
getLocalFormItemNames in interface FormConfigpublic FormItemConfig getFormItem(String name)
FormConfig
getFormItem in interface FormConfigname - The name of the FormItempublic FormItemConfig newFormItem(String name)
FormConfig
newFormItem in interface FormConfigname - The name of the FormItempublic void addFormItem(FormItemConfig item)
FormConfig
addFormItem in interface FormConfigpublic void addSection(FormSection section)
FormConfig
addSection in interface FormConfigpublic void removeFormItem(String name)
FormConfig
removeFormItem in interface FormConfigname - The name of the FormItem
public void renameFormItem(String oldName,
String newName)
FormConfig
renameFormItem in interface FormConfigoldName - The old name of the FormItemnewName - The new name of the FormItempublic List<String> getSectionNames()
FormConfig
getSectionNames in interface FormConfigpublic FormSection getSection(String name)
FormConfig
getSection in interface FormConfigname - The name of the FormSection
public Object getClone()
throws Exception
getClone in interface BaseConfigurationgetClone in class BaseConfigurationImplExceptionpublic String getFormEventHandler()
FormConfig
getFormEventHandler in interface FormConfigpublic String getFormScript()
FormConfig
getFormScript in interface FormConfigpublic String getTitle()
FormConfig
getTitle in interface FormConfigpublic String getUIClass()
FormConfig
getUIClass in interface FormConfigpublic int getWidth(int w)
FormConfig
getWidth in interface FormConfigw - Use this width if no width definedpublic int getHeight(int h)
FormConfig
getHeight in interface FormConfigh - Use this height if no height defined.public boolean getUseHyperLabel()
FormConfig
getUseHyperLabel in interface FormConfigpublic boolean getUseTabs()
FormConfig
getUseTabs in interface FormConfigpublic List<String> getTabNames()
FormConfig
getTabNames in interface FormConfigpublic String getTabTitle(String name)
FormConfig
getTabTitle in interface FormConfigname - Name of the tabpublic String getTabToolTip(String name)
FormConfig
getTabToolTip in interface FormConfigname - Name of the tabpublic String getTranslationFile()
FormConfig
getTranslationFile in interface FormConfigpublic void setTranslationFile(String name)
FormConfig
setTranslationFile in interface FormConfigpublic String translate(String str)
FormConfig
translate in interface FormConfigstr - The string to be translated
public void setTranslationLocale(String locale)
setTranslationLocale in interface FormConfigpublic String getTranslationLocale()
getTranslationLocale in interface FormConfig
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||