|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jaret.util.ui.timebars.AbstractTimeBarMarker
public abstract class AbstractTimeBarMarker
Abstract base implementation of a TimeBarMarker.
Field Summary | |
---|---|
protected boolean |
_draggable
attribute storing the draggable state. |
protected java.util.List<TimeBarMarkerListener> |
_listenerList
listener list. |
Constructor Summary | |
---|---|
AbstractTimeBarMarker(boolean draggable)
|
Method Summary | |
---|---|
void |
addTimeBarMarkerListener(TimeBarMarkerListener tbml)
Add a listener to be informed about changes to the marker. |
protected void |
fireMarkerChanged(de.jaret.util.date.JaretDate oldDate,
de.jaret.util.date.JaretDate newDate)
Inform registered listeners of a date change. |
protected void |
fireMarkerDescriptionChanged(java.lang.String oldValue,
java.lang.String newValue)
Inform registered listeners of a description change. |
boolean |
isDraggable()
Retrieve the draggable state of the marker. |
void |
remTimeBarMarkerListener(TimeBarMarkerListener tbml)
Remove a TimeBarMarkerListener for this marker. |
void |
setDraggable(boolean draggable)
Set whether the marker can be dragged by the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.jaret.util.ui.timebars.TimeBarMarker |
---|
getDate, getDescription, getTooltipText, setDate |
Field Detail |
---|
protected boolean _draggable
protected java.util.List<TimeBarMarkerListener> _listenerList
Constructor Detail |
---|
public AbstractTimeBarMarker(boolean draggable)
draggable
- true if the marker should be draggableMethod Detail |
---|
public boolean isDraggable()
isDraggable
in interface TimeBarMarker
public void setDraggable(boolean draggable)
TimeBarMarker
setDraggable
in interface TimeBarMarker
draggable
- The draggable to set.public void addTimeBarMarkerListener(TimeBarMarkerListener tbml)
addTimeBarMarkerListener
in interface TimeBarMarker
tbml
- the TimeBarMarkerListener to be addedpublic void remTimeBarMarkerListener(TimeBarMarkerListener tbml)
remTimeBarMarkerListener
in interface TimeBarMarker
tbml
- TimeBarMArkerListener to be removedprotected void fireMarkerChanged(de.jaret.util.date.JaretDate oldDate, de.jaret.util.date.JaretDate newDate)
oldDate
- the last date the amrker was set tonewDate
- the new dateprotected void fireMarkerDescriptionChanged(java.lang.String oldValue, java.lang.String newValue)
oldValue
- the prevoiuos descriptionnewValue
- the new value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |