com.spss.psapi.extensions.ui.spi

Interface CustomFieldSelectionTableModel

  • All Superinterfaces:
    javax.swing.ListModel


    public interface CustomFieldSelectionTableModel
    extends javax.swing.ListModel
    A CLEF MultiFieldSelectionTableControl must sub class JTable and implements PropertyControl and CustomFieldSelectionTable. The implementation is bound by the controlClass attribute as other PropertyControl. And the JTable must use a TableModel that implements this interface.
    Since:
    PSAPI 18.0
    Author:
    tfu
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addSelectedItem(java.lang.Object object)
      Add the selected (field) item to the table.
      boolean contains(java.lang.Object object)
      Returns true if the model has used the supplied field or false otherwise.
      java.util.List<java.lang.String> getSelectedItems()
      Returns the selected (taken) field names, which results in a true when called with contains
      java.lang.Object getValue()
      Returns the property value of the custom table control
      boolean isSelectionEmpty()
      Returns true if no objects are selected.
      void removeEntriesAt(int[] indices)
      Removes the entries at the specified positions in the data model.
      void setValue(java.lang.Object value)
      Initialize the property value for the custom table control
      • Methods inherited from interface javax.swing.ListModel

        addListDataListener, getElementAt, getSize, removeListDataListener
    • Method Detail

      • setValue

        void setValue(java.lang.Object value)
        Initialize the property value for the custom table control
      • getValue

        java.lang.Object getValue()
        Returns the property value of the custom table control
      • contains

        boolean contains(java.lang.Object object)
        Returns true if the model has used the supplied field or false otherwise.
      • getSelectedItems

        java.util.List<java.lang.String> getSelectedItems()
        Returns the selected (taken) field names, which results in a true when called with contains
      • addSelectedItem

        void addSelectedItem(java.lang.Object object)
        Add the selected (field) item to the table. This is invoked on closing field selection dialog from client side for each field item added.
        Parameters:
        object - is the field name String to be added
      • isSelectionEmpty

        boolean isSelectionEmpty()
        Returns true if no objects are selected.
      • removeEntriesAt

        void removeEntriesAt(int[] indices)
        Removes the entries at the specified positions in the data model. This is invoked by the delete button from client side

(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.