BrightSide Workbench Full Report + Source Code
org.turro.zul.acceptance.AcceptanceButton Class Reference
Inheritance diagram for org.turro.zul.acceptance.AcceptanceButton:
Collaboration diagram for org.turro.zul.acceptance.AcceptanceButton:

Public Member Functions

Object getEntity ()
 
void setEntity (Object entity)
 
boolean isAccepted ()
 
boolean isBlocked ()
 

Detailed Description

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

Definition at line 40 of file AcceptanceButton.java.

Member Function Documentation

◆ getEntity()

Object org.turro.zul.acceptance.AcceptanceButton.getEntity ( )

Implements org.turro.plugin.acceptance.IAcceptanceCtrl.

Definition at line 47 of file AcceptanceButton.java.

47  {
48  return entity;
49  }

◆ isAccepted()

boolean org.turro.zul.acceptance.AcceptanceButton.isAccepted ( )

Implements org.turro.plugin.acceptance.IAcceptanceCtrl.

Definition at line 81 of file AcceptanceButton.java.

81  {
82  return AcceptanceUtil.isAccepted(path);
83  }
Here is the call graph for this function:

◆ isBlocked()

boolean org.turro.zul.acceptance.AcceptanceButton.isBlocked ( )

Implements org.turro.plugin.acceptance.IAcceptanceCtrl.

Definition at line 86 of file AcceptanceButton.java.

86  {
87  return AcceptanceUtil.isBlocked(path);
88  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setEntity()

void org.turro.zul.acceptance.AcceptanceButton.setEntity ( Object  entity)

Implements org.turro.plugin.acceptance.IAcceptanceCtrl.

Definition at line 52 of file AcceptanceButton.java.

52  {
53  this.entity = entity;
54  if(entity instanceof String) {
55  path = (String) entity;
56  } else {
57  path = Entities.getController(entity).getPath();
58  }
59  setStatus();
60  setTooltiptext(I_.get("Acceptance"));
61  addEventListener(Events.ON_CLICK, new EventListener() {
62  @Override
63  public void onEvent(Event event) throws Exception {
64  ContactMenu.showAcceptance(path, new Command() {
65  @Override
66  public Object execute(Context context) {
67  setStatus();
68  return null;
69  }
70  });
71  }
72  });
73  }
Here is the call graph for this function:

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