com.algosome.common.event
Class SelectableImpl
java.lang.Object
com.algosome.common.event.SelectableImpl
- All Implemented Interfaces:
- Selectable, Selection
public class SelectableImpl
- extends java.lang.Object
- implements Selectable
Basic implementation of the Selectable interface. All selected values are stored locally in this class.
- Author:
- Greg Cope
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectableImpl
public SelectableImpl()
setSelectionEnd
public void setSelectionEnd(int end)
- Specified by:
setSelectionEnd
in interface Selectable
setSelectionStart
public void setSelectionStart(int start)
- Specified by:
setSelectionStart
in interface Selectable
getSelectionEnd
public int getSelectionEnd()
- Specified by:
getSelectionEnd
in interface Selection
- Returns:
getSelectionStart
public int getSelectionStart()
- Specified by:
getSelectionStart
in interface Selection
- Returns:
addSelectionListener
public void addSelectionListener(ContiguousSelectionListener list)
- Specified by:
addSelectionListener
in interface Selectable
- Parameters:
list
-
removeSelectionListener
public void removeSelectionListener(ContiguousSelectionListener list)
- Specified by:
removeSelectionListener
in interface Selectable
- Parameters:
list
-
getSelectionListeners
public java.util.List<ContiguousSelectionListener> getSelectionListeners()
- Specified by:
getSelectionListeners
in interface Selectable
- Returns: