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

Class TreeUI

    • Constructor Detail

      • TreeUI

        public TreeUI()
    • Method Detail

      • getPathBounds

        public abstract Rectangle getPathBounds(JTree tree,
                              TreePath path)
        Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. Will return null if any component in path is currently valid.
      • getPathForRow

        public abstract TreePath getPathForRow(JTree tree,
                             int row)
        Returns the path for passed in row. If row is not visible null is returned.
      • getRowForPath

        public abstract int getRowForPath(JTree tree,
                        TreePath path)
        Returns the row that the last item identified in path is visible at. Will return -1 if any of the elements in path are not currently visible.
      • getRowCount

        public abstract int getRowCount(JTree tree)
        Returns the number of rows that are being displayed.
      • getClosestPathForLocation

        public abstract TreePath getClosestPathForLocation(JTree tree,
                                         int x,
                                         int y)
        Returns the path to the node that is closest to x,y. If there is nothing currently visible this will return null, otherwise it'll always return a valid path. If you need to test if the returned object is exactly at x, y you should get the bounds for the returned path and test x, y against that.
      • isEditing

        public abstract boolean isEditing(JTree tree)
        Returns true if the tree is being edited. The item that is being edited can be returned by getEditingPath().
      • stopEditing

        public abstract boolean stopEditing(JTree tree)
        Stops the current editing session. This has no effect if the tree isn't being edited. Returns true if the editor allows the editing session to stop.
      • cancelEditing

        public abstract void cancelEditing(JTree tree)
        Cancels the current editing session. This has no effect if the tree isn't being edited. Returns true if the editor allows the editing session to stop.
      • startEditingAtPath

        public abstract void startEditingAtPath(JTree tree,
                              TreePath path)
        Selects the last item in path and tries to edit it. Editing will fail if the CellEditor won't allow it for the selected item.
      • getEditingPath

        public abstract TreePath getEditingPath(JTree tree)
        Returns the path to the element that is being edited.

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/plaf/treeui.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