Class grendel.widgets.MultiSelectionManager
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
Vector fSelection
Vector fListeners
Constructors
public MultiSelectionManager()
Default constructor
Methods
public synchronized void clearSelection()
Removes all objects from the selection
- Implements:
- clearSelection in interface SelectionManager
public synchronized void setSelection(Object aObject)
Sets the selection to be a single object
- Implements:
- setSelection in interface SelectionManager
public synchronized void setSelection(Enumeration aObjects)
- Implements:
- setSelection in interface SelectionManager
public synchronized void addSelection(Object aObject)
Adds a single object to the selection. Notifies
listeners if the selection changes.
- Implements:
- addSelection in interface SelectionManager
public synchronized void addSelection(Enumeration aObjects)
NYI
- Implements:
- addSelection in interface SelectionManager
public synchronized void removeSelection(Object aObject)
Removes a single object from the selection. Notifies
listeners if the selection changes.
- Implements:
- removeSelection in interface SelectionManager
public synchronized void removeSelection(Enumeration aObjects)
- Implements:
- removeSelection in interface SelectionManager
public synchronized boolean isSelected(Object aObject)
Returns true if the object is in the selection.
- Implements:
- isSelected in interface SelectionManager
public synchronized int getSelectionCount()
Returns the number of objects in the selection
- Implements:
- getSelectionCount in interface SelectionManager
public synchronized Enumeration getSelection()
Returns an enumeration of all objects in the selection
- Implements:
- getSelection in interface SelectionManager
public void doubleClickSelection(MouseEvent aEvent)
Passed on to listeners
- Implements:
- doubleClickSelection in interface SelectionManager
public void contextClickSelection(MouseEvent aEvent)
Passed on to listeners
- Implements:
- contextClickSelection in interface SelectionManager
public void dragSelection(MouseEvent aEvent)
Passed on to listeners
- Implements:
- dragSelection in interface SelectionManager
public synchronized void addSelectionListener(SelectionListener aListener)
Adds a selection listener
- Implements:
- addSelectionListener in interface SelectionManager
public synchronized void removeSelectionListener(SelectionListener aListener)
Removes a selection listener
- Implements:
- removeSelectionListener in interface SelectionManager
void notifySelectionChanged(Object[] aAdded,
Object[] aRemoved)
void notifySelectionDoubleClicked(MouseEvent aEvent)
void notifySelectionContextClicked(MouseEvent aEvent)
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
|