BrightSide Workbench Full Report + Source Code
org.turro.elephant.documents.UserWrapper Class Reference
Inheritance diagram for org.turro.elephant.documents.UserWrapper:
Collaboration diagram for org.turro.elephant.documents.UserWrapper:

Public Member Functions

 UserWrapper (DocumentsBean db, IUser user)
 
String getId ()
 
String getName ()
 
String getSelected ()
 
int compareTo (Object o)
 

Detailed Description

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

Definition at line 26 of file UserWrapper.java.

Constructor & Destructor Documentation

◆ UserWrapper()

org.turro.elephant.documents.UserWrapper.UserWrapper ( DocumentsBean  db,
IUser  user 
)

Definition at line 31 of file UserWrapper.java.

31  {
32  this.db = db;
33  this.user = user;
34  }
Here is the caller graph for this function:

Member Function Documentation

◆ compareTo()

int org.turro.elephant.documents.UserWrapper.compareTo ( Object  o)

Definition at line 52 of file UserWrapper.java.

52  {
53  UserWrapper other = (UserWrapper) o;
54  return getName().compareTo(other.getName());
55  }
UserWrapper(DocumentsBean db, IUser user)
Here is the call graph for this function:

◆ getId()

String org.turro.elephant.documents.UserWrapper.getId ( )

Definition at line 36 of file UserWrapper.java.

36  {
37  return user.getId();
38  }
Here is the call graph for this function:

◆ getName()

String org.turro.elephant.documents.UserWrapper.getName ( )

Definition at line 40 of file UserWrapper.java.

40  {
41  return user.getName();
42  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSelected()

String org.turro.elephant.documents.UserWrapper.getSelected ( )

Definition at line 44 of file UserWrapper.java.

44  {
45  if(db.isSelected(user)) {
46  return "selected=\"selected\"";
47  }
48  return "";
49  }
Here is the call graph for this function:

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