BrightSide Workbench Full Report + Source Code
org.turro.crm.zul.activity.ActivityButton Class Reference
Inheritance diagram for org.turro.crm.zul.activity.ActivityButton:
Collaboration diagram for org.turro.crm.zul.activity.ActivityButton:

Public Member Functions

void setEntity (Object entity)
 
void afterCompose ()
 

Detailed Description

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

Definition at line 37 of file ActivityButton.java.

Member Function Documentation

◆ afterCompose()

void org.turro.crm.zul.activity.ActivityButton.afterCompose ( )

Definition at line 46 of file ActivityButton.java.

46  {
47  setImage(Images.getImage("activity"));
48  setTooltiptext(I_.get("Activity"));
49  addEventListener(Events.ON_CLICK, new EventListener<Event>() {
50  @Override
51  public void onEvent(Event event) throws Exception {
52  if(entity instanceof Vendor) {
53  CrmMenu.showActivity((Vendor) entity, null, null);
54  } else if(entity instanceof Customer) {
55  CrmMenu.showActivity(null, (Customer) entity, null);
56  } else if(entity instanceof SaleProspect) {
57  CrmMenu.showActivity(null, null, (SaleProspect) entity);
58  }
59  }
60  });
61  }
Here is the call graph for this function:

◆ setEntity()

void org.turro.crm.zul.activity.ActivityButton.setEntity ( Object  entity)

Definition at line 41 of file ActivityButton.java.

41  {
42  this.entity = entity;
43  }

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