Class FormItemConfigImpl

    • Constructor Detail

      • FormItemConfigImpl

        public FormItemConfigImpl()
      • FormItemConfigImpl

        public FormItemConfigImpl​(java.lang.Object config)
    • Method Detail

      • setForm

        public void setForm​(FormConfig form)
        Description copied from interface: FormItemConfig
        Set the FormConfig this FormItem is part of.
        Specified by:
        setForm in interface FormItemConfig
        Parameters:
        form - The FormConfig
      • getValues

        public java.util.List<java.lang.String> getValues()
        Description copied from interface: FormItemConfig
        Get the possible values for this FormItem.
        Specified by:
        getValues in interface FormItemConfig
      • getLocalizedValues

        public java.util.List<java.lang.String> getLocalizedValues()
        Description copied from interface: FormItemConfig
        Get 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:
        getLocalizedValues in interface FormItemConfig
      • setLocalizedValues

        public void setLocalizedValues​(java.util.Map map)
        Description copied from interface: FormItemConfig
        Set the localized values for this FormItem.
        Specified by:
        setLocalizedValues in interface FormItemConfig
        Parameters:
        map - maps from real values to localized Values.
      • setValues

        public void setValues​(java.util.Vector values)
        Description copied from interface: FormItemConfig
        Set the possible values for this FormItem.
        Specified by:
        setValues in interface FormItemConfig
        Parameters:
        values - The new values
      • getSyntax

        public java.lang.String getSyntax()
        Description copied from interface: FormItemConfig
        Get the syntax of this FormItem
        Specified by:
        getSyntax in interface FormItemConfig
      • setSyntax

        public void setSyntax​(java.lang.String str)
        Description copied from interface: FormItemConfig
        Set the syntax of this FormItem
        Specified by:
        setSyntax in interface FormItemConfig
        Parameters:
        str - The new syntax
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: FormItemConfig
        Get the label for this FormItem
        Specified by:
        getLabel in interface FormItemConfig
      • setLabel

        public void setLabel​(java.lang.String str)
        Description copied from interface: FormItemConfig
        Set the label for this FormItem
        Specified by:
        setLabel in interface FormItemConfig
        Parameters:
        str - The new label
      • getToolTip

        public java.lang.String getToolTip()
        Description copied from interface: FormItemConfig
        Get the ToolTip for this FormItem
        Specified by:
        getToolTip in interface FormItemConfig
      • setToolTip

        public void setToolTip​(java.lang.String str)
        Description copied from interface: FormItemConfig
        Set the ToolTip for this FormItem.
        Specified by:
        setToolTip in interface FormItemConfig
        Parameters:
        str - The new ToolTip
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Description copied from interface: FormItemConfig
        Get the default value for this FormItem. null means no default.
        Specified by:
        getDefaultValue in interface FormItemConfig
      • setDefaultValue

        public void setDefaultValue​(java.lang.String str)
        Description copied from interface: FormItemConfig
        Set the default value for this FormItem.
        Specified by:
        setDefaultValue in interface FormItemConfig
        Parameters:
        str - The new default value
      • setScriptLabel

        public void setScriptLabel​(java.lang.String str)
      • setScriptToolTip

        public void setScriptToolTip​(java.lang.String str)
      • getScript2

        public java.lang.String getScript2()
        Description copied from interface: FormItemConfig
        Get script to be executed for a 2nd button in this FormItem
        Specified by:
        getScript2 in interface FormItemConfig
      • setScript2

        public void setScript2​(java.lang.String str)
      • getScriptLabel2

        public java.lang.String getScriptLabel2()
        Description copied from interface: FormItemConfig
        Get label for a 2nd button in this FormItem
        Specified by:
        getScriptLabel2 in interface FormItemConfig
      • setScriptLabel2

        public void setScriptLabel2​(java.lang.String str)
      • setScriptToolTip2

        public void setScriptToolTip2​(java.lang.String str)
      • isExpression

        public boolean isExpression()
        Description copied from interface: FormItemConfig
        Return true if this FormItem is an expression
        Specified by:
        isExpression in interface FormItemConfig
      • setIndexBased

        public void setIndexBased​(boolean value)
        Description copied from interface: FormItemConfig
        Set whether this FormItem should be indexbased.
        Specified by:
        setIndexBased in interface FormItemConfig
        Parameters:
        value - True if this FormItem should be indexbased.
      • getDontProtect

        public boolean getDontProtect()
        Description copied from interface: FormItemConfig
        Return 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:
        getDontProtect in interface FormItemConfig
      • getComponentClass

        public java.lang.String getComponentClass()
        Description copied from interface: FormItemConfig
        Return the name of the Component class that should be used for this formitem. Used if syntax = "COMPONENT"
        Specified by:
        getComponentClass in interface FormItemConfig
      • getReflect

        public java.lang.String getReflect()
        Description copied from interface: FormItemConfig
        Return 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:
        getReflect in interface FormItemConfig
      • getMinValue

        public int getMinValue()
        Description copied from interface: FormItemConfig
        Return the minimun value for this FormItem. default is Integer.MIN_VALUE;
        Specified by:
        getMinValue in interface FormItemConfig
      • getMaxValue

        public int getMaxValue()
        Description copied from interface: FormItemConfig
        Return the maximun value for this FormItem. default is Integer.MAX_VALUE;
        Specified by:
        getMaxValue in interface FormItemConfig
      • get

        public java.lang.Object get​(java.lang.String name)
        Description copied from interface: FormItemConfig
        Generic get
        Specified by:
        get in interface FormItemConfig
      • getSize

        public int getSize()
        Description copied from interface: FormItemConfig
        Return the size of this FormItem, as number of characters If nothing specified, return 0.
        Specified by:
        getSize in interface FormItemConfig
      • isHelp

        public boolean isHelp()
        Description copied from interface: FormItemConfig
        Return true if this is a help item
        Specified by:
        isHelp in interface FormItemConfig
      • isRequired

        public boolean isRequired()
        Description copied from interface: FormItemConfig
        Return true if this FormItem is a required parameter
        Specified by:
        isRequired in interface FormItemConfig
      • setRequired

        public void setRequired​(boolean value)
        Description copied from interface: FormItemConfig
        Set whether this FormItem is a required parameter
        Specified by:
        setRequired in interface FormItemConfig
        Parameters:
        value - True if this FormItem is a required parameter
      • getLeadText

        public java.lang.String getLeadText()
        Description copied from interface: FormItemConfig
        Return the lead-in text, to be used in addition to the label
        Specified by:
        getLeadText in interface FormItemConfig
      • setLeadText

        public void setLeadText​(java.lang.String text)
        Description copied from interface: FormItemConfig
        Set the lead-in text, to be used in addition to the label
        Specified by:
        setLeadText in interface FormItemConfig
        Parameters:
        text - The new lead-in text
      • isValidForMode

        public boolean isValidForMode​(java.lang.String mode)
        Description copied from interface: FormItemConfig
        Returns whether this FormItem is valid for a particular mode.
        Specified by:
        isValidForMode in interface FormItemConfig
        Parameters:
        mode - The mode
        Returns:
        true if the FormItem is valid for the mode.