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

Public Member Functions

void setAllResources (boolean allResources)
 
void setTask (Task task)
 
- 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)
 
getObjectValue ()
 
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 (Resource 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

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file ResourceListbox.java.

Member Function Documentation

◆ convertToString()

String org.turro.erp.resource.ResourceListbox.convertToString ( Resource  v)
protected

Definition at line 61 of file ResourceListbox.java.

61  {
62  return v.getName();
63  }
Here is the call graph for this function:

◆ setAllResources()

void org.turro.erp.resource.ResourceListbox.setAllResources ( boolean  allResources)

Definition at line 36 of file ResourceListbox.java.

36  {
37  this.allResources = allResources;
38  }

◆ setTask()

void org.turro.erp.resource.ResourceListbox.setTask ( Task  task)

Definition at line 40 of file ResourceListbox.java.

40  {
41  ArrayList<Resource> l = new ArrayList<Resource>();
42  if(allResources) {
43  boolean done;
44  for(Resource r : (List<Resource>) new ErpPU().getResultList("select r from Resource as r")) {
45  done = false;
46  for(Resource rin : l) {
47  if(r.getId() == rin.getId()) {
48  done = true;
49  break;
50  }
51  }
52  if(!done) {
53  l.add(r);
54  }
55  }
56  }
58  }
Here is the call graph for this function:

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