Class VFile

    • Constructor Detail

      • VFile

        public VFile​(String columnName,
                     boolean mandatory,
                     boolean isReadOnly,
                     boolean isUpdateable,
                     int fieldLength,
                     boolean files)
        Constructor
        Parameters:
        columnName - column name
        mandatory - mandatory
        isReadOnly - read only
        isUpdateable - updateable
        files - Files only if false Directory only
    • Method Detail

      • dispose

        public void dispose()
        Dispose
        Specified by:
        dispose in interface VEditor
      • setReadWrite

        public void setReadWrite​(boolean value)
        Enable/disable
        Specified by:
        setReadWrite in interface CEditor
        Parameters:
        value - true if ReadWrite
      • isReadWrite

        public boolean isReadWrite()
        IsReadWrite
        Specified by:
        isReadWrite in interface CEditor
        Returns:
        value true if ReadWrite
      • setMandatory

        public void setMandatory​(boolean mandatory)
        Set Mandatory (and back bolor)
        Specified by:
        setMandatory in interface CEditor
        Parameters:
        mandatory - true if mandatory
      • isMandatory

        public boolean isMandatory()
        Is it mandatory
        Specified by:
        isMandatory in interface CEditor
        Returns:
        true if mandatory
      • setBackground

        public void setBackground​(Color color)
        Set Background
        Overrides:
        setBackground in class JComponent
        Parameters:
        color - color
      • setBackground

        public void setBackground​(boolean error)
        Set Background based on editable / mandatory / error
        Specified by:
        setBackground in interface CEditor
        Parameters:
        error - if true, set background to error color, otherwise mandatory/editable
      • setValue

        public void setValue​(Object value)
        Set Editor to value
        Specified by:
        setValue in interface CEditor
        Parameters:
        value - value
      • getValue

        public Object getValue()
        Return Editor value
        Specified by:
        getValue in interface CEditor
        Returns:
        value
      • getDisplay

        public String getDisplay()
        Return Display Value
        Specified by:
        getDisplay in interface CEditor
        Returns:
        display value
      • addActionListener

        public void addActionListener​(ActionListener listener)
        Action Listener Interface
        Specified by:
        addActionListener in interface VEditor
        Parameters:
        listener - listener
      • removeActionListener

        public void removeActionListener​(ActionListener listener)
        Action Listener Interface
        Parameters:
        listener -
      • setField

        public void setField​(GridField mField)
        Set Field/WindowNo
        Specified by:
        setField in interface VEditor
        Parameters:
        mField - field
      • requestFocusInWindow

        public boolean requestFocusInWindow()
        Request Focus In Window
        Overrides:
        requestFocusInWindow in class JComponent
        Returns:
        focus request
      • focusLost

        public void focusLost​(FocusEvent e)
        Data Binding to to GridController.
        Specified by:
        focusLost in interface FocusListener
        Parameters:
        e - event