BrightSide Workbench Full Report + Source Code
org.turro.contacts.duplicates.DuplicatesVM Class Reference

Public Member Functions

void init (@ExecutionArgParam("contact") Contact contact, @ExecutionArgParam("dupmodel") DuplicatesModel dupmodel, @ExecutionArgParam("onSave") Consumer< Contact > onSave)
 
void onSave (@BindingParam("component") Component component)
 
void onCancel (@BindingParam("component") Component component)
 
boolean canSave ()
 
DuplicatesModel getModel ()
 

Detailed Description

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

Definition at line 37 of file DuplicatesVM.java.

Member Function Documentation

◆ canSave()

boolean org.turro.contacts.duplicates.DuplicatesVM.canSave ( )

Definition at line 63 of file DuplicatesVM.java.

63  {
64  return !dupmodel.hasStoppers();
65  }
Here is the call graph for this function:

◆ getModel()

DuplicatesModel org.turro.contacts.duplicates.DuplicatesVM.getModel ( )

Definition at line 67 of file DuplicatesVM.java.

67  {
68  return dupmodel;
69  }

◆ init()

void org.turro.contacts.duplicates.DuplicatesVM.init ( @ExecutionArgParam("contact") Contact  contact,
@ExecutionArgParam("dupmodel") DuplicatesModel  dupmodel,
@ExecutionArgParam("onSave") Consumer< Contact onSave 
)

Definition at line 44 of file DuplicatesVM.java.

46  {
47  this.contact = contact;
48  this.dupmodel = dupmodel;
49  this.onSave = onSave;
50  }

◆ onCancel()

void org.turro.contacts.duplicates.DuplicatesVM.onCancel ( @BindingParam("component") Component  component)

Definition at line 59 of file DuplicatesVM.java.

59  {
60  Events.postEvent(new Event(Events.ON_CLOSE, Components.from(component).parent(Window.class), null));
61  }
Here is the call graph for this function:

◆ onSave()

void org.turro.contacts.duplicates.DuplicatesVM.onSave ( @BindingParam("component") Component  component)

Definition at line 53 of file DuplicatesVM.java.

53  {
54  onSave.accept(contact);
55  Events.postEvent(new Event(Events.ON_CLOSE, Components.from(component).parent(Window.class), null));
56  }
Here is the call graph for this function:

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