|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimeBarSelectionModel
Selection model for the TimeBarModel.
Method Summary | |
---|---|
void |
addSelectedInterval(de.jaret.util.date.Interval interval)
Add an interval to the selection. |
void |
addSelectedRelation(IIntervalRelation relation)
Add an relation to the selection. |
void |
addSelectedRow(TimeBarRow row)
Add a row to the collection of selected rows. |
void |
addTimeBarSelectionListener(TimeBarSelectionListener tbsl)
Add a TimeBarSelectionListener to be informed if the selection is altered. |
void |
clearIntervalSelection()
Clears the selected intervals. |
void |
clearRelationSelection()
Clears the selected relations. |
void |
clearRowSelection()
Clears the selected rows. |
void |
clearSelection()
Clears all selections. |
boolean |
getMultipleSelectionAllowed()
Retrieves the multiple selection allowance. |
boolean |
getRowSelectionToggleMode()
Retrieve the row selection toggle mode. |
java.util.List<de.jaret.util.date.Interval> |
getSelectedIntervals()
Retrieves the list of currently selected intervals. |
java.util.List<IIntervalRelation> |
getSelectedRelations()
Retrieves the list of currently selected relations. |
java.util.List<TimeBarRow> |
getSelectedRows()
Retrieves the list of currently selected rows. |
boolean |
hasIntervalSelection()
Check whether there are selected intervals. |
boolean |
hasRelationSelection()
Check whether there are selected relations. |
boolean |
hasRowSelection()
Check whether there are selected rows. |
boolean |
isEmpty()
Check whether the selection is completely empty. |
boolean |
isIntervalSelectionAllowed()
Check allowance of interval selections. |
boolean |
isRelationSelectionAllowed()
Check allowance of relation selections. |
boolean |
isRowSelectionAllowed()
Check allowance of row selections. |
boolean |
isSelected(IIntervalRelation relation)
Check whether an inetrval is in the selection. |
boolean |
isSelected(de.jaret.util.date.Interval interval)
Check whether an interval is in the selection. |
boolean |
isSelected(TimeBarRow row)
Check whether a given row is selected. |
void |
remSelectedInterval(de.jaret.util.date.Interval interval)
Remove an interval from the selection. |
void |
remSelectedIntervals(java.util.List<de.jaret.util.date.Interval> intervals)
Remove a list of intervals from the seletion. |
void |
remSelectedRelation(IIntervalRelation relation)
Remove an relation from the selection. |
void |
remSelectedRelations(java.util.List<IIntervalRelation> relations)
Remove a list of relations from the seletion. |
void |
remSelectedRow(TimeBarRow row)
Remove a row from the collection of selected rows. |
void |
remTimeBarSelectionListener(TimeBarSelectionListener tbsl)
Remove a registered Listener. |
void |
setIntervalSelectionAllowed(boolean allowed)
Enable/disable interval selection. |
void |
setMultipleSelectionAllowed(boolean allowed)
If multiple selction is not allowed only one row and one interval may be selected at one time. |
void |
setRelationSelectionAllowed(boolean allowed)
Enable/Disable relation selection. |
void |
setRowSelectionAllowed(boolean allowed)
Enable/Disable row selection. |
void |
setRowSelectionToggleMode(boolean activated)
Enable/dible row selection toggle mode (click toggles selection without modifier keys). |
void |
setSelectedInterval(de.jaret.util.date.Interval interval)
Set the interval as the oly selected interval. |
void |
setSelectedRelation(IIntervalRelation relation)
Set the relation as the oly selected relation. |
void |
setSelectedRow(TimeBarRow row)
Set the row selection to a given row. |
Method Detail |
---|
boolean isEmpty()
boolean hasRowSelection()
boolean hasIntervalSelection()
boolean hasRelationSelection()
java.util.List<TimeBarRow> getSelectedRows()
TimeBarRows
java.util.List<de.jaret.util.date.Interval> getSelectedIntervals()
Intervals
java.util.List<IIntervalRelation> getSelectedRelations()
IIntervalRelations
void setRowSelectionAllowed(boolean allowed)
allowed
- row selection allowed when set to trueboolean isRowSelectionAllowed()
true
if row selections are allowedvoid setRowSelectionToggleMode(boolean activated)
activated
- true for activated toggle modeboolean getRowSelectionToggleMode()
true
for activated toggle modevoid setIntervalSelectionAllowed(boolean allowed)
allowed
- interval selection allowed when set to trueboolean isIntervalSelectionAllowed()
true
if interval selections are allowedvoid setRelationSelectionAllowed(boolean allowed)
allowed
- relation selection allowed when set to trueboolean isRelationSelectionAllowed()
true
if relation selections are allowedvoid setMultipleSelectionAllowed(boolean allowed)
allowed
- true to signal multiple selections are allowedboolean getMultipleSelectionAllowed()
void clearSelection()
void clearIntervalSelection()
void clearRowSelection()
void clearRelationSelection()
void setSelectedRow(TimeBarRow row)
row
- row to be selectedvoid addSelectedRow(TimeBarRow row)
row
- row to be selectedvoid remSelectedRow(TimeBarRow row)
row
- row to be removed from the selectionboolean isSelected(TimeBarRow row)
row
- row to check
void setSelectedInterval(de.jaret.util.date.Interval interval)
interval
- interval that will be the only selected intervalvoid addSelectedInterval(de.jaret.util.date.Interval interval)
interval
- interval to be added to the selectionvoid remSelectedInterval(de.jaret.util.date.Interval interval)
interval
- interval to remove from the selectionvoid remSelectedIntervals(java.util.List<de.jaret.util.date.Interval> intervals)
intervals
- list of intervals to remove from the selectionboolean isSelected(de.jaret.util.date.Interval interval)
interval
- interval to check
void setSelectedRelation(IIntervalRelation relation)
relation
- relation that will be the only selected relationvoid addSelectedRelation(IIntervalRelation relation)
relation
- relation to be added to the selectionvoid remSelectedRelation(IIntervalRelation relation)
relation
- relation to remove from the selectionvoid remSelectedRelations(java.util.List<IIntervalRelation> relations)
relations
- list of relations to remove from the selectionboolean isSelected(IIntervalRelation relation)
relation
- relation to check
void addTimeBarSelectionListener(TimeBarSelectionListener tbsl)
TimeBarSelectionListener
to be informed if the selection is altered.
tbsl
- the Listener to be addedvoid remTimeBarSelectionListener(TimeBarSelectionListener tbsl)
tbsl
- the listener to be deregistered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |