Class DefaultListSelectionModel
java.lang.Object
de.hybris.platform.cockpit.components.listeditor.DefaultListSelectionModel
- All Implemented Interfaces:
ListSelectionModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListSelectionListener(ListSelectionListener listSelectionListener) voidaddSelectionInterval(int index0, int index1) protected voidclearOutsideRange(int min, int max) voidintintvoidinsertIndexRange(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)
-
Constructor Details
-
DefaultListSelectionModel
public DefaultListSelectionModel()
-
-
Method Details
-
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
- 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
-
addListSelectionListener
-
removeListSelectionListener
-