You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.widgets.MultiSelectionManager

java.lang.Object
   |
   +----grendel.widgets.MultiSelectionManager

public class  MultiSelectionManager
     extends java.lang.Object
     implements grendel.widgets.SelectionManager
{
          // Fields 2
     Vector fListeners;
     Vector fSelection;

          // Constructors 1
     public MultiSelectionManager();

          // Methods 19
     public synchronized void addSelection(Object);
     public synchronized void addSelection(Enumeration);
     public synchronized void addSelectionListener(SelectionListener);
     public synchronized void clearSelection();
     public void contextClickSelection(MouseEvent);
     public void doubleClickSelection(MouseEvent);
     public void dragSelection(MouseEvent);
     public synchronized Enumeration getSelection();
     public synchronized int getSelectionCount();
     public synchronized boolean isSelected(Object);
     void notifySelectionChanged(Object[], Object[]);
     void notifySelectionContextClicked(MouseEvent);
     void notifySelectionDoubleClicked(MouseEvent);
     void notifySelectionDragged(MouseEvent);
     public synchronized void removeSelection(Object);
     public synchronized void removeSelection(Enumeration);
     public synchronized void removeSelectionListener(SelectionListener);
     public synchronized void setSelection(Object);
     public synchronized void setSelection(Enumeration);
}



Fields


fSelection

   Vector fSelection


fListeners

   Vector fListeners



Constructors


MultiSelectionManager

   public MultiSelectionManager() 

Default constructor




Methods


clearSelection

   public synchronized void clearSelection() 

Removes all objects from the selection

Implements:
clearSelection in interface SelectionManager


setSelection

   public synchronized void setSelection(Object aObject) 

Sets the selection to be a single object

Implements:
setSelection in interface SelectionManager


setSelection

   public synchronized void setSelection(Enumeration aObjects) 
Implements:
setSelection in interface SelectionManager


addSelection

   public synchronized void addSelection(Object aObject) 

Adds a single object to the selection. Notifies listeners if the selection changes.

Implements:
addSelection in interface SelectionManager


addSelection

   public synchronized void addSelection(Enumeration aObjects) 

NYI

Implements:
addSelection in interface SelectionManager


removeSelection

   public synchronized void removeSelection(Object aObject) 

Removes a single object from the selection. Notifies listeners if the selection changes.

Implements:
removeSelection in interface SelectionManager


removeSelection

   public synchronized void removeSelection(Enumeration aObjects) 
Implements:
removeSelection in interface SelectionManager


isSelected

   public synchronized boolean isSelected(Object aObject) 

Returns true if the object is in the selection.

Implements:
isSelected in interface SelectionManager


getSelectionCount

   public synchronized int getSelectionCount() 

Returns the number of objects in the selection

Implements:
getSelectionCount in interface SelectionManager


getSelection

   public synchronized Enumeration getSelection() 

Returns an enumeration of all objects in the selection

Implements:
getSelection in interface SelectionManager


doubleClickSelection

   public void doubleClickSelection(MouseEvent aEvent) 

Passed on to listeners

Implements:
doubleClickSelection in interface SelectionManager


contextClickSelection

   public void contextClickSelection(MouseEvent aEvent) 

Passed on to listeners

Implements:
contextClickSelection in interface SelectionManager


dragSelection

   public void dragSelection(MouseEvent aEvent) 

Passed on to listeners

Implements:
dragSelection in interface SelectionManager


addSelectionListener

   public synchronized void addSelectionListener(SelectionListener aListener) 

Adds a selection listener

Implements:
addSelectionListener in interface SelectionManager


removeSelectionListener

   public synchronized void removeSelectionListener(SelectionListener aListener) 

Removes a selection listener

Implements:
removeSelectionListener in interface SelectionManager


notifySelectionChanged

   void notifySelectionChanged(Object[] aAdded, 
                               Object[] aRemoved) 


notifySelectionDoubleClicked

   void notifySelectionDoubleClicked(MouseEvent aEvent) 


notifySelectionContextClicked

   void notifySelectionContextClicked(MouseEvent aEvent) 


notifySelectionDragged

   void notifySelectionDragged(MouseEvent aEvent) 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4