Search in sources :

Example 1 with NamedEntry

use of com.tencent.wstt.gt.ui.model.NamedEntry in project GT by Tencent.

the class GTTimeInternal method getEntrys.

public static NamedEntry[] getEntrys() {
    List<GroupTimeEntry> root = timeLogController.getShowList();
    List<NamedEntry> result = new ArrayList<NamedEntry>();
    for (GroupTimeEntry gte : root) {
        List<TagTimeEntry> tagEntryList = gte.entrys();
        if (tagEntryList.size() > 0) {
            result.add(gte);
            for (TagTimeEntry tte : tagEntryList) {
                result.add(tte);
            }
        }
    }
    return result.toArray(EMPTY_NAMED_ENTRY);
}
Also used : NamedEntry(com.tencent.wstt.gt.ui.model.NamedEntry) TagTimeEntry(com.tencent.wstt.gt.ui.model.TagTimeEntry) ArrayList(java.util.ArrayList) GroupTimeEntry(com.tencent.wstt.gt.ui.model.GroupTimeEntry)

Aggregations

GroupTimeEntry (com.tencent.wstt.gt.ui.model.GroupTimeEntry)1 NamedEntry (com.tencent.wstt.gt.ui.model.NamedEntry)1 TagTimeEntry (com.tencent.wstt.gt.ui.model.TagTimeEntry)1 ArrayList (java.util.ArrayList)1