use of com.webobjects.eocontrol.EOEvent in project wonder-slim by undur.
the class WOEventDisplayPage method webEventDuration.
public int webEventDuration() {
int i, n, time;
_cacheWebEofEvents();
n = (webEvents != null) ? webEvents.count() : 0;
for (i = 0, time = 0; i < n; i++) {
EOEvent e = (EOEvent) webEvents.objectAtIndex(i);
if (e instanceof WOEvent)
time = time + (int) e.durationWithoutSubevents();
}
return time;
}
use of com.webobjects.eocontrol.EOEvent in project wonder-slim by undur.
the class WOEventDisplayPage method _cacheWebEofEvents.
public void _cacheWebEofEvents() {
if (webEvents != null)
return;
NSArray allCenters = EOEventCenter.allEventsForAllCenters();
int halfCount = allCenters.count() / 2;
webEvents = new NSMutableArray(halfCount);
eofEvents = new NSMutableArray(halfCount);
Enumeration anEnumerator = allCenters.objectEnumerator();
while (anEnumerator.hasMoreElements()) {
EOEvent e = (EOEvent) anEnumerator.nextElement();
if (e instanceof WOEvent)
webEvents.addObject(e);
else
eofEvents.addObject(e);
}
}
use of com.webobjects.eocontrol.EOEvent in project wonder-slim by undur.
the class WOAggregateEventRow method displayComponentName.
public String displayComponentName() {
WOEventDisplayPage ctr;
int level, group;
EOEvent obj;
obj = object();
ctr = controller();
level = ctr.displayLevelForEvent(obj);
group = ctr.groupTagForDisplayLevel(level);
if (group != -1)
return "WOEventRow";
else
return event().displayComponentName();
}
use of com.webobjects.eocontrol.EOEvent in project wonder-slim by undur.
the class WOEventDisplayPage method topmostDurationValue.
public long topmostDurationValue() {
NSArray roots;
roots = rootEventList();
if (roots == null || (roots.count() == 0))
return 0;
else
return durationOfEvent((EOEvent) roots.objectAtIndex(0));
}
use of com.webobjects.eocontrol.EOEvent in project wonder-slim by undur.
the class WOEventDisplayPage method eofEventDuration.
public int eofEventDuration() {
int i, n, time;
_cacheWebEofEvents();
n = (eofEvents != null) ? eofEvents.count() : 0;
for (i = 0, time = 0; i < n; i++) {
EOEvent e = (EOEvent) eofEvents.objectAtIndex(i);
if (!(e instanceof WOEvent))
time = time + (int) e.durationWithoutSubevents();
}
return time;
}
Aggregations