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
fSelection
Object fSelection
fListeners
Vector fListeners
fNullArray
Object[] fNullArray
fAddedArray
Object[] fAddedArray
fRemovedArray
Object[] fRemovedArray
Constructors
SingleSelectionManager
public SingleSelectionManager()
Default constructor
Methods
clearSelection
public void clearSelection()
Removes all objects from the selection
- Implements:
- clearSelection in interface SelectionManager
setSelection
public void setSelection(Object aObject)
Sets the selection to be a single object
- Implements:
- setSelection in interface SelectionManager
setSelection
public void setSelection(Enumeration aObjects)
- Implements:
- setSelection in interface SelectionManager
addSelection
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
addSelection
public void addSelection(Enumeration aObjects)
- Implements:
- addSelection in interface SelectionManager
removeSelection
public void removeSelection(Object aObject)
Removes a single object from the selection. Notifies listeners if the selection changes.
- Implements:
- removeSelection in interface SelectionManager
removeSelection
public void removeSelection(Enumeration aObjects)
- Implements:
- removeSelection in interface SelectionManager
isSelected
public boolean isSelected(Object aObject)
Returns true if the object is in the selection.
- Implements:
- isSelected in interface SelectionManager
getSelectionCount
public int getSelectionCount()
Returns the number of objects in the selection
- Implements:
- getSelectionCount in interface SelectionManager
getSelection
public 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 IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4