com.algosome.common.event
Class SelectableImpl

java.lang.Object
  extended by 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

Constructor Summary
SelectableImpl()
           
 
Method Summary
 void addSelectionListener(ContiguousSelectionListener list)
           
 int getSelectionEnd()
           
 java.util.List<ContiguousSelectionListener> getSelectionListeners()
           
 int getSelectionStart()
           
 void removeSelectionListener(ContiguousSelectionListener list)
           
 void setSelectionEnd(int end)
           
 void setSelectionStart(int start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectableImpl

public SelectableImpl()
Method Detail

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: