| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.rice.krms.impl.ui; |
| 17 | |
|
| 18 | |
import org.kuali.rice.core.util.Node; |
| 19 | |
import org.kuali.rice.core.util.Tree; |
| 20 | |
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
| 21 | |
import org.kuali.rice.krms.framework.engine.AgendaTree; |
| 22 | |
import org.kuali.rice.krms.impl.repository.AgendaBo; |
| 23 | |
import org.kuali.rice.krms.impl.repository.AgendaItemBo; |
| 24 | |
import org.kuali.rice.krms.impl.repository.ContextBo; |
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | 0 | public class EditorDocument extends PersistableBusinessObjectBase { |
| 33 | |
|
| 34 | |
private static final long serialVersionUID = 1L; |
| 35 | |
|
| 36 | |
private ContextBo context; |
| 37 | |
private AgendaBo agenda; |
| 38 | |
private AgendaItemBo agendaItemAddLine; |
| 39 | |
|
| 40 | |
public Tree<AgendaItemBo, String> getAgendaRuleTree() { |
| 41 | 0 | Tree<AgendaItemBo, String> agendaTree = new Tree<AgendaItemBo, String>(); |
| 42 | |
|
| 43 | 0 | Node<AgendaItemBo, String> rootNode = new Node<AgendaItemBo, String>(); |
| 44 | 0 | agendaTree.setRootElement(rootNode); |
| 45 | |
|
| 46 | 0 | Node<AgendaItemBo, String> child1 = new Node<AgendaItemBo, String>(); |
| 47 | 0 | child1.setNodeLabel("Animal Expenses Included. Reminder to include Animal special review"); |
| 48 | 0 | child1.setData(new AgendaItemBo()); |
| 49 | 0 | rootNode.getChildren().add(child1); |
| 50 | |
|
| 51 | 0 | Node<AgendaItemBo, String> child2 = new Node<AgendaItemBo, String>(); |
| 52 | 0 | child2.setNodeLabel("Animal Expenses Included. Reminder to include Animal special review"); |
| 53 | 0 | child2.setData(new AgendaItemBo()); |
| 54 | 0 | child1.getChildren().add(child2); |
| 55 | |
|
| 56 | 0 | Node<AgendaItemBo, String> child3 = new Node<AgendaItemBo, String>(); |
| 57 | 0 | child3.setNodeLabel("Animal Expenses Included. Reminder to include Animal special review"); |
| 58 | 0 | child3.setData(new AgendaItemBo()); |
| 59 | 0 | rootNode.getChildren().add(child3); |
| 60 | |
|
| 61 | 0 | return agendaTree; |
| 62 | |
} |
| 63 | |
|
| 64 | |
|
| 65 | |
|
| 66 | |
|
| 67 | |
public AgendaItemBo getAgendaItemAddLine() { |
| 68 | 0 | return this.agendaItemAddLine; |
| 69 | |
} |
| 70 | |
|
| 71 | |
|
| 72 | |
|
| 73 | |
public void setAgendaItemAddLine(AgendaItemBo agendaItemAddLine) { |
| 74 | 0 | this.agendaItemAddLine = agendaItemAddLine; |
| 75 | 0 | } |
| 76 | |
|
| 77 | |
|
| 78 | |
|
| 79 | |
public ContextBo getContext() { |
| 80 | 0 | return this.context; |
| 81 | |
} |
| 82 | |
|
| 83 | |
|
| 84 | |
|
| 85 | |
public void setContext(ContextBo context) { |
| 86 | 0 | this.context = context; |
| 87 | 0 | } |
| 88 | |
|
| 89 | |
|
| 90 | |
|
| 91 | |
public AgendaBo getAgenda() { |
| 92 | 0 | return this.agenda; |
| 93 | |
} |
| 94 | |
|
| 95 | |
|
| 96 | |
|
| 97 | |
public void setAgenda(AgendaBo agenda) { |
| 98 | 0 | this.agenda = agenda; |
| 99 | 0 | } |
| 100 | |
|
| 101 | |
|
| 102 | |
} |