BrightSide Workbench Full Report + Source Code
org.turro.contacts.zul.proposal.Duplicates Class Reference
Inheritance diagram for org.turro.contacts.zul.proposal.Duplicates:
Collaboration diagram for org.turro.contacts.zul.proposal.Duplicates:

Public Member Functions

 Duplicates (Contact contact)
 
boolean saveNow ()
 
boolean canSave ()
 
void checkIt ()
 
void onSave ()
 
void onCancel ()
 

Detailed Description

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

Definition at line 47 of file Duplicates.java.

Constructor & Destructor Documentation

◆ Duplicates()

org.turro.contacts.zul.proposal.Duplicates.Duplicates ( Contact  contact)

Definition at line 56 of file Duplicates.java.

56  {
57  this.contact = contact;
58  setBorder(true);
59  setTitle(I_.get("Posibles duplicates"));
60  setClosable(false);
61  Executions.createComponents("/WEB-INF/_zul/contact/duplicates.zul", this, null);
62  Selectors.wireComponents(this, this, false);
63  Selectors.wireEventListeners(this, this);
64  Framework.getCurrent().appendChild(this);
65  }
Here is the call graph for this function:

Member Function Documentation

◆ canSave()

boolean org.turro.contacts.zul.proposal.Duplicates.canSave ( )

Definition at line 76 of file Duplicates.java.

76  {
77  return canSave;
78  }

◆ checkIt()

void org.turro.contacts.zul.proposal.Duplicates.checkIt ( )

Definition at line 80 of file Duplicates.java.

80  {
81  if(!proposal.isNoAction()) {
82  canSave = false;
83  }
84  addAttributes();
85  if(canSave) {
86  save.setLabel(I_.get("Confirm saving"));
87  } else {
88  save.setVisible(false);
89  }
90  cancel.setLabel(I_.get("Cancel"));
91  }
Here is the call graph for this function:

◆ onCancel()

void org.turro.contacts.zul.proposal.Duplicates.onCancel ( )

Definition at line 100 of file Duplicates.java.

100  {
101  canSave = false;
102  Events.postEvent(new Event(Events.ON_CLOSE, this));
103  }

◆ onSave()

void org.turro.contacts.zul.proposal.Duplicates.onSave ( )

Definition at line 94 of file Duplicates.java.

94  {
95  canSave = true;
96  Events.postEvent(new Event(Events.ON_CLOSE, this));
97  }

◆ saveNow()

boolean org.turro.contacts.zul.proposal.Duplicates.saveNow ( )

Definition at line 67 of file Duplicates.java.

67  {
68  proposal = new ContactProposal(contact, !Strings.isBlank(contact.getId()));
69  boolean saveIt = proposal.isSureNew();
70  if(saveIt) {
71  detach();
72  }
73  return saveIt;
74  }
Here is the call graph for this function:

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