Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
javax.swing

Class DefaultRowSorter. ModelWrapper<M,I>

  • Type Parameters:
    M - the type of the underlying model
    I - the identifier supplied to the filter
    Enclosing class:
    DefaultRowSorter<M,I>

    protected abstract static class DefaultRowSorter.ModelWrapper<M,I>
    extends Object
    DefaultRowSorter.ModelWrapper is responsible for providing the data that gets sorted by DefaultRowSorter. You normally do not interact directly with ModelWrapper. Subclasses of DefaultRowSorter provide an implementation of ModelWrapper wrapping another model. For example, TableRowSorter provides a ModelWrapper that wraps a TableModel.

    ModelWrapper makes a distinction between values as Objects and Strings. This allows implementations to provide a custom string converter to be used instead of invoking toString on the object.

    Since:
    1.6
    See Also:
    RowFilter, RowFilter.Entry
    • Constructor Detail

      • DefaultRowSorter.ModelWrapper

        protected DefaultRowSorter.ModelWrapper()
        Creates a new ModelWrapper.
    • Method Detail

      • getModel

        public abstract M getModel()
        Returns the underlying model that this Model is wrapping.
        Returns:
        the underlying model
      • getColumnCount

        public abstract int getColumnCount()
        Returns the number of columns in the model.
        Returns:
        the number of columns in the model
      • getRowCount

        public abstract int getRowCount()
        Returns the number of rows in the model.
        Returns:
        the number of rows in the model
      • getValueAt

        public abstract Object getValueAt(int row,
                        int column)
        Returns the value at the specified index.
        Parameters:
        row - the row index
        column - the column index
        Returns:
        the value at the specified index
        Throws:
        IndexOutOfBoundsException - if the indices are outside the range of the model
      • getStringValueAt

        public String getStringValueAt(int row,
                              int column)
        Returns the value as a String at the specified index. This implementation uses toString on the result from getValueAt (making sure to return an empty string for null values). Subclasses that override this method should never return null.
        Parameters:
        row - the row index
        column - the column index
        Returns:
        the value at the specified index as a String
        Throws:
        IndexOutOfBoundsException - if the indices are outside the range of the model
      • getIdentifier

        public abstract I getIdentifier(int row)
        Returns the identifier for the specified row. The return value of this is used as the identifier for the RowFilter.Entry that is passed to the RowFilter.
        Parameters:
        row - the row to return the identifier for, in terms of the underlying model
        Returns:
        the identifier
        See Also:
        RowFilter.Entry.getIdentifier()

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-javax/swing/defaultrowsorter.modelwrapper.html/.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut