Interface WritableTableFormat<E>

    • Method Detail

      • isEditable

        boolean isEditable​(E baseObject,
                           int column)
        For editing fields. This returns true if the specified Object in the specified column can be edited by the user.
        Parameters:
        baseObject - the Object to test as editable or not. This will be an element from the source list.
        column - the column to test.
        Returns:
        true if the object and column are editable, false otherwise.
        Since:
        2004-August-27, as a replacement for isColumnEditable(int).
      • setColumnValue

        E setColumnValue​(E baseObject,
                         java.lang.Object editedValue,
                         int column)
        Sets the specified field of the base object to the edited value. When a column of a table is edited, this method is called so that the user can specify how to modify the base object for each column.
        Parameters:
        baseObject - the Object to be edited. This will be the original Object from the source list.
        editedValue - the newly constructed value for the edited column
        column - the column which has been edited
        Returns:
        the revised Object, or null if the revision shall be discarded. If not null, the EventTableModel will set() this revised value in the list and overwrite the previous value.