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.event

Class RowSorterEvent

  • All Implemented Interfaces:
    Serializable

    public class RowSorterEvent
    extends EventObject
    RowSorterEvent provides notification of changes to a RowSorter. Two types of notification are possible:
    • Type.SORT_ORDER_CHANGED: indicates the sort order has changed. This is typically followed by a notification of:
    • Type.SORTED: indicates the contents of the model have been transformed in some way. For example, the contents may have been sorted or filtered.
    Since:
    1.6
    See Also:
    RowSorter
    • Constructor Detail

      • RowSorterEvent

        public RowSorterEvent(RowSorter source)
        Creates a RowSorterEvent of type SORT_ORDER_CHANGED.
        Parameters:
        source - the source of the change
        Throws:
        IllegalArgumentException - if source is null
      • RowSorterEvent

        public RowSorterEvent(RowSorter source,
                      RowSorterEvent.Type type,
                      int[] previousRowIndexToModel)
        Creates a RowSorterEvent.
        Parameters:
        source - the source of the change
        type - the type of event
        previousRowIndexToModel - the mapping from model indices to view indices prior to the sort, may be null
        Throws:
        IllegalArgumentException - if source or type is null
    • Method Detail

      • getSource

        public RowSorter getSource()
        Returns the source of the event as a RowSorter.
        Overrides:
        getSource in class EventObject
        Returns:
        the source of the event as a RowSorter
      • getType

        public RowSorterEvent.Type getType()
        Returns the type of event.
        Returns:
        the type of event
      • convertPreviousRowIndexToModel

        public int convertPreviousRowIndexToModel(int index)
        Returns the location of index in terms of the model prior to the sort. This method is only useful for events of type SORTED. This method will return -1 if the index is not valid, or the locations prior to the sort have not been provided.
        Parameters:
        index - the index in terms of the view
        Returns:
        the index in terms of the model prior to the sort, or -1 if the location is not valid or the mapping was not provided.
      • getPreviousRowCount

        public int getPreviousRowCount()
        Returns the number of rows before the sort. This method is only useful for events of type SORTED and if the last locations have not been provided will return 0.
        Returns:
        the number of rows in terms of the view prior to the sort

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/event/rowsorterevent.html/.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