Package com._1c.g5.v8.dt.ui
Class MultiSelection
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.MultiSelection
-
- All Implemented Interfaces:
IMultiSelection,Iterable,ISelection,IStructuredSelection
public class MultiSelection extends Object implements IMultiSelection
- See Also:
IMultiSelection
-
-
Constructor Summary
Constructors Constructor Description MultiSelection(IStructuredSelection defaultSelection, String defaultSelectionLabel)Instantiates a new multi selection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMultiSelectionaddSelection(ISelection selection, String selectionLabel)Adds named selection to this multiple selection.booleanequals(Object obj)ObjectgetFirstElement()StringgetSelectionLabel(ISelection selection)Obtains label for a givenISelection.ISelection[]getSelections()inthashCode()booleanisEmpty()Iterator<?>iterator()intsize()Object[]toArray()List<?>toList()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
MultiSelection
public MultiSelection(IStructuredSelection defaultSelection, String defaultSelectionLabel)
Instantiates a new multi selection.- Parameters:
defaultSelection- the default selection the will provide the defaultIStructuredSelection.defaultSelectionLabel- the default selection label.
-
-
Method Detail
-
addSelection
public IMultiSelection addSelection(ISelection selection, String selectionLabel)
Description copied from interface:IMultiSelectionAdds named selection to this multiple selection.- Specified by:
addSelectionin interfaceIMultiSelection- Parameters:
selection- the selection to add.selectionLabel- the selection label.- Returns:
-
getSelections
public ISelection[] getSelections()
- Specified by:
getSelectionsin interfaceIMultiSelection- Returns:
ISelection's available.
-
getSelectionLabel
public String getSelectionLabel(ISelection selection)
Description copied from interface:IMultiSelectionObtains label for a givenISelection.- Specified by:
getSelectionLabelin interfaceIMultiSelection- Parameters:
selection- the selection to get label of.- Returns:
- selection label or
nullif no label available.
-
getFirstElement
public Object getFirstElement()
- Specified by:
getFirstElementin interfaceIStructuredSelection
-
iterator
public Iterator<?> iterator()
- Specified by:
iteratorin interfaceIStructuredSelection- Specified by:
iteratorin interfaceIterable
-
size
public int size()
- Specified by:
sizein interfaceIStructuredSelection
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceIStructuredSelection
-
toList
public List<?> toList()
- Specified by:
toListin interfaceIStructuredSelection
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceISelection
-
-