Weitere aktuelle Java-Titel finden Sie bei dpunkt.
 Inhaltsverzeichnis   Vorhergehendes Paket   Seite Zurück   Seite Vor   Nächstes Paket   Paketübersicht   Index

Klasse javax.swing.event.TreeSelectionEvent1.2

java.lang.Object
   |
   +--java.util.EventObject
         |
         +--javax.swing.event.TreeSelectionEvent

Deklaration

public class TreeSelectionEvent
extends java.util.EventObject

Beschreibung

Dieser Event zeigt eine Selektionsänderung des Baumaes an.


 
Datenelemente
protected TreePath[]paths
protected boolean[]areNew
protected TreePatholdLeadSelectionPath
protected TreePathnewLeadSelectionPath
 
Konstruktoren
publicTreeSelectionEvent(Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
publicTreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
 
Methoden
public TreePath[]getPaths()
public TreePathgetPath()
public booleanisAddedPath()
public booleanisAddedPath(TreePath path)
public booleanisAddedPath(int index)     [1.3]
public TreePathgetOldLeadSelectionPath()
public TreePathgetNewLeadSelectionPath()
public ObjectcloneWithSource(Object newSource)


 

Datenelemente im Detail

protected TreePath[] paths
Der Pfad.
protected boolean[] areNew
Gibt an, ob die Teile des Pfades neu sind.
protected TreePath oldLeadSelectionPath
Der alte Selektionspfad.
protected TreePath newLeadSelectionPath
Der neue Selektionspfad.

 

Konstruktoren im Detail

public TreeSelectionEvent(Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
Erzeugt den Event.
public TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
Erzeugt den Event.

 

Methoden im Detail

public TreePath[] getPaths()
Liefert den hinzugefügten oder entfernten Pfad.
public TreePath getPath()
Liefert das den ersten Teil des Pfades.
public boolean isAddedPath()
Returns true if the first path element has been added to the selection, a return value of false means the first path has been removed from the selection.
public boolean isAddedPath(TreePath path)
Liefert true, wenn der angegebene Pfad hinzugefügt wurde.
public boolean isAddedPath(int index)     [1.3]
Liefert true, wenn der angegebene Pfad hinzugefügt wurde.
public TreePath getOldLeadSelectionPath()
Liefert den alten Selektionspfad.
public TreePath getNewLeadSelectionPath()
Liefert den aktuellen Selektionspfad.
public Object cloneWithSource(Object newSource)
Liefert eine Kopie dieses Events.


 Inhaltsverzeichnis   Vorhergehendes Paket   Seite Zurück   Seite Vor   Nächstes Paket   Paketübersicht   Index

Copyright © 2002 dpunkt.Verlag, Heidelberg. Alle Rechte vorbehalten.