|
Class grendel.widgets.SingleSelectionManager
All Packages This Package Class Hierarchy Class Search Index
Class grendel.widgets.SingleSelectionManager
java.lang.Object
|
+----grendel.widgets.SingleSelectionManager
public class SingleSelectionManager
extends java.lang.Object
implements grendel.widgets.SelectionManager
{
// Fields 5
Object[] fAddedArray;
Vector fListeners;
Object[] fNullArray;
Object[] fRemovedArray;
Object fSelection;
// Constructors 1
public SingleSelectionManager();
// Methods 19
public void addSelection(Object);
public void addSelection(Enumeration);
public synchronized void addSelectionListener(SelectionListener);
public void clearSelection();
public void contextClickSelection(MouseEvent);
public void doubleClickSelection(MouseEvent);
public void dragSelection(MouseEvent);
public Enumeration getSelection();
public int getSelectionCount();
public boolean isSelected(Object);
void notifySelectionChanged(Object[], Object[]);
void notifySelectionContextClicked(MouseEvent);
void notifySelectionDoubleClicked(MouseEvent);
void notifySelectionDragged(MouseEvent);
public void removeSelection(Object);
public void removeSelection(Enumeration);
public synchronized void removeSelectionListener(SelectionListener);
public void setSelection(Object);
public void setSelection(Enumeration);
}
Fields
Object fSelection
Vector fListeners
Object[] fNullArray
Object[] fAddedArray
Object[] fRemovedArray
Constructors
public SingleSelectionManager()
Default constructor
Methods
public void clearSelection()
Removes all objects from the selection
- Implements:
- clearSelection in interface SelectionManager
public void setSelection(Object aObject)
Sets the selection to be a single object
- Implements:
- setSelection in interface SelectionManager
public void setSelection(Enumeration aObjects)
- Implements:
- setSelection in interface SelectionManager
public void addSelection(Object aObject)
Adds a single object to the selection. Overwrites
previous selection if a selection already exists. Notifies
listeners if the selection changes.
- Implements:
- addSelection in interface SelectionManager
public void addSelection(Enumeration aObjects)
- Implements:
- addSelection in interface SelectionManager
public void removeSelection(Object aObject)
Removes a single object from the selection. Notifies
listeners if the selection changes.
- Implements:
- removeSelection in interface SelectionManager
public void removeSelection(Enumeration aObjects)
- Implements:
- removeSelection in interface SelectionManager
public boolean isSelected(Object aObject)
Returns true if the object is in the selection.
- Implements:
- isSelected in interface SelectionManager
public int getSelectionCount()
Returns the number of objects in the selection
- Implements:
- getSelectionCount in interface SelectionManager
public 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
|