com.spss.psapi.extensions.ui.spi

Interface CustomRowMovable



  • public interface CustomRowMovable
    Like CustomFieldSelectionModel if the custom JTable allow users move it's rows then it must also implement this interface so the move buttons will be added
    Since:
    PSAPI 18.0
    Author:
    tfu
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int moveDown(int index)
      Moves the item at the selected index down one place.
      int[] moveDown(int[] indexes)
      Moves the items down one place.
      int moveToBottom(int index)
      Moves the item at the bottom of the list.
      int[] moveToBottom(int[] indexes)
      Moves the items at the bottom of the list.
      int moveToTop(int index)
      Moves the item at the top of the list.
      int[] moveToTop(int[] indexes)
      Moves the items at the top of the list.
      int moveUp(int index)
      Moves the item at the selected index up one place.
      int[] moveUp(int[] indexes)
      Moves the items up one place.
    • Method Detail

      • moveToTop

        int moveToTop(int index)
        Moves the item at the top of the list. Returns the item's new index or -1 no change was made.
        Returns:
        the item's new index or -1 no change was made
      • moveToTop

        int[] moveToTop(int[] indexes)
        Moves the items at the top of the list. Returns the new positions of the items or null if no change was made.
        Returns:
        the new positions of the items or null if no change was made
      • moveToBottom

        int moveToBottom(int index)
        Moves the item at the bottom of the list. Returns the item's new index or -1 no change was made.
        Returns:
        the item's new index or -1 no change was made
      • moveToBottom

        int[] moveToBottom(int[] indexes)
        Moves the items at the bottom of the list. Returns the new positions of the items or null if no change was made.
        Returns:
        the new positions of the items or null if no change was made
      • moveUp

        int moveUp(int index)
        Moves the item at the selected index up one place. Returns the item's new index or -1 no change was made.
        Returns:
        the item's new index or -1 no change was made
      • moveUp

        int[] moveUp(int[] indexes)
        Moves the items up one place. Returns the new positions of the items or null if no change was made.
        Returns:
        the new positions of the items or null if no change was made
      • moveDown

        int moveDown(int index)
        Moves the item at the selected index down one place. Returns the item's new index or -1 no change was made.
        Returns:
        the item's new index or -1 no change was made
      • moveDown

        int[] moveDown(int[] indexes)
        Moves the items down one place. Returns the new positions of the items or null if no change was made.
        Returns:
        the new positions of the items or null if no change was made

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