public class IlvResizeActivityAction extends Object implements IlvServerAction
On the client side you can activate this action by doing the following on the JSP page:
1.add the taglib <%@ taglib uri="http://www.ilog.com/jviews/tlds/jviews-gantt-faces.tld"
prefix="jvgf"%>
2.add <jvgf:resizeActivityInteractor id="resizeInteractor"/> .
This action is triggered by the "resizeActivity"
action. It takes the
following parameters: [resizeRectIndex, dleft, dtop, dwidth, dheight,
resizeStartTime, resizeEndTime]
resizeRectIndex
: The index of the activity to be resized in multiple selected activities.left
: The left position of the resized activity, in view coordinates.top
: The top position of the resized activity, in view coordinates.width
: The width of the resized node, in view coordinates.height
: The height of the resized node, in view coordinates.resizeStartTime
: Indicates whether or not the start time of the selected activity is to be resized.resizeEndTime
: Indicates whether or not the end time of the selected activity is to be resized.IlvGanttSelectionSupport.installListeners
method which installs selection support as the default.Modifier and Type | Field and Description |
---|---|
static String |
RESIZE_ACTIVITY
The action name used to identify the resize activity in a Gantt chart.
|
Constructor and Description |
---|
IlvResizeActivityAction()
Creates a new
IlvResizeActivityAction instance. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ServerActionEvent event)
Performs the action requested from the client side.
|
protected void |
doResize(IlvHierarchyChart chart,
int resizeRectIndex,
float left,
float top,
float width,
float height,
boolean resizeStartTime,
boolean resizeEndTime)
The user can override the Do resize selected activity.
|
public static final String RESIZE_ACTIVITY
public IlvResizeActivityAction()
IlvResizeActivityAction
instance.public void actionPerformed(ServerActionEvent event) throws javax.servlet.ServletException
actionPerformed
in interface IlvServerAction
event
- The server action event.javax.servlet.ServletException
protected void doResize(IlvHierarchyChart chart, int resizeRectIndex, float left, float top, float width, float height, boolean resizeStartTime, boolean resizeEndTime)
chart
- The IlvHierarchyChart
object.resizeRectIndex
- The index of the selected activity to be resized.left
- The left position of the resized activity, in view coordinates.top
- The top position of the resized activity, in view coordinates.width
- The width of the resized node, in view coordinates.height
- The height of the resized node, in view coordinates.resizeStartTime
- Indicates whether the start time of the selected activity is resized.resizeEndTime
- Indicates whether the end time of the selected activity is resized.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.