BrightSide Workbench Full Report + Source Code
org.turro.zkoss.dialog.Dialogs Class Reference
Inheritance diagram for org.turro.zkoss.dialog.Dialogs:
Collaboration diagram for org.turro.zkoss.dialog.Dialogs:

Public Member Functions

Dialogs page (Page page)
 
Dialogs position (String position)
 
Dialogs closeable ()
 
Dialogs width (String width)
 
Dialogs height (String height)
 
Dialogs sizeable ()
 
Dialogs onOk (Consumer< Dialogs > onOk)
 
Dialogs onCancel (Consumer< Dialogs > onCancel)
 
Dialogs emptyCancel ()
 
Dialogs onClose (Consumer< Dialogs > onClose)
 
Dialogs emptyClose ()
 
Dialogs addField (DialogField field)
 
Dialogs addComponent (HtmlBasedComponent component)
 
Dialogs addComponent (String uri, Map args)
 
Dialogs addComponent (String uri, String height, Map args)
 
void show ()
 
Object getValue (String label)
 

Static Public Member Functions

static Dialogs title (String title)
 

Detailed Description

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

Definition at line 46 of file Dialogs.java.

Member Function Documentation

◆ addComponent() [1/3]

Dialogs org.turro.zkoss.dialog.Dialogs.addComponent ( HtmlBasedComponent  component)

Definition at line 115 of file Dialogs.java.

115  {
116  components.add(component);
117  return this;
118  }
Here is the caller graph for this function:

◆ addComponent() [2/3]

Dialogs org.turro.zkoss.dialog.Dialogs.addComponent ( String  uri,
Map  args 
)

Definition at line 120 of file Dialogs.java.

120  {
121  return addComponent(uri, "100%", args);
122  }
Dialogs addComponent(HtmlBasedComponent component)
Definition: Dialogs.java:115
Here is the call graph for this function:

◆ addComponent() [3/3]

Dialogs org.turro.zkoss.dialog.Dialogs.addComponent ( String  uri,
String  height,
Map  args 
)

Definition at line 124 of file Dialogs.java.

124  {
125  Include include = new Include("/WEB-INF/_zul" + uri);
126  if(args != null) {
127  args.forEach((k, v) -> include.setDynamicProperty((String) k, v));
128  }
129  include.setHeight(height);
130  components.add(include);
131  return this;
132  }
Dialogs height(String height)
Definition: Dialogs.java:75
Here is the call graph for this function:

◆ addField()

Dialogs org.turro.zkoss.dialog.Dialogs.addField ( DialogField  field)

Definition at line 110 of file Dialogs.java.

110  {
111  fields.add(field.initField());
112  return this;
113  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeable()

Dialogs org.turro.zkoss.dialog.Dialogs.closeable ( )

Definition at line 65 of file Dialogs.java.

65  {
66  setClosable(true);
67  return this;
68  }

◆ emptyCancel()

Dialogs org.turro.zkoss.dialog.Dialogs.emptyCancel ( )

Definition at line 95 of file Dialogs.java.

95  {
96  events.add(new DialogEvent(DialogButton.BUTTON_CANCEL, null));
97  return this;
98  }
Here is the caller graph for this function:

◆ emptyClose()

Dialogs org.turro.zkoss.dialog.Dialogs.emptyClose ( )

Definition at line 105 of file Dialogs.java.

105  {
106  events.add(new DialogEvent(DialogButton.BUTTON_CLOSE, null));
107  return this;
108  }
Here is the caller graph for this function:

◆ getValue()

Object org.turro.zkoss.dialog.Dialogs.getValue ( String  label)

Definition at line 151 of file Dialogs.java.

151  {
152  return fields.stream().filter(f -> label.equals(f.getLabel())).findFirst().get().getEditorValue();
153  }

◆ height()

Dialogs org.turro.zkoss.dialog.Dialogs.height ( String  height)

Definition at line 75 of file Dialogs.java.

75  {
76  setHeight(height);
77  return this;
78  }
Here is the caller graph for this function:

◆ onCancel()

Dialogs org.turro.zkoss.dialog.Dialogs.onCancel ( Consumer< Dialogs onCancel)

Definition at line 90 of file Dialogs.java.

90  {
91  events.add(new DialogEvent(DialogButton.BUTTON_CANCEL, onCancel));
92  return this;
93  }
Dialogs onCancel(Consumer< Dialogs > onCancel)
Definition: Dialogs.java:90

◆ onClose()

Dialogs org.turro.zkoss.dialog.Dialogs.onClose ( Consumer< Dialogs onClose)

Definition at line 100 of file Dialogs.java.

100  {
101  events.add(new DialogEvent(DialogButton.BUTTON_CLOSE, onClose));
102  return this;
103  }
Dialogs onClose(Consumer< Dialogs > onClose)
Definition: Dialogs.java:100

◆ onOk()

Dialogs org.turro.zkoss.dialog.Dialogs.onOk ( Consumer< Dialogs onOk)

Definition at line 85 of file Dialogs.java.

85  {
86  events.add(new DialogEvent(DialogButton.BUTTON_OK, onOk));
87  return this;
88  }
Dialogs onOk(Consumer< Dialogs > onOk)
Definition: Dialogs.java:85
Here is the caller graph for this function:

◆ page()

Dialogs org.turro.zkoss.dialog.Dialogs.page ( Page  page)

Definition at line 55 of file Dialogs.java.

55  {
56  setPage(page);
57  return this;
58  }
Dialogs page(Page page)
Definition: Dialogs.java:55

◆ position()

Dialogs org.turro.zkoss.dialog.Dialogs.position ( String  position)

Definition at line 60 of file Dialogs.java.

60  {
61  setPosition(position);
62  return this;
63  }
Dialogs position(String position)
Definition: Dialogs.java:60

◆ show()

void org.turro.zkoss.dialog.Dialogs.show ( )

Definition at line 134 of file Dialogs.java.

134  {
135  createContainer();
136  createComponents();
137  createFields();
138  createButtons();
139  if(getPage() == null) {
140  setPage(getMeAPage());
141  }
142  doModal();
143  }
Here is the caller graph for this function:

◆ sizeable()

Dialogs org.turro.zkoss.dialog.Dialogs.sizeable ( )

Definition at line 80 of file Dialogs.java.

80  {
81  setSizable(true);
82  return this;
83  }

◆ title()

static Dialogs org.turro.zkoss.dialog.Dialogs.title ( String  title)
static

Definition at line 161 of file Dialogs.java.

161  {
162  return new Dialogs(title);
163  }
static Dialogs title(String title)
Definition: Dialogs.java:161
Here is the caller graph for this function:

◆ width()

Dialogs org.turro.zkoss.dialog.Dialogs.width ( String  width)

Definition at line 70 of file Dialogs.java.

70  {
71  setWidth(width);
72  return this;
73  }
Dialogs width(String width)
Definition: Dialogs.java:70
Here is the caller graph for this function:

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