Class DefaultReportSelectionModel
- java.lang.Object
-
- org.pentaho.reporting.designer.core.model.selection.DefaultReportSelectionModel
-
- All Implemented Interfaces:
DocumentContextSelectionModel
public class DefaultReportSelectionModel extends Object implements DocumentContextSelectionModel
-
-
Constructor Summary
Constructors Constructor Description DefaultReportSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
addReportSelectionListener
public void addReportSelectionListener(ReportSelectionListener listener)
- Specified by:
addReportSelectionListener
in interfaceDocumentContextSelectionModel
-
removeReportSelectionListener
public void removeReportSelectionListener(ReportSelectionListener listener)
- Specified by:
removeReportSelectionListener
in interfaceDocumentContextSelectionModel
-
getSelectionCount
public int getSelectionCount()
- Specified by:
getSelectionCount
in interfaceDocumentContextSelectionModel
-
getSelectedElement
public Object getSelectedElement(int index)
- Specified by:
getSelectedElement
in interfaceDocumentContextSelectionModel
-
clearSelection
public void clearSelection()
- Specified by:
clearSelection
in interfaceDocumentContextSelectionModel
-
setSelectedElements
public void setSelectedElements(Object[] elements)
- Specified by:
setSelectedElements
in interfaceDocumentContextSelectionModel
-
fireSelectionAdded
protected void fireSelectionAdded(Object selection)
-
fireSelectionRemoved
protected void fireSelectionRemoved(Object selection)
-
fireLeadSelectionChanged
protected void fireLeadSelectionChanged(Object selection)
-
add
public boolean add(Object element)
- Specified by:
add
in interfaceDocumentContextSelectionModel
-
remove
public void remove(Object element)
- Specified by:
remove
in interfaceDocumentContextSelectionModel
-
isSelected
public boolean isSelected(Object o)
- Specified by:
isSelected
in interfaceDocumentContextSelectionModel
-
getSelectedElements
public Object[] getSelectedElements()
- Specified by:
getSelectedElements
in interfaceDocumentContextSelectionModel
-
getLeadSelection
public Object getLeadSelection()
- Specified by:
getLeadSelection
in interfaceDocumentContextSelectionModel
-
getSelectedElementsOfType
public <T> List<T> getSelectedElementsOfType(Class<T> t)
- Specified by:
getSelectedElementsOfType
in interfaceDocumentContextSelectionModel
-
-