BrightSide Workbench Full Report + Source Code
org.turro.elephant.zkoss.Modal Class Reference

Static Public Member Functions

static int doModal (String file) throws InterruptedException
 
static int doModal (String file, Map arg) throws InterruptedException
 
static int doModal (String file, Component parent, Map arg) throws InterruptedException
 
static int doModal (ModalWindow win) throws InterruptedException
 
static void doModal (Window win) throws InterruptedException
 
static void doModal (String file, Command command)
 
static void doModal (String file, Map arg, Command command) throws InterruptedException
 
static void doModal (String file, Component parent, Map arg, Command command)
 
static void doModal (final Window win, final Command command)
 
static ModalWindow getModal (String file)
 
static ModalWindow getModal (String file, Map arg)
 
static ModalWindow getModal (String file, Component parent, Map arg)
 

Detailed Description

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

Definition at line 35 of file Modal.java.

Member Function Documentation

◆ doModal() [1/9]

static void org.turro.elephant.zkoss.Modal.doModal ( final Window  win,
final Command  command 
)
static

Definition at line 93 of file Modal.java.

93  {
94  win.addEventListener(Events.ON_CLOSE, new EventListener<Event>() {
95  @Override
96  public void onEvent(Event event) throws Exception {
97  if(command != null) {
98  Context ctx = new Context();
99  ctx.put("win", win);
100  command.execute(ctx);
101  }
102  win.removeEventListener(Events.ON_CLOSE, this);
103  win.detach();
104  }
105  });
106  win.doModal();
107  }

◆ doModal() [2/9]

static int org.turro.elephant.zkoss.Modal.doModal ( ModalWindow  win) throws InterruptedException
static

Definition at line 53 of file Modal.java.

53  {
54  if(win.getDesktop().getWebApp().getConfiguration().isEventThreadEnabled()) {
55  try {
56  win.doModal();
57  } catch (Throwable ex) {
58  win.detach();
59  if (ex instanceof InterruptedException)
60  throw (InterruptedException)ex;
61  throw UiException.Aide.wrap(ex);
62  }
63  }
64  return win.getResult();
65  }

◆ doModal() [3/9]

static int org.turro.elephant.zkoss.Modal.doModal ( String  file) throws InterruptedException
static

Definition at line 38 of file Modal.java.

38  {
39  return doModal(file, null, (Map) null);
40  }
static int doModal(String file)
Definition: Modal.java:38
Here is the caller graph for this function:

◆ doModal() [4/9]

static void org.turro.elephant.zkoss.Modal.doModal ( String  file,
Command  command 
)
static

Definition at line 81 of file Modal.java.

81  {
82  doModal(file, null, null, command);
83  }
Here is the call graph for this function:

◆ doModal() [5/9]

static int org.turro.elephant.zkoss.Modal.doModal ( String  file,
Component  parent,
Map  arg 
) throws InterruptedException
static

Definition at line 48 of file Modal.java.

48  {
49  return doModal(getModal(file, parent, arg));
50  }
static ModalWindow getModal(String file)
Definition: Modal.java:109
Here is the call graph for this function:

◆ doModal() [6/9]

static void org.turro.elephant.zkoss.Modal.doModal ( String  file,
Component  parent,
Map  arg,
Command  command 
)
static

Definition at line 89 of file Modal.java.

89  {
90  doModal(getModal(file, parent, arg), command);
91  }
Here is the call graph for this function:

◆ doModal() [7/9]

static int org.turro.elephant.zkoss.Modal.doModal ( String  file,
Map  arg 
) throws InterruptedException
static

Definition at line 43 of file Modal.java.

43  {
44  return doModal(file, null, arg);
45  }
Here is the call graph for this function:

◆ doModal() [8/9]

static void org.turro.elephant.zkoss.Modal.doModal ( String  file,
Map  arg,
Command  command 
) throws InterruptedException
static

Definition at line 85 of file Modal.java.

85  {
86  doModal(file, null, arg, command);
87  }
Here is the call graph for this function:

◆ doModal() [9/9]

static void org.turro.elephant.zkoss.Modal.doModal ( Window  win) throws InterruptedException
static

Definition at line 68 of file Modal.java.

68  {
69  if(win.getDesktop().getWebApp().getConfiguration().isEventThreadEnabled()) {
70  try {
71  win.doModal();
72  } catch (Throwable ex) {
73  win.detach();
74  if (ex instanceof InterruptedException)
75  throw (InterruptedException)ex;
76  throw UiException.Aide.wrap(ex);
77  }
78  }
79  }

◆ getModal() [1/3]

static ModalWindow org.turro.elephant.zkoss.Modal.getModal ( String  file)
static

Definition at line 109 of file Modal.java.

109  {
110  return (ModalWindow) Executions.createComponents(file, null, null);
111  }
Here is the caller graph for this function:

◆ getModal() [2/3]

static ModalWindow org.turro.elephant.zkoss.Modal.getModal ( String  file,
Component  parent,
Map  arg 
)
static

Definition at line 117 of file Modal.java.

117  {
118  return (ModalWindow) Executions.createComponents(file, parent, arg);
119  }

◆ getModal() [3/3]

static ModalWindow org.turro.elephant.zkoss.Modal.getModal ( String  file,
Map  arg 
)
static

Definition at line 113 of file Modal.java.

113  {
114  return (ModalWindow) Executions.createComponents(file, null, arg);
115  }

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