Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
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()

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/swing/DefaultRowSorter.ModelWrapper.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut