Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-04

oracle.adf.view.faces.bi.event
Class DataChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.faces.event.FacesEvent
          extended by javax.faces.event.ActionEvent
              extended by oracle.adf.view.faces.bi.event.DataChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class DataChangeEvent
extends javax.faces.event.ActionEvent

Event delivered when an action that could affect the data model has occurred as a result of user interaction on the Gantt (for example, a user change the duration of a task by resizing the task bar). Event listener should determine the type of action performed and update the data model accordingly.

See Also:
Serialized Form

Field Summary
static int COPY
          Action type: copy a task(s) or a resource(s).
static int CREATE
          Action type: create a new task.
static int CREATE_RESOURCE
          Action type: create a new resource.
static int CUT
          Action type: cut a task(s) or a resource(s).
static int DELETE
          Action type: delete a task(s) or a resource(s).
static int DURATION_CHANGED
          Action type: the end time of a task has changed.
static int INDENT
          Action type: indent a task or a resource.
static int LINK
          Action type: link two tasks together.
static int OUTDENT
          Action type: outdent a task or a resource.
static int PASTE
          Action type: paste.
static int PROGRESS_CHANGED
          Action type: progress of task has changed.
static int TASK_MERGED
          Action type: a task is merged with another task.
static int TASK_PROPERTIES_UPDATE
          Action type: task properties dialog event.
static int TASK_SPLITTED
          Action type: a task is splitted.
static int TIME_CHANGED
          Action type: the start and end time of a task has changed.
static int UNLINK
          Action type: unlink two linked tasks.
static int UPDATE
          Action type: update a task.
static int UPDATE_RESOURCE
          Action type: update a new resource.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DataChangeEvent(javax.faces.component.UIComponent component, int type)
          Constructor for an instance of a DataChangeEvent.
 
Method Summary
 int getActionType()
          Gets the type of action performed by the user.
 java.util.List<Dependency> getDependencies()
          Gets a list of dependencies set in the task properties dialog.
 java.lang.String getFromResourceId()
          Gets the original resource id of a task before the move.
 java.lang.String getMergeFrom()
          Gets the task id of the task to merge from.
 java.lang.String getMergeTo()
          Gets the task id of the task to merge to.
 java.util.Date getNewCompleteThrough()
           
 java.util.Date getNewEndTime()
          Gets the new end time of a task.
 int getNewPercentComplete()
           
 java.util.Date getNewStartTime()
          Gets the new start time of a task.
 java.lang.String getRecurTaskId()
          Gets the id of an individual recurring task.
 java.util.List<java.lang.String> getResourceIds()
          Gets a list of resource ids where this action is performed on.
 org.apache.myfaces.trinidad.model.RowKeySet getRowKeys()
           
 java.util.Date getSplitStartTime()
          When a task is split into two parts, this method returns the start time of the second part.
 java.lang.String getSplitTaskId()
          Gets the id of split segment of a split task where the action is performed on.
 java.util.List<SplitTask> getSplitTasks()
          Gets a list of split tasks set in the task properties dialog.
 java.util.Date getSplitTime()
          When a task is split into two parts, this method returns the end time of the first part.
 java.lang.String getTaskId()
          Gets the task id where the action is performed on.
 java.util.List<java.lang.String> getTaskIds()
          Gets a list of task ids where this action is performed on.
 java.lang.String getToResourceId()
          Gets the new resource id of a task after the move.
 void setDependencies(java.util.List<Dependency> dependencies)
           
 void setFromResourceId(java.lang.String fromResourceId)
           
 void setMergeFrom(java.lang.String mergeFromId)
           
 void setMergeTo(java.lang.String mergeToId)
           
 void setNewCompleteThrough(java.util.Date completeThrough)
           
 void setNewEndTime(java.util.Date newEndTime)
           
 void setNewPercentComplete(int percentComplete)
           
 void setNewStartTime(java.util.Date newStartTime)
           
 void setRecurId(java.lang.String recurId)
           
 void setResourceIds(java.util.List<java.lang.String> resourceIds)
           
 void setRowKeys(org.apache.myfaces.trinidad.model.RowKeySet rowKeys)
           
 void setSplitId(java.lang.String splitId)
           
 void setSplitStartTime(java.util.Date splitStartTime)
           
 void setSplitTasks(java.util.List<SplitTask> splitTasks)
           
 void setSplitTime(java.util.Date splitTime)
           
 void setTaskIds(java.util.List<java.lang.String> taskIds)
           
 void setToResourceId(java.lang.String toResourceId)
           
 
Methods inherited from class javax.faces.event.ActionEvent
isAppropriateListener, processListener
 
Methods inherited from class javax.faces.event.FacesEvent
getComponent, getPhaseId, queue, setPhaseId
 
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
 

Field Detail

TIME_CHANGED

public static final int TIME_CHANGED
Action type: the start and end time of a task has changed.

See Also:
Constant Field Values

DURATION_CHANGED

public static final int DURATION_CHANGED
Action type: the end time of a task has changed.

See Also:
Constant Field Values

TASK_SPLITTED

public static final int TASK_SPLITTED
Action type: a task is splitted.

See Also:
Constant Field Values

TASK_MERGED

public static final int TASK_MERGED
Action type: a task is merged with another task.

See Also:
Constant Field Values

CUT

public static final int CUT
Action type: cut a task(s) or a resource(s).

See Also:
Constant Field Values

COPY

public static final int COPY
Action type: copy a task(s) or a resource(s).

See Also:
Constant Field Values

PASTE

public static final int PASTE
Action type: paste.

See Also:
Constant Field Values

DELETE

public static final int DELETE
Action type: delete a task(s) or a resource(s).

See Also:
Constant Field Values

INDENT

public static final int INDENT
Action type: indent a task or a resource.

See Also:
Constant Field Values

OUTDENT

public static final int OUTDENT
Action type: outdent a task or a resource.

See Also:
Constant Field Values

LINK

public static final int LINK
Action type: link two tasks together.

See Also:
Constant Field Values

UNLINK

public static final int UNLINK
Action type: unlink two linked tasks.

See Also:
Constant Field Values

CREATE

public static final int CREATE
Action type: create a new task.

See Also:
Constant Field Values

UPDATE

public static final int UPDATE
Action type: update a task.

See Also:
Constant Field Values

CREATE_RESOURCE

public static final int CREATE_RESOURCE
Action type: create a new resource.

See Also:
Constant Field Values

UPDATE_RESOURCE

public static final int UPDATE_RESOURCE
Action type: update a new resource.

See Also:
Constant Field Values

TASK_PROPERTIES_UPDATE

public static final int TASK_PROPERTIES_UPDATE
Action type: task properties dialog event.

See Also:
Constant Field Values

PROGRESS_CHANGED

public static final int PROGRESS_CHANGED
Action type: progress of task has changed.

See Also:
Constant Field Values
Constructor Detail

DataChangeEvent

public DataChangeEvent(javax.faces.component.UIComponent component,
                       int type)
Constructor for an instance of a DataChangeEvent. Application should never instantiate a DataChangeEvent directly.

Parameters:
component - The Gantt component.
type - The type of action.
Method Detail

getActionType

public int getActionType()
Gets the type of action performed by the user.

Returns:
the type of action.

setRowKeys

public void setRowKeys(org.apache.myfaces.trinidad.model.RowKeySet rowKeys)

getRowKeys

public org.apache.myfaces.trinidad.model.RowKeySet getRowKeys()

setTaskIds

public void setTaskIds(java.util.List<java.lang.String> taskIds)
For internal use only. Application developers should not use this

getTaskIds

public java.util.List<java.lang.String> getTaskIds()
Gets a list of task ids where this action is performed on.

Returns:
a list of task ids.

setResourceIds

public void setResourceIds(java.util.List<java.lang.String> resourceIds)
For internal use only. Application developers should not use this

getResourceIds

public java.util.List<java.lang.String> getResourceIds()
Gets a list of resource ids where this action is performed on.

Returns:
a list of resource ids.

setNewStartTime

public void setNewStartTime(java.util.Date newStartTime)
For internal use only. Application developers should not use this

getNewStartTime

public java.util.Date getNewStartTime()
Gets the new start time of a task.

Returns:
the new start time of a task.

setNewEndTime

public void setNewEndTime(java.util.Date newEndTime)
For internal use only. Application developers should not use this

getNewEndTime

public java.util.Date getNewEndTime()
Gets the new end time of a task.

Returns:
the new end time of a task.

setFromResourceId

public void setFromResourceId(java.lang.String fromResourceId)
For internal use only. Application developers should not use this

getFromResourceId

public java.lang.String getFromResourceId()
Gets the original resource id of a task before the move.

Returns:
the original resource id of a task.

setToResourceId

public void setToResourceId(java.lang.String toResourceId)
For internal use only. Application developers should not use this

getToResourceId

public java.lang.String getToResourceId()
Gets the new resource id of a task after the move.

Returns:
the new resource id of a task.

setSplitId

public void setSplitId(java.lang.String splitId)
For internal use only. Application developers should not use this

setRecurId

public void setRecurId(java.lang.String recurId)
For internal use only. Application developers should not use this

getRecurTaskId

public java.lang.String getRecurTaskId()
Gets the id of an individual recurring task.

Returns:

getSplitTaskId

public java.lang.String getSplitTaskId()
Gets the id of split segment of a split task where the action is performed on.

Returns:

setSplitTime

public void setSplitTime(java.util.Date splitTime)
For internal use only. Application developers should not use this

getSplitTime

public java.util.Date getSplitTime()
When a task is split into two parts, this method returns the end time of the first part.

Returns:
the end time of the first part of a split task.

setSplitStartTime

public void setSplitStartTime(java.util.Date splitStartTime)
For internal use only. Application developers should not use this

getSplitStartTime

public java.util.Date getSplitStartTime()
When a task is split into two parts, this method returns the start time of the second part.

Returns:
the start time of the second part of a split task.

setMergeFrom

public void setMergeFrom(java.lang.String mergeFromId)
For internal use only. Application developers should not use this

getMergeFrom

public java.lang.String getMergeFrom()
Gets the task id of the task to merge from.

Returns:
the task id of the task to merge from.

setMergeTo

public void setMergeTo(java.lang.String mergeToId)
For internal use only. Application developers should not use this

getMergeTo

public java.lang.String getMergeTo()
Gets the task id of the task to merge to.

Returns:
the task id of the task to merge to.

getSplitTasks

public java.util.List<SplitTask> getSplitTasks()
Gets a list of split tasks set in the task properties dialog.

Returns:
a list of split tasks set in the task properties dialog.

setSplitTasks

public void setSplitTasks(java.util.List<SplitTask> splitTasks)
For internal use only. Application developers should not use this

getDependencies

public java.util.List<Dependency> getDependencies()
Gets a list of dependencies set in the task properties dialog.

Returns:
a list of dependencies set in the task properties dialog.

setDependencies

public void setDependencies(java.util.List<Dependency> dependencies)
For internal use only. Application developers should not use this

getTaskId

public java.lang.String getTaskId()
Gets the task id where the action is performed on.

Returns:
the task id where the action is performed on.

getNewCompleteThrough

public java.util.Date getNewCompleteThrough()

setNewCompleteThrough

public void setNewCompleteThrough(java.util.Date completeThrough)

getNewPercentComplete

public int getNewPercentComplete()

setNewPercentComplete

public void setNewPercentComplete(int percentComplete)

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-04

Copyright © 1997, 2010, Oracle. All rights reserved.