|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.dlsc.flexgantt.model.dateline.DatelineModelEvent
public class DatelineModelEvent
An event object used by dateline models to inform listeners about various
changes to the models. Listeners that want to receive dateline model events
need to implement the IDatelineModelListener
interface and register
themselves as listeners.
IDatelineModelListener
,
IDatelineModel.addDatelineModelListener(IDatelineModelListener)
,
Serialized FormNested Class Summary | |
---|---|
static class |
DatelineModelEvent.ID
An enumerator that contains values used for identifying different types of events. |
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
DatelineModelEvent(IDatelineModel model,
DatelineModelEvent.ID id)
Constructs a new dateline model event. |
|
DatelineModelEvent(IDatelineModel model,
DatelineModelEvent.ID id,
ITimeSpan requestedVisibleTimeSpan)
Constructs a new dateline model event. |
Method Summary | |
---|---|
DatelineModelEvent.ID |
getId()
Returns the event type identifier that allows the application to distinguish between different types of events that can occure on the model. |
IDatelineModel |
getModel()
Returns the dateline model that was the source of the event. |
ITimeSpan |
getRequestedVisibleTimeSpan()
Returns the time span that was requested from the dateline model to be visible. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatelineModelEvent(IDatelineModel model, DatelineModelEvent.ID id, ITimeSpan requestedVisibleTimeSpan)
model
- the model where the event occuredid
- the type identifier that allows to distinguish between
different kinds of events (new time span, different dateline
width, ...)requestedVisibleTimeSpan
- only used after a call to
IDatelineModel.requestVisibleTimeSpan(ITimeSpan)
public DatelineModelEvent(IDatelineModel model, DatelineModelEvent.ID id)
model
- the model where the event occuredid
- the type identifier that allows to distinguish between
different kinds of events (new time span, different dateline
width, ...)Method Detail |
---|
public DatelineModelEvent.ID getId()
public IDatelineModel getModel()
public ITimeSpan getRequestedVisibleTimeSpan()
IDatelineModel.requestVisibleTimeSpan(ITimeSpan)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |