JIDE 3.5.15

com.jidesoft.gantt
Interface SubEntryGanttEntry<T>

Type Parameters:
T - The type of the bases unit of the range, for example Date or Integer.
All Superinterfaces:
Expandable, ExpandableRow, GanttEntry<T>, MutableGanttEntry<T>, Node, Row
All Known Implementing Classes:
DefaultGanttEntry

public interface SubEntryGanttEntry<T>
extends MutableGanttEntry<T>

SubEntryGanttEntry is an interface to divide up a single GanttEntry in multiple entries on a row.

The typically use case for sub entries is for resource planning were a row/entry represent a worker or a machine and the sub entries represent the periods where that resource is busy/working.

The child entries and sub entry of a GanttEntry returned from getSubEntries() are ignored and typically most methods of the GanttModel or GanttChart don't work for them (for example indexOf(subEntry) would return -1).


Field Summary
 
Fields inherited from interface com.jidesoft.gantt.GanttEntry
PROPERTY_ADJUSTING
 
Fields inherited from interface com.jidesoft.grid.Expandable
PROPERTY_EXPANDABLE, PROPERTY_EXPANDED
 
Method Summary
 void addSubEntry(GanttEntry<T> entry)
          Adds one sub entry.
 List<GanttEntry<T>> getSubEntries()
          Gets all sub entries of this GanttEntry.
 void removeSubEntry(GanttEntry<T> entry)
          Removes one sub entry.
 void setSubEntries(List<GanttEntry<T>> subEntries)
          Sets all sub entries of this GanttEntry.
 
Methods inherited from interface com.jidesoft.gantt.MutableGanttEntry
isCompletionEditable, isRangeEditable, setAdjusting, setCompletion, setRange
 
Methods inherited from interface com.jidesoft.gantt.GanttEntry
getCompletion, getName, getRange, isAdjusting
 
Methods inherited from interface com.jidesoft.grid.ExpandableRow
notifyCellUpdated
 
Methods inherited from interface com.jidesoft.grid.Expandable
addChild, addChild, addChildren, getAllVisibleChildrenCount, getChildAt, getChildIndex, getChildren, getChildrenCount, getNumberOfVisibleExpandable, hasChildren, isExpandable, isExpanded, moveDownChild, moveUpChild, notifyChildDeleted, notifyChildInserted, notifyChildrenDeleted, notifyChildrenInserted, notifyChildrenUpdated, notifyChildUpdated, removeAllChildren, removeChild, removeChildren, setChildren, setExpandable, setExpanded
 
Methods inherited from interface com.jidesoft.grid.Row
cellUpdated, getCellClassAt, getConverterContextAt, getEditorContextAt, getValueAt, isCellEditable, rowUpdated, setValueAt
 
Methods inherited from interface com.jidesoft.grid.Node
getLevel, getNextSibling, getParent, getPreviousSibling, setParent
 

Method Detail

getSubEntries

List<GanttEntry<T>> getSubEntries()
Gets all sub entries of this GanttEntry.

Returns:
the sub entry array.
See Also:
setSubEntries(java.util.List)

setSubEntries

void setSubEntries(List<GanttEntry<T>> subEntries)
Sets all sub entries of this GanttEntry.

Parameters:
subEntries - the sub entry array

addSubEntry

void addSubEntry(GanttEntry<T> entry)
Adds one sub entry.

Parameters:
entry - the sub entry
See Also:
removeSubEntry(GanttEntry)

removeSubEntry

void removeSubEntry(GanttEntry<T> entry)
Removes one sub entry.

Parameters:
entry - the sub entry

JIDE 3.5.15