public class DefaultReportSelectionModel extends Object implements DocumentContextSelectionModel
Constructor and Description |
---|
DefaultReportSelectionModel() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object element) |
void |
addReportSelectionListener(ReportSelectionListener listener) |
void |
clearSelection() |
protected void |
fireLeadSelectionChanged(Object selection) |
protected void |
fireSelectionAdded(Object selection) |
protected void |
fireSelectionRemoved(Object selection) |
Object |
getLeadSelection() |
Object |
getSelectedElement(int index) |
Object[] |
getSelectedElements() |
<T> List<T> |
getSelectedElementsOfType(Class<T> t) |
int |
getSelectionCount() |
boolean |
isSelected(Object o) |
void |
remove(Object element) |
void |
removeReportSelectionListener(ReportSelectionListener listener) |
void |
setSelectedElements(Object[] elements) |
public void addReportSelectionListener(ReportSelectionListener listener)
addReportSelectionListener
in interface DocumentContextSelectionModel
public void removeReportSelectionListener(ReportSelectionListener listener)
removeReportSelectionListener
in interface DocumentContextSelectionModel
public int getSelectionCount()
getSelectionCount
in interface DocumentContextSelectionModel
public Object getSelectedElement(int index)
getSelectedElement
in interface DocumentContextSelectionModel
public void clearSelection()
clearSelection
in interface DocumentContextSelectionModel
public void setSelectedElements(Object[] elements)
setSelectedElements
in interface DocumentContextSelectionModel
protected void fireSelectionAdded(Object selection)
protected void fireSelectionRemoved(Object selection)
protected void fireLeadSelectionChanged(Object selection)
public boolean add(Object element)
add
in interface DocumentContextSelectionModel
public void remove(Object element)
remove
in interface DocumentContextSelectionModel
public boolean isSelected(Object o)
isSelected
in interface DocumentContextSelectionModel
public Object[] getSelectedElements()
getSelectedElements
in interface DocumentContextSelectionModel
public Object getLeadSelection()
getLeadSelection
in interface DocumentContextSelectionModel
public <T> List<T> getSelectedElementsOfType(Class<T> t)
getSelectedElementsOfType
in interface DocumentContextSelectionModel
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.