public class GanttActionEvent
extends javax.faces.event.ActionEvent
Modifier and Type | Field and Description |
---|---|
static int |
PRINT
Action type: print.
|
static int |
REDO
Action type: redo action.
|
static int |
SHOW_AS_HIER
Action type: show the tasks/resources on the data region of the Gantt (left portion) as
a tree (if supported by the underlying data model).
|
static int |
SHOW_AS_LIST
Action type: show the tasks/resources on the data region of the Gantt (left portion) as
a list.
|
static int |
UNDO
Action type: undo action.
|
static int |
ZOOM
Action type: zoom to a new time scale.
|
static int |
ZOOM_TO_FIT
Action type: zoom to fit.
|
Constructor and Description |
---|
GanttActionEvent(javax.faces.component.UIComponent component,
int type)
Constructor of an instance of GanttActionEvent.
|
GanttActionEvent(javax.faces.component.UIComponent component,
int type,
java.lang.String major,
java.lang.String minor)
Constructor of an instance of GanttActionEvent with the new time scale.
|
GanttActionEvent(javax.faces.component.UIComponent component,
int type,
java.lang.String major,
java.lang.String minor,
java.lang.String zoomto)
Constructor of an instance of GanttActionEvent with the new time scale.
|
Modifier and Type | Method and Description |
---|---|
int |
getActionType()
Gets the action type performed on the Gantt.
|
java.lang.String |
getMajorTimeScale()
Gets the new major time scale after zoom.
|
java.lang.String |
getMinorTimeScale()
Gets the new minor time scale after zoom.
|
java.lang.Object |
getUndoableEdit()
Gets the UndoableEdit for undo/redo actions.
|
java.lang.String |
getZoomTo()
Gets the zoom to fit level.
|
void |
setUndoableEdit(java.lang.Object edit) |
public static final int UNDO
public static final int REDO
public static final int PRINT
public static final int SHOW_AS_LIST
public static final int SHOW_AS_HIER
public static final int ZOOM
public static final int ZOOM_TO_FIT
public GanttActionEvent(javax.faces.component.UIComponent component, int type)
component
- the Gantt component.type
- the type of action.public GanttActionEvent(javax.faces.component.UIComponent component, int type, java.lang.String major, java.lang.String minor)
component
- the Gantt component.type
- the type of action.scale
- the new minor time scale.public GanttActionEvent(javax.faces.component.UIComponent component, int type, java.lang.String major, java.lang.String minor, java.lang.String zoomto)
component
- the Gantt component.type
- the type of action.scale
- the new minor time scale.public int getActionType()
public java.lang.String getMajorTimeScale()
public java.lang.String getMinorTimeScale()
public void setUndoableEdit(java.lang.Object edit)
public java.lang.Object getUndoableEdit()
public java.lang.String getZoomTo()