Class VCellEditor

    • Constructor Detail

      • VCellEditor

        public VCellEditor​(GridField mField)
        Constructor for Grid
        Parameters:
        mField -
    • Method Detail

      • isCellEditable

        public boolean isCellEditable​(EventObject anEvent)
        Ask the editor if it can start editing using anEvent. If editing can be started this method returns true. Previously called: MTable.isCellEditable
        Specified by:
        isCellEditable in interface CellEditor
        Overrides:
        isCellEditable in class AbstractCellEditor
        Parameters:
        anEvent - event
        Returns:
        true if editable
      • getTableCellEditorComponent

        public Component getTableCellEditorComponent​(JTable table,
                                                     Object value,
                                                     boolean isSelected,
                                                     int row,
                                                     int col)
        Sets an initial value for the editor. This will cause the editor to stopEditing and lose any partially edited value if the editor is editing when this method is called. Returns the component that should be added to the client's Component hierarchy. Once installed in the client's hierarchy this component will then be able to draw and receive user input.
        Specified by:
        getTableCellEditorComponent in interface TableCellEditor
        Parameters:
        table -
        value -
        isSelected -
        row -
        col -
        Returns:
        component
      • getCellEditorValue

        public Object getCellEditorValue()
        Returns the value contained in the editor
        Specified by:
        getCellEditorValue in interface CellEditor
        Returns:
        value
      • vetoableChange

        public void vetoableChange​(PropertyChangeEvent e)
        VEditor Change Listener (property name is columnName). - indicate change (for String/Text/..)
        When editing is complete the value is retrieved via getCellEditorValue
        Specified by:
        vetoableChange in interface VetoableChangeListener
        Parameters:
        e - event
      • getEditor

        public VEditor getEditor()
        Get Actual Editor. Called from GridController to add ActionListener to Button
        Returns:
        VEditor
      • dispose

        public void dispose()
        Dispose
      • setActionListener

        public void setActionListener​(ActionListener listener)