public class MultiItemPane extends Pane implements java.lang.Iterable<Item>
Modifier and Type | Class and Description |
---|---|
static class |
MultiItemPane.ViewMode |
Modifier and Type | Method and Description |
---|---|
Menu |
getContextMenu()
Get the context menu for this pane.
|
MultiItemCollection |
getMultiItemCollection()
Get the collection that contains the items to be displayed in this pane.
|
int |
getSelectedItemCount()
Get the number of items that are currently selected in this pane.
|
java.util.List<ItemIdentifier> |
getSelection(int startIdx,
int numIDs)
Get the identifiers of the selected items of this pane.
|
MultiItemPane.ViewMode |
getViewMode()
Get the current view mode of this pane.
|
java.util.Iterator<Item> |
iterator()
Return an iterator that iterates over all selected items in this pane.
|
void |
setSelection(java.util.Collection<ItemIdentifier> selection)
Overwrite the selection with the given collection of item identifiers.
|
void |
setViewMode(MultiItemPane.ViewMode viewMode)
Change the view mode of this pane.
|
equals, getCollectionWindow, getID, getViewSet, grabFocus, isFocusOwner, isVisible, setViewSet, setVisible, supportsViewSets
public MultiItemPane.ViewMode getViewMode()
public void setViewMode(MultiItemPane.ViewMode viewMode)
viewMode
- The new view mode for this pane.public MultiItemCollection getMultiItemCollection()
public int getSelectedItemCount()
public java.util.List<ItemIdentifier> getSelection(int startIdx, int numIDs)
startIdx
- The starting zero-based index to start with.numIDs
- The number of item identifiers to get. You can specify more items than the collection contains. This method will limit the number automatically to the available number of selected items.getSelectedItemCount()
,
setSelection(java.util.Collection)
public void setSelection(java.util.Collection<ItemIdentifier> selection)
selection
- The new selection of items.getSelection(int, int)
public Menu getContextMenu()
public java.util.Iterator<Item> iterator()
for (Item item : multiItemPane) { // work on the selected item }
iterator
in interface java.lang.Iterable<Item>
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.