Class VPAttribute

    • Constructor Detail

      • VPAttribute

        public VPAttribute()
        IDE Constructor
      • VPAttribute

        public VPAttribute​(boolean mandatory,
                           boolean isReadOnly,
                           boolean isUpdateable,
                           int WindowNo,
                           MPAttributeLookup lookup)
        Create Product Attribute Set Instance Editor.
        Parameters:
        mandatory - mandatory
        isReadOnly - read only
        isUpdateable - updateable
        WindowNo - WindowNo
        lookup - Model Product Attribute
      • VPAttribute

        public VPAttribute​(GridTab gridTab,
                           boolean mandatory,
                           boolean isReadOnly,
                           boolean isUpdateable,
                           int WindowNo,
                           MPAttributeLookup lookup)
        Create Product Attribute Set Instance Editor.
        Parameters:
        gridTab -
        mandatory - mandatory
        isReadOnly - read only
        isUpdateable - updateable
        WindowNo - WindowNo
        lookup - Model Product Attribute
    • Method Detail

      • dispose

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

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

        public boolean isMandatory()
        Get Mandatory
        Specified by:
        isMandatory in interface CEditor
        Returns:
        mandatory
      • setReadWrite

        public void setReadWrite​(boolean rw)
        Set ReadWrite
        Specified by:
        setReadWrite in interface CEditor
        Parameters:
        rw - read rwite
      • isReadWrite

        public boolean isReadWrite()
        Is Read Write
        Specified by:
        isReadWrite in interface CEditor
        Returns:
        read write
      • setBackground

        public void setBackground​(boolean error)
        Set Background
        Specified by:
        setBackground in interface CEditor
        Parameters:
        error - Error
      • setBackground

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

        public void setValue​(Object value)
        Set/lookup Value
        Specified by:
        setValue in interface CEditor
        Parameters:
        value - value
      • getValue

        public Object getValue()
        Get Value
        Specified by:
        getValue in interface CEditor
        Returns:
        value
      • getDisplay

        public String getDisplay()
        Get Display Value
        Specified by:
        getDisplay in interface CEditor
        Returns:
        info
      • setField

        public void setField​(GridField mField)
        Set Field
        Specified by:
        setField in interface VEditor
        Parameters:
        mField - MField
      • getField

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

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

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