Package com.ibm.di.config.base
Class FormItemConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.FormItemConfigImpl
-
- All Implemented Interfaces:
BaseConfiguration,FormItemConfig,MetamergeConfigChangeListener,java.io.Serializable
public class FormItemConfigImpl extends BaseConfigurationImpl implements FormItemConfig
Implementation of one item in aFormConfigImpl- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description FormItemConfigImpl()FormItemConfigImpl(java.lang.Object config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.String name)Generic getjava.lang.StringgetComponentClass()Return the name of the Component class that should be used for this formitem.java.lang.StringgetDefaultValue()Get the default value for this FormItem.booleangetDontProtect()Return true if this FormItem should not be protected.FormConfiggetForm()Returns the FormConfig this FormItem is part of.java.lang.StringgetLabel()Get the label for this FormItemjava.lang.StringgetLeadText()Return the lead-in text, to be used in addition to the labeljava.util.List<java.lang.String>getLocalizedValues()Get the localized values for this FormItem.intgetMaxValue()Return the maximun value for this FormItem.intgetMinValue()Return the minimun value for this FormItem.java.lang.StringgetReflect()Return the name of the method to set/get this FormItem.java.lang.StringgetScript()Gets the script attribute of this object.java.lang.StringgetScript2()Get script to be executed for a 2nd button in this FormItemjava.lang.StringgetScriptLabel()Get label for a button in this FormItemjava.lang.StringgetScriptLabel2()Get label for a 2nd button in this FormItemjava.lang.StringgetScriptToolTip()Get tooltip for a button in this FormItemjava.lang.StringgetScriptToolTip2()Get tooltip for a 2nd button in this FormItemintgetSize()Return the size of this FormItem, as number of characters If nothing specified, return 0.java.lang.StringgetSyntax()Get the syntax of this FormItemjava.lang.StringgetToolTip()Get the ToolTip for this FormItemjava.util.List<java.lang.String>getValues()Get the possible values for this FormItem.booleanisExpression()Return true if this FormItem is an expressionbooleanisHelp()Return true if this is a help itembooleanisIndexBased()Is this FormItem indexBased?booleanisReadOnly()Is this FormItem readOnly?booleanisRequired()Return true if this FormItem is a required parameterbooleanisValidForMode(java.lang.String mode)Returns whether this FormItem is valid for a particular mode.voidsetDefaultValue(java.lang.String str)Set the default value for this FormItem.voidsetForm(FormConfig form)Set the FormConfig this FormItem is part of.voidsetIndexBased(boolean value)Set whether this FormItem should be indexbased.voidsetLabel(java.lang.String str)Set the label for this FormItemvoidsetLeadText(java.lang.String text)Set the lead-in text, to be used in addition to the labelvoidsetLocalizedValues(java.util.Map map)Set the localized values for this FormItem.voidsetRequired(boolean value)Set whether this FormItem is a required parametervoidsetScript(java.lang.String str)Sets the script attribute of this object.voidsetScript2(java.lang.String str)voidsetScriptLabel(java.lang.String str)voidsetScriptLabel2(java.lang.String str)voidsetScriptToolTip(java.lang.String str)voidsetScriptToolTip2(java.lang.String str)voidsetSyntax(java.lang.String str)Set the syntax of this FormItemvoidsetToolTip(java.lang.String str)Set the ToolTip for this FormItem.voidsetValues(java.util.Vector values)Set the possible values for this FormItem.-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getLongName, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseConfigListeners, getUseListeners, getUserComment, hasParameter, init, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseConfigListeners, setUseListeners, setUserComment, size, toEntry, toString, updateInheritsFrom, willExpandProps, willFlatten, willUseInherited
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
addListener, detachFromParent, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, init, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
-
-
-
-
Method Detail
-
setForm
public void setForm(FormConfig form)
Description copied from interface:FormItemConfigSet the FormConfig this FormItem is part of.- Specified by:
setFormin interfaceFormItemConfig- Parameters:
form- The FormConfig
-
getForm
public FormConfig getForm()
Description copied from interface:FormItemConfigReturns the FormConfig this FormItem is part of.- Specified by:
getFormin interfaceFormItemConfig
-
getValues
public java.util.List<java.lang.String> getValues()
Description copied from interface:FormItemConfigGet the possible values for this FormItem.- Specified by:
getValuesin interfaceFormItemConfig
-
getLocalizedValues
public java.util.List<java.lang.String> getLocalizedValues()
Description copied from interface:FormItemConfigGet the localized values for this FormItem. The values are the same length, and have the same order as getValues(). This is only useful for a droplist- Specified by:
getLocalizedValuesin interfaceFormItemConfig
-
setLocalizedValues
public void setLocalizedValues(java.util.Map map)
Description copied from interface:FormItemConfigSet the localized values for this FormItem.- Specified by:
setLocalizedValuesin interfaceFormItemConfig- Parameters:
map- maps from real values to localized Values.
-
setValues
public void setValues(java.util.Vector values)
Description copied from interface:FormItemConfigSet the possible values for this FormItem.- Specified by:
setValuesin interfaceFormItemConfig- Parameters:
values- The new values
-
getSyntax
public java.lang.String getSyntax()
Description copied from interface:FormItemConfigGet the syntax of this FormItem- Specified by:
getSyntaxin interfaceFormItemConfig
-
setSyntax
public void setSyntax(java.lang.String str)
Description copied from interface:FormItemConfigSet the syntax of this FormItem- Specified by:
setSyntaxin interfaceFormItemConfig- Parameters:
str- The new syntax
-
getLabel
public java.lang.String getLabel()
Description copied from interface:FormItemConfigGet the label for this FormItem- Specified by:
getLabelin interfaceFormItemConfig
-
setLabel
public void setLabel(java.lang.String str)
Description copied from interface:FormItemConfigSet the label for this FormItem- Specified by:
setLabelin interfaceFormItemConfig- Parameters:
str- The new label
-
getToolTip
public java.lang.String getToolTip()
Description copied from interface:FormItemConfigGet the ToolTip for this FormItem- Specified by:
getToolTipin interfaceFormItemConfig
-
setToolTip
public void setToolTip(java.lang.String str)
Description copied from interface:FormItemConfigSet the ToolTip for this FormItem.- Specified by:
setToolTipin interfaceFormItemConfig- Parameters:
str- The new ToolTip
-
getDefaultValue
public java.lang.String getDefaultValue()
Description copied from interface:FormItemConfigGet the default value for this FormItem. null means no default.- Specified by:
getDefaultValuein interfaceFormItemConfig
-
setDefaultValue
public void setDefaultValue(java.lang.String str)
Description copied from interface:FormItemConfigSet the default value for this FormItem.- Specified by:
setDefaultValuein interfaceFormItemConfig- Parameters:
str- The new default value
-
getScript
public java.lang.String getScript()
Description copied from class:BaseConfigurationImplGets the script attribute of this object.- Specified by:
getScriptin interfaceBaseConfiguration- Specified by:
getScriptin interfaceFormItemConfig- Overrides:
getScriptin classBaseConfigurationImpl- Returns:
- The script value.
-
setScript
public void setScript(java.lang.String str)
Description copied from class:BaseConfigurationImplSets the script attribute of this object.- Specified by:
setScriptin interfaceBaseConfiguration- Overrides:
setScriptin classBaseConfigurationImpl- Parameters:
str- The new script value
-
getScriptLabel
public java.lang.String getScriptLabel()
Description copied from interface:FormItemConfigGet label for a button in this FormItem- Specified by:
getScriptLabelin interfaceFormItemConfig
-
setScriptLabel
public void setScriptLabel(java.lang.String str)
-
getScriptToolTip
public java.lang.String getScriptToolTip()
Description copied from interface:FormItemConfigGet tooltip for a button in this FormItem- Specified by:
getScriptToolTipin interfaceFormItemConfig
-
setScriptToolTip
public void setScriptToolTip(java.lang.String str)
-
getScript2
public java.lang.String getScript2()
Description copied from interface:FormItemConfigGet script to be executed for a 2nd button in this FormItem- Specified by:
getScript2in interfaceFormItemConfig
-
setScript2
public void setScript2(java.lang.String str)
-
getScriptLabel2
public java.lang.String getScriptLabel2()
Description copied from interface:FormItemConfigGet label for a 2nd button in this FormItem- Specified by:
getScriptLabel2in interfaceFormItemConfig
-
setScriptLabel2
public void setScriptLabel2(java.lang.String str)
-
getScriptToolTip2
public java.lang.String getScriptToolTip2()
Description copied from interface:FormItemConfigGet tooltip for a 2nd button in this FormItem- Specified by:
getScriptToolTip2in interfaceFormItemConfig
-
setScriptToolTip2
public void setScriptToolTip2(java.lang.String str)
-
isExpression
public boolean isExpression()
Description copied from interface:FormItemConfigReturn true if this FormItem is an expression- Specified by:
isExpressionin interfaceFormItemConfig
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:FormItemConfigIs this FormItem readOnly?- Specified by:
isReadOnlyin interfaceFormItemConfig
-
isIndexBased
public boolean isIndexBased()
Description copied from interface:FormItemConfigIs this FormItem indexBased?- Specified by:
isIndexBasedin interfaceFormItemConfig
-
setIndexBased
public void setIndexBased(boolean value)
Description copied from interface:FormItemConfigSet whether this FormItem should be indexbased.- Specified by:
setIndexBasedin interfaceFormItemConfig- Parameters:
value- True if this FormItem should be indexbased.
-
getDontProtect
public boolean getDontProtect()
Description copied from interface:FormItemConfigReturn true if this FormItem should not be protected. That means that the value should be stored in cleartext in the config file, even if the syntax is "Password". The default value is false, that is, protect the value of passwords.- Specified by:
getDontProtectin interfaceFormItemConfig
-
getComponentClass
public java.lang.String getComponentClass()
Description copied from interface:FormItemConfigReturn the name of the Component class that should be used for this formitem. Used if syntax = "COMPONENT"- Specified by:
getComponentClassin interfaceFormItemConfig
-
getReflect
public java.lang.String getReflect()
Description copied from interface:FormItemConfigReturn the name of the method to set/get this FormItem. set/get is supposed to be prefixed to the String to get the method.- Specified by:
getReflectin interfaceFormItemConfig
-
getMinValue
public int getMinValue()
Description copied from interface:FormItemConfigReturn the minimun value for this FormItem. default is Integer.MIN_VALUE;- Specified by:
getMinValuein interfaceFormItemConfig
-
getMaxValue
public int getMaxValue()
Description copied from interface:FormItemConfigReturn the maximun value for this FormItem. default is Integer.MAX_VALUE;- Specified by:
getMaxValuein interfaceFormItemConfig
-
get
public java.lang.Object get(java.lang.String name)
Description copied from interface:FormItemConfigGeneric get- Specified by:
getin interfaceFormItemConfig
-
getSize
public int getSize()
Description copied from interface:FormItemConfigReturn the size of this FormItem, as number of characters If nothing specified, return 0.- Specified by:
getSizein interfaceFormItemConfig
-
isHelp
public boolean isHelp()
Description copied from interface:FormItemConfigReturn true if this is a help item- Specified by:
isHelpin interfaceFormItemConfig
-
isRequired
public boolean isRequired()
Description copied from interface:FormItemConfigReturn true if this FormItem is a required parameter- Specified by:
isRequiredin interfaceFormItemConfig
-
setRequired
public void setRequired(boolean value)
Description copied from interface:FormItemConfigSet whether this FormItem is a required parameter- Specified by:
setRequiredin interfaceFormItemConfig- Parameters:
value- True if this FormItem is a required parameter
-
getLeadText
public java.lang.String getLeadText()
Description copied from interface:FormItemConfigReturn the lead-in text, to be used in addition to the label- Specified by:
getLeadTextin interfaceFormItemConfig
-
setLeadText
public void setLeadText(java.lang.String text)
Description copied from interface:FormItemConfigSet the lead-in text, to be used in addition to the label- Specified by:
setLeadTextin interfaceFormItemConfig- Parameters:
text- The new lead-in text
-
isValidForMode
public boolean isValidForMode(java.lang.String mode)
Description copied from interface:FormItemConfigReturns whether this FormItem is valid for a particular mode.- Specified by:
isValidForModein interfaceFormItemConfig- Parameters:
mode- The mode- Returns:
- true if the FormItem is valid for the mode.
-
-