|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.policy.AbstractPolicy com.dlsc.flexgantt.policy.eventline.DefaultEditEventlineObjectPolicy
public class DefaultEditEventlineObjectPolicy
The default implementation of the IEditEventlineObjectPolicy
works in
combination with the DefaultEventlineModel
and eventline objects that
implement the IEventlineObject
interface.
Constructor Summary | |
---|---|
DefaultEditEventlineObjectPolicy()
|
Method Summary | |
---|---|
ICommand |
getChangeTimeSpanCommand(java.lang.Object eventlineObject,
IEventlineModel model,
ITimeSpan span)
Returns a command object that will perform the actual change of the eventline object's time span. |
ICommand |
getCreateCommand(IEventlineModel model,
ITimeSpan span)
Returns a command object that will perform the actual creating of a new eventline object. |
ICommand |
getDeleteCommand(java.lang.Object eventlineObject,
IEventlineModel model)
Returns a command object that will perform the actual deletion of the eventline object. |
boolean |
isCreatable(IEventlineModel model,
ITimeSpan span)
Decides whether an eventline object may be created for the given model and with the given time span. |
boolean |
isDeletable(java.lang.Object eventlineObject,
IEventlineModel model)
Decides whether the eventline object may be deleted. |
boolean |
isDurationChangeable(java.lang.Object eventlineObject,
IEventlineModel model)
Decides whether the duration of an eventline object may be edited / changed. |
boolean |
isStartTimeChangeable(java.lang.Object eventlineObject,
IEventlineModel model)
Decides whether the start time of an eventline object may be edited / changed. |
Methods inherited from class com.dlsc.flexgantt.policy.AbstractPolicy |
---|
assertClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultEditEventlineObjectPolicy()
Method Detail |
---|
public boolean isStartTimeChangeable(java.lang.Object eventlineObject, IEventlineModel model)
IEditEventlineObjectPolicy
isStartTimeChangeable
in interface IEditEventlineObjectPolicy
eventlineObject
- the eventline object that gets checked for its time span
editing abilitymodel
- the data source of the eventline object
public boolean isDurationChangeable(java.lang.Object eventlineObject, IEventlineModel model)
IEditEventlineObjectPolicy
isDurationChangeable
in interface IEditEventlineObjectPolicy
eventlineObject
- the eventline object that gets checked for its time span
editing abilitymodel
- the data source of the eventline object
public boolean isDeletable(java.lang.Object eventlineObject, IEventlineModel model)
IEditEventlineObjectPolicy
isDeletable
in interface IEditEventlineObjectPolicy
eventlineObject
- the eventline object that gets checkedmodel
- the data source of the eventline object
public boolean isCreatable(IEventlineModel model, ITimeSpan span)
IEditEventlineObjectPolicy
isCreatable
in interface IEditEventlineObjectPolicy
model
- the model to which the newly created object will be addedspan
- the time span where the event object gets created
public ICommand getChangeTimeSpanCommand(java.lang.Object eventlineObject, IEventlineModel model, ITimeSpan span)
IEditEventlineObjectPolicy
getChangeTimeSpanCommand
in interface IEditEventlineObjectPolicy
eventlineObject
- the eventline object that gets checked for its editing abilitymodel
- the data source of the eventline objectspan
- the new time span for the eventline object
public ICommand getDeleteCommand(java.lang.Object eventlineObject, IEventlineModel model)
IEditEventlineObjectPolicy
getDeleteCommand
in interface IEditEventlineObjectPolicy
eventlineObject
- the eventline object that gets deletedmodel
- the data source of the eventline object
public ICommand getCreateCommand(IEventlineModel model, ITimeSpan span)
IEditEventlineObjectPolicy
getCreateCommand
in interface IEditEventlineObjectPolicy
model
- the model to which the new object needs to be addedspan
- the time span for the new eventline object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |