BrightSide Workbench Full Report + Source Code
org.turro.financials.product.MovementButton Class Reference
Inheritance diagram for org.turro.financials.product.MovementButton:
Collaboration diagram for org.turro.financials.product.MovementButton:

Public Member Functions

IProduct getIProduct ()
 
void setIProduct (IProduct product)
 
void afterCompose ()
 

Detailed Description

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

Definition at line 33 of file MovementButton.java.

Member Function Documentation

◆ afterCompose()

void org.turro.financials.product.MovementButton.afterCompose ( )

Definition at line 48 of file MovementButton.java.

48  {
49  addEventListener(Events.ON_CLICK, new EventListener() {
50  @Override
51  public void onEvent(Event event) throws Exception {
52  if(product != null) {
53  HashMap<String, Object> map = new HashMap<String, Object>();
54  map.put("product", product);
55  ElephantMenu.showModalZulFile("@" + product.getProductString(), "/financials/product/movement.zul", map, null);
56  }
57  }
58  });
59  }
Here is the call graph for this function:

◆ getIProduct()

IProduct org.turro.financials.product.MovementButton.getIProduct ( )

Definition at line 37 of file MovementButton.java.

37  {
38  return product;
39  }

◆ setIProduct()

void org.turro.financials.product.MovementButton.setIProduct ( IProduct  product)

Definition at line 41 of file MovementButton.java.

41  {
42  this.product = product;
43  setImage("/_zul/images/store.png");
44  setDisabled(product == null);
45  }
Here is the caller graph for this function:

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