BrightSide Workbench Full Report + Source Code
org.turro.erp.task.TaskListbox Class Reference
Inheritance diagram for org.turro.erp.task.TaskListbox:
Collaboration diagram for org.turro.erp.task.TaskListbox:

Public Member Functions

void setReference (Task reference)
 
void setWorkOrder (WorkOrder workOrder)
 
void setWorkOrder (WorkOrder workOrder, Task task)
 
void setOrderReference (OrderReference orderReference)
 
Task getObjectValue ()
 
- Public Member Functions inherited from org.turro.zkoss.input.CollectionListbox< V >
 CollectionListbox ()
 
 CollectionListbox (Collection< V > collection)
 
void updateCollection ()
 
void updateCollection (Collection< V > collection)
 
boolean isAllowNull ()
 
void setAllowNull (boolean allowNull)
 
Collection< V > getCollection ()
 
void setCollection (Collection< V > collection)
 
boolean isNullAtBottom ()
 
void setNullAtBottom (boolean nullAtBottom)
 
String getNullLabel ()
 
void setNullLabel (String nullLabel)
 
- Public Member Functions inherited from org.turro.zkoss.input.GenericListbox< V >
 GenericListbox ()
 
void setDisabled (boolean value)
 
void afterCompose ()
 
void clearItems ()
 
void setObjectValue (V value)
 
void setObjectValues (Collection< V > collection)
 
Collection< V > getObjectValues ()
 
Collection< V > getDeselectedObjectValues ()
 
boolean isSelectFirst ()
 
void setSelectFirst (boolean selectFirst)
 
Set getDeselectedItems ()
 
void sort ()
 
Object getRelatedEntity ()
 
void setRelatedEntity (Object relatedEntity)
 

Protected Member Functions

String convertToString (Task v)
 
- Protected Member Functions inherited from org.turro.zkoss.input.CollectionListbox< V >
void populateList ()
 
boolean equals (V value, V obj)
 
abstract String convertToString (V v)
 
void beforeAppend (Listitem li)
 

Additional Inherited Members

- Static Public Attributes inherited from org.turro.zkoss.input.CollectionListbox< V >
static final String ITEM_SEPARATOR = "|||"
 
- Protected Attributes inherited from org.turro.zkoss.input.GenericListbox< V >
boolean populated = false
 

Detailed Description

Member Function Documentation

◆ convertToString()

String org.turro.erp.task.TaskListbox.convertToString ( Task  v)
protected

Definition at line 78 of file bserp-www/src/main/java/org/turro/erp/task/TaskListbox.java.

78  {
79  return v.getName();
80  }
Here is the call graph for this function:

◆ getObjectValue()

Task org.turro.erp.task.TaskListbox.getObjectValue ( )

Reimplemented from org.turro.zkoss.input.GenericListbox< V >.

Definition at line 83 of file bserp-www/src/main/java/org/turro/erp/task/TaskListbox.java.

83  {
84  Task t = super.getObjectValue();
85 // if(t == null && (workOrder != null || orderReference != null) && isAllowNull()) {
86 // Collection c = Listeners.cancelListener(this, Events.ON_BLUR);
87 // if(orderReference != null) {
88 // t = TaskWrapper.createQuickTask(orderReference);
89 // } else {
90 // t = TaskWrapper.createQuickTask(workOrder);
91 // }
92 // Listeners.activateListeners(this, Events.ON_BLUR, c);
93 // }
94  return t;
95  }
Here is the caller graph for this function:

◆ setOrderReference()

void org.turro.erp.task.TaskListbox.setOrderReference ( OrderReference  orderReference)

Definition at line 64 of file bserp-www/src/main/java/org/turro/erp/task/TaskListbox.java.

64  {
65  this.orderReference = orderReference;
66  ArrayList<Task> l = new ArrayList<Task>();
67  if(orderReference != null) {
68  for(Task t : orderReference.getTasks()) {
69  if(reference == null || reference.getId() != t.getId()) {
70  l.add(t);
71  }
72  }
73  }
75  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setReference()

void org.turro.erp.task.TaskListbox.setReference ( Task  reference)

Definition at line 40 of file bserp-www/src/main/java/org/turro/erp/task/TaskListbox.java.

40  {
41  this.reference = reference;
42  }

◆ setWorkOrder() [1/2]

void org.turro.erp.task.TaskListbox.setWorkOrder ( WorkOrder  workOrder)

Definition at line 44 of file bserp-www/src/main/java/org/turro/erp/task/TaskListbox.java.

44  {
45  setWorkOrder(workOrder, null);
46  }
Here is the caller graph for this function:

◆ setWorkOrder() [2/2]

void org.turro.erp.task.TaskListbox.setWorkOrder ( WorkOrder  workOrder,
Task  task 
)

Definition at line 48 of file bserp-www/src/main/java/org/turro/erp/task/TaskListbox.java.

48  {
49  this.workOrder = workOrder;
50  ArrayList<Task> l = new ArrayList<Task>();
51  if(task != null) l.add(task);
52  if(workOrder != null) {
53  for(OrderReference or : workOrder.getOrderReferences()) {
54  for(Task t : or.getTasks()) {
55  if(reference == null || reference.getId() != t.getId()) {
56  l.add(t);
57  }
58  }
59  }
60  }
62  }
Set< OrderReference > getOrderReferences()
Definition: WorkOrder.java:124
Here is the call graph for this function:

The documentation for this class was generated from the following file: