Class VLocator

    • Constructor Detail

      • VLocator

        public VLocator()
        IDE Constructor
      • VLocator

        public VLocator​(String columnName,
                        boolean mandatory,
                        boolean isReadOnly,
                        boolean isUpdateable,
                        MLocatorLookup mLocator,
                        int WindowNo)
        Constructor
        Parameters:
        columnName - ColumnName
        mandatory - mandatory
        isReadOnly - read only
        isUpdateable - updateable
        mLocator - locator (lookup) model
        WindowNo - window no
    • 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 - r/w
      • isReadWrite

        public boolean isReadWrite()
        IsReadWrite
        Specified by:
        isReadWrite in interface CEditor
        Returns:
        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
      • requestFocusInWindow

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

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

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

        public int getM_Locator_ID()
        Get M_Locator_ID
        Returns:
        id
      • 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
      • setField

        public void setField​(GridField mField)
        Set Field/WindowNo for ValuePreference (NOP)
        Specified by:
        setField in interface VEditor
        Parameters:
        mField - Model Field
      • getField

        public GridField getField()
        Description copied from interface: VEditor
        Get Field/WindowNo for ValuePreference
        Specified by:
        getField in interface VEditor
        Returns:
        mField