Class DefaultListSelectionModel
- java.lang.Object
-
- de.hybris.platform.cockpit.components.listeditor.DefaultListSelectionModel
-
- All Implemented Interfaces:
ListSelectionModel
public class DefaultListSelectionModel extends java.lang.Object implements ListSelectionModel
-
-
Constructor Summary
Constructors Constructor Description DefaultListSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListSelectionListener(ListSelectionListener listSelectionListener)voidaddSelectionInterval(int index0, int index1)protected voidclearOutsideRange(int min, int max)voidclearSelection()java.util.List<java.lang.Integer>getAllSelectedIndexes()java.util.List<ListSelectionListener>getListeners()intgetMaxSelectionIndex()intgetMinSelectionIndex()voidinsertIndexRange(int index, int length)Inserts new indexes.booleanisSelectedIndex(int index)voidremoveIndexRange(int index, int length)removes indexes.voidremoveListSelectionListener(ListSelectionListener listSelectionListener)voidsetSelectionInterval(int index0, int index1)voidtoggleSelectionInterval(int index0, int index1)
-
-
-
Method Detail
-
insertIndexRange
public void insertIndexRange(int index, int length)Description copied from interface:ListSelectionModelInserts new indexes. This means that existing selections are shifted to new positions.Please note that this is not firing any event!
- Specified by:
insertIndexRangein interfaceListSelectionModel- Parameters:
index- the position to insert new indexes atlength- the length of indexes to insert
-
removeIndexRange
public void removeIndexRange(int index, int length)Description copied from interface:ListSelectionModelremoves indexes. This means that existing selections are shifted to new positions.Please note that this is not firing any event!
- Specified by:
removeIndexRangein interfaceListSelectionModel- Parameters:
index- the position to removes new indexes atlength- the length of indexes to insert
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)- Specified by:
setSelectionIntervalin interfaceListSelectionModel
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1)- Specified by:
addSelectionIntervalin interfaceListSelectionModel
-
toggleSelectionInterval
public void toggleSelectionInterval(int index0, int index1)- Specified by:
toggleSelectionIntervalin interfaceListSelectionModel
-
clearOutsideRange
protected void clearOutsideRange(int min, int max)
-
getAllSelectedIndexes
public java.util.List<java.lang.Integer> getAllSelectedIndexes()
- Specified by:
getAllSelectedIndexesin interfaceListSelectionModel
-
getMinSelectionIndex
public int getMinSelectionIndex()
- Specified by:
getMinSelectionIndexin interfaceListSelectionModel
-
getMaxSelectionIndex
public int getMaxSelectionIndex()
- Specified by:
getMaxSelectionIndexin interfaceListSelectionModel
-
clearSelection
public void clearSelection()
- Specified by:
clearSelectionin interfaceListSelectionModel
-
isSelectedIndex
public boolean isSelectedIndex(int index)
- Specified by:
isSelectedIndexin interfaceListSelectionModel
-
getListeners
public java.util.List<ListSelectionListener> getListeners()
-
addListSelectionListener
public void addListSelectionListener(ListSelectionListener listSelectionListener)
-
removeListSelectionListener
public void removeListSelectionListener(ListSelectionListener listSelectionListener)
-
-