All Packages This Package Class Hierarchy Class Search Index
Interface grendel.widgets.SelectionManager
Interface for simple selection management.
See Also: MultiSelectionManager, SingleSelectionManager, SelectionListener
public interface SelectionManager { // Methods 15 public abstract void addSelection(Object); public abstract void addSelection(Enumeration); public abstract void addSelectionListener(SelectionListener); public abstract void clearSelection(); public abstract void contextClickSelection(MouseEvent); public abstract void doubleClickSelection(MouseEvent); public abstract void dragSelection(MouseEvent); public abstract Enumeration getSelection(); public abstract int getSelectionCount(); public abstract boolean isSelected(Object); public abstract void removeSelection(Object); public abstract void removeSelection(Enumeration); public abstract void removeSelectionListener(SelectionListener); public abstract void setSelection(Object); public abstract void setSelection(Enumeration); }
Methods
clearSelection
public abstract void clearSelection()
Removes all objects from the selection
setSelection
public abstract void setSelection(Object aObject)
Sets the selection to be a single object
setSelection
public abstract void setSelection(Enumeration aObjects)
Sets the selection to be the given array of objects
addSelection
public abstract void addSelection(Object aObject)
Adds a single object to the selection. Notifies listeners if the selection changes.
addSelection
public abstract void addSelection(Enumeration aObjects)
Adds an array of objects to the selection. Notifies listeners if the selection changes.
removeSelection
public abstract void removeSelection(Object aObject)
Removes a single object from the selection. Notifies listeners if the selection changes.
removeSelection
public abstract void removeSelection(Enumeration aObjects)
Removes an array of objects from the selection. Notifies listeners if the selection changes.
isSelected
public abstract boolean isSelected(Object aObject)
Returns true if the object is in the selection.
getSelectionCount
public abstract int getSelectionCount()
Returns the number of objects in the selection
getSelection
public abstract Enumeration getSelection()
Returns an enumeration of all objects in the selection
doubleClickSelection
public abstract void doubleClickSelection(MouseEvent aEvent)
Passed on to listeners
contextClickSelection
public abstract void contextClickSelection(MouseEvent aEvent)
Passed on to listeners
dragSelection
public abstract void dragSelection(MouseEvent aEvent)
Passed on to listeners
addSelectionListener
public abstract void addSelectionListener(SelectionListener aListener)
Adds a selection listener
removeSelectionListener
public abstract void removeSelectionListener(SelectionListener aListener)
Removes a selection listener
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4