public class LargeGanttUtil
extends java.lang.Object
Constructor and Description |
---|
LargeGanttUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addGanttZooms(com.ibm.json.java.JSONObject root,
ISKDUIInfo skdUIInfo,
UIOptions options,
Schedule schedule,
com.ibm.json.java.JSONObject Gantt)
Adds the default Gantt Zoom levels to a TreeGrid, and initializes the
default Zoom to be the "middle" Zoom level.
|
static void |
buildInfoRow(UIBuilder data,
Schedule leftSchedule,
long rightModelId,
UIOptions options) |
static void |
encodeActivityColumnValues(TGJsonWriter jsonWriter,
IMXGanttModel model,
IMXActivity mxa,
boolean isRunBar,
TreeGridUtil.ITGSerializationHelper helper,
CompareMaxModelTGEmitter.ModelNumIDGenerator idGen)
Writes the Activity Column Data to Json
|
static void |
encodeFields(IMXActivity act,
java.lang.String[] fields,
Schedule model,
ReplyBuilder builder,
TreeGridUtil.ITGSerializationHelper helper)
Encode fields into a Changes segment of the ReplyBuilder
|
static boolean |
equals(Activity mx1,
Activity mx2,
java.lang.String propName)
Returns true if both activities have the same object property, and the
object property is equal() using the Java equals() method.
|
static Constraint |
findConstraintFor(Activity from,
Activity to) |
static java.lang.String |
getInfoRowText(Schedule leftSchedule,
long rightModelId,
UIOptions options) |
static java.lang.String |
getTGNWParts(IMXGanttModel model,
IMXActivity mxa,
TreeGridUtil.ITGSerializationHelper helper) |
static java.lang.String |
getTGNWParts(Schedule model,
Activity mxa,
TreeGridUtil.ITGSerializationHelper helper) |
static boolean |
isAssignmentDummy(IMXActivity node) |
static boolean |
isCompleted(IMXActivity mxa) |
static boolean |
isDummy(IMXActivity next) |
static boolean |
isHidden(IMXActivity mxa) |
static boolean |
isInterruptable(IMXGanttModel model,
IMXActivity mxa) |
static boolean |
isInterruptable(Schedule model,
Activity mxa) |
static boolean |
isLocked(IMXActivity activity) |
static boolean |
isTask(Activity act) |
static boolean |
isValid(Activity from,
Activity to,
UserInfo userInfo)
Determine if a Constraint is valid from the given 'from' activity to the provided 'to' activity.
|
static boolean |
isWorkorder(Activity mxa)
Returns true if the given
IlvActivity is a work order |
static java.util.List<Activity> |
resolveSelectedActivitiesById(Schedule model,
java.util.List<java.lang.Object> arr) |
static boolean |
showRequirementIcon(IMXActivity mxa) |
static boolean |
showWorklogIcon(IMXActivity mxa) |
static java.lang.String |
toStringProps(Activity from,
java.lang.String... props)
Given a UserPropertyHolder create a toString from the given properties
|
static void |
writeIDFields(TGJsonWriter jsonWriter,
IMXActivity mxa,
CompareMaxModelTGEmitter.ModelNumIDGenerator idGen)
Writes the ID field for the TreeGrid.
|
static void |
writeIDFields(TGJsonWriter jsonWriter,
IMXResource mxa,
CompareMaxModelTGEmitter.ModelNumIDGenerator idGen)
Writes the ID field for the TreeGrid.
|
public static boolean isValid(Activity from, Activity to, UserInfo userInfo) throws java.rmi.RemoteException, MXException
from
- to
- MXException
java.rmi.RemoteException
public static boolean isWorkorder(Activity mxa)
IlvActivity
is a work orderact
- IlvActivity
instancepublic static boolean isTask(Activity act)
public static java.lang.String toStringProps(Activity from, java.lang.String... props)
from
- props
- public static void encodeFields(IMXActivity act, java.lang.String[] fields, Schedule model, ReplyBuilder builder, TreeGridUtil.ITGSerializationHelper helper) throws java.io.IOException
act
- builder
- helper
- java.io.IOException
public static java.lang.String getTGNWParts(Schedule model, Activity mxa, TreeGridUtil.ITGSerializationHelper helper)
public static boolean equals(Activity mx1, Activity mx2, java.lang.String propName)
mx1
- mx2
- propName
- public static Constraint findConstraintFor(Activity from, Activity to)
public static void addGanttZooms(com.ibm.json.java.JSONObject root, ISKDUIInfo skdUIInfo, UIOptions options, Schedule schedule, com.ibm.json.java.JSONObject Gantt)
root
- skdUIInfo
- options
- bean
- Gantt
- public static java.util.List<Activity> resolveSelectedActivitiesById(Schedule model, java.util.List<java.lang.Object> arr)
public static boolean isHidden(IMXActivity mxa)
public static boolean isDummy(IMXActivity next)
public static boolean isAssignmentDummy(IMXActivity node)
public static void encodeActivityColumnValues(TGJsonWriter jsonWriter, IMXGanttModel model, IMXActivity mxa, boolean isRunBar, TreeGridUtil.ITGSerializationHelper helper, CompareMaxModelTGEmitter.ModelNumIDGenerator idGen) throws java.io.IOException
jsonWriter
- model
- mxa
- java.io.IOException
public static java.lang.String getTGNWParts(IMXGanttModel model, IMXActivity mxa, TreeGridUtil.ITGSerializationHelper helper) throws java.io.IOException
java.io.IOException
public static void writeIDFields(TGJsonWriter jsonWriter, IMXActivity mxa, CompareMaxModelTGEmitter.ModelNumIDGenerator idGen) throws java.io.IOException
jsonWriter
- mxa
- java.io.IOException
public static void writeIDFields(TGJsonWriter jsonWriter, IMXResource mxa, CompareMaxModelTGEmitter.ModelNumIDGenerator idGen) throws java.io.IOException
jsonWriter
- mxa
- java.io.IOException
public static boolean isLocked(IMXActivity activity)
public static boolean showRequirementIcon(IMXActivity mxa)
public static boolean showWorklogIcon(IMXActivity mxa)
public static boolean isCompleted(IMXActivity mxa)
public static boolean isInterruptable(IMXGanttModel model, IMXActivity mxa)
public static void buildInfoRow(UIBuilder data, Schedule leftSchedule, long rightModelId, UIOptions options)