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

Public Member Functions

Popups width (String width)
 
Popups height (String height)
 
Popups scrollable ()
 
Popups onClose (Consumer< Popups > onClose)
 
Popups addSpace ()
 
Popups addComponent (HtmlBasedComponent component)
 
Popups addComponent (String uri, Map args)
 
void popup ()
 

Static Public Member Functions

static Popups instance ()
 

Detailed Description

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

Definition at line 40 of file Popups.java.

Member Function Documentation

◆ addComponent() [1/2]

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

Definition at line 75 of file Popups.java.

75  {
76  components.add(component);
77  return this;
78  }
Here is the caller graph for this function:

◆ addComponent() [2/2]

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

Definition at line 80 of file Popups.java.

80  {
81  Include include = new Include("/WEB-INF/_zul" + uri);
82  if(args != null) {
83  args.forEach((k, v) -> include.setDynamicProperty((String) k, v));
84  }
85  include.setDynamicProperty("popup", Framework.getCurrent().getGlobalPopup());
86  components.add(include);
87  return this;
88  }
Here is the call graph for this function:

◆ addSpace()

Popups org.turro.zkoss.dialog.Popups.addSpace ( )

Definition at line 70 of file Popups.java.

70  {
71  components.add(new Space());
72  return this;
73  }

◆ height()

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

Definition at line 49 of file Popups.java.

49  {
50  setHeight(height);
51  return this;
52  }
Popups height(String height)
Definition: Popups.java:49

◆ instance()

static Popups org.turro.zkoss.dialog.Popups.instance ( )
static

Definition at line 99 of file Popups.java.

99  {
100  return new Popups();
101  }
Here is the caller graph for this function:

◆ onClose()

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

Definition at line 59 of file Popups.java.

59  {
60  if(onClose != null) {
61  EventListener el = (EventListener) (Event event) -> {
62  onClose.accept(Popups.this);
63  detach();
64  };
65  addEventListener(Events.ON_CLOSE, el);
66  }
67  return this;
68  }
Popups onClose(Consumer< Popups > onClose)
Definition: Popups.java:59

◆ popup()

void org.turro.zkoss.dialog.Popups.popup ( )

Definition at line 90 of file Popups.java.

90  {
91  createComponents();
92  Popup popup = Framework.getCurrent().getGlobalPopup();
93  popup.appendChild(this);
94  popup.open(Framework.getCurrent());
95  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ scrollable()

Popups org.turro.zkoss.dialog.Popups.scrollable ( )

Definition at line 54 of file Popups.java.

54  {
55  setStyle("overflow-y:auto");
56  return this;
57  }

◆ width()

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

Definition at line 44 of file Popups.java.

44  {
45  setWidth(width);
46  return this;
47  }
Popups width(String width)
Definition: Popups.java:44

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