public class MXSegmentManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SEGMENT_MANAGER |
static java.lang.String |
SEGMENT_MANAGER_FIELD |
Constructor and Description |
---|
MXSegmentManager(java.lang.String prefix,
java.lang.String countField,
java.lang.String seqenceField,
java.util.Map<java.lang.String,java.lang.String> segmentFieldsToActivityFields) |
Modifier and Type | Method and Description |
---|---|
void |
addSegment(MXGanttModel model,
MXActivity newParentSegmentActivity,
MXSegmentActivity act) |
void |
buildSegmentActivityChildrenFromParentMap(MXGanttModel model,
MXActivity parent)
Adds the Child Activity Rows to the Parent, based on the data in the Segment Map
|
static java.util.List<MXSegmentActivity> |
children(MXGanttModel model,
MXActivity parent) |
static <T> T |
get(MXActivity parent,
java.lang.String prefix,
int seq,
java.lang.String fld) |
static MXSegmentManager |
getManager(MXGanttModel model,
MXActivity parent) |
static MXSegmentManager |
getManager(MXGanttModel model,
java.lang.String mgrId) |
void |
pushChildSegmentsToParentMap(MXGanttModel model,
MXActivity parent)
Read all child MXSegmentActivity children and build the Map
|
void |
pushSegmentMapToParentRow(MXGanttModel model,
MXActivity parent)
Pushes data stored in the segment map of the parent, into the SEGMENT#-FIELD in the parent
|
void |
removeSegment(MXGanttModel model,
MXActivity parentSegmentActivity,
MXSegmentActivity act) |
static void |
set(MXActivity parent,
java.lang.String prefix,
int seq,
java.lang.String fld,
java.lang.Object value) |
static void |
setManager(MXGanttModel model,
MXActivity parent,
MXSegmentManager mgr) |
static void |
setManager(MXGanttModel model,
java.lang.String managerId,
MXSegmentManager mgr) |
static void |
updateMap(MXActivity mxActivity,
java.lang.String property,
java.lang.Object value)
Accepts a property, like, SEGMENT0-DDD and will, attempt to locate the segment in the map
and update the segment property
|
void |
updateParent(MXActivity parent,
MXActivity childActivity,
int seq)
Update the parent row SEGMENT fields from the child segment activity
|
void |
updateSegmentMapFromParentRowSegmentFields(MXGanttModel model,
MXActivity parent) |
public static final java.lang.String SEGMENT_MANAGER_FIELD
public static final java.lang.String DEFAULT_SEGMENT_MANAGER
public MXSegmentManager(java.lang.String prefix, java.lang.String countField, java.lang.String seqenceField, java.util.Map<java.lang.String,java.lang.String> segmentFieldsToActivityFields)
public void pushSegmentMapToParentRow(MXGanttModel model, MXActivity parent)
model
- parent
- public void updateParent(MXActivity parent, MXActivity childActivity, int seq)
parent
- childActivity
- seq
- public void buildSegmentActivityChildrenFromParentMap(MXGanttModel model, MXActivity parent)
model
- parent
- public void pushChildSegmentsToParentMap(MXGanttModel model, MXActivity parent)
model
- parent
- public void updateSegmentMapFromParentRowSegmentFields(MXGanttModel model, MXActivity parent)
public static java.util.List<MXSegmentActivity> children(MXGanttModel model, MXActivity parent)
public static <T> T get(MXActivity parent, java.lang.String prefix, int seq, java.lang.String fld)
public static void set(MXActivity parent, java.lang.String prefix, int seq, java.lang.String fld, java.lang.Object value)
public static MXSegmentManager getManager(MXGanttModel model, MXActivity parent)
public static void setManager(MXGanttModel model, MXActivity parent, MXSegmentManager mgr)
public static void setManager(MXGanttModel model, java.lang.String managerId, MXSegmentManager mgr)
public static MXSegmentManager getManager(MXGanttModel model, java.lang.String mgrId)
public static void updateMap(MXActivity mxActivity, java.lang.String property, java.lang.Object value)
mxActivity
- Parent Activity Rowproperty
- SEGMENT#-FEILD propertyvalue
- valuepublic void removeSegment(MXGanttModel model, MXActivity parentSegmentActivity, MXSegmentActivity act)
public void addSegment(MXGanttModel model, MXActivity newParentSegmentActivity, MXSegmentActivity act)