javax.swing

Class JTable.DropLocation

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getColumn()
      Returns the column index where a dropped item should be placed in the table.
      int getRow()
      Returns the row index where a dropped item should be placed in the table.
      boolean isInsertColumn()
      Returns whether or not this location represents an insert of a column.
      boolean isInsertRow()
      Returns whether or not this location represents an insert of a row.
      String toString()
      Returns a string representation of this drop location.

        

      • Methods inherited from class javax.swing.TransferHandler.DropLocation

        getDropPoint
    • Method Detail

      • getRow

        public int getRow()
        Returns the row index where a dropped item should be placed in the table. Interpretation of the value depends on the return of isInsertRow(). If that method returns true this value indicates the index where a new row should be inserted. Otherwise, it represents the value of an existing row on which the data was dropped. This index is in terms of the view.

        -1 indicates that the drop occurred over empty space, and no row could be calculated.

        Returns:
        the drop row
      • getColumn

        public int getColumn()
        Returns the column index where a dropped item should be placed in the table. Interpretation of the value depends on the return of isInsertColumn(). If that method returns true this value indicates the index where a new column should be inserted. Otherwise, it represents the value of an existing column on which the data was dropped. This index is in terms of the view.

        -1 indicates that the drop occurred over empty space, and no column could be calculated.

        Returns:
        the drop row
      • isInsertRow

        public boolean isInsertRow()
        Returns whether or not this location represents an insert of a row.
        Returns:
        whether or not this is an insert row
      • isInsertColumn

        public boolean isInsertColumn()
        Returns whether or not this location represents an insert of a column.
        Returns:
        whether or not this is an insert column
      • toString

        public String toString()
        Returns a string representation of this drop location. This method is intended to be used for debugging purposes, and the content and format of the returned string may vary between implementations.
        Overrides:
        toString in class TransferHandler.DropLocation
        Returns:
        a string representation of this drop location

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 11/06/2005, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/swing/JTable.DropLocation.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut