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

Public Member Functions

Windows page (Page page)
 
Windows position (String position)
 
Windows closeable ()
 
Windows width (String width)
 
Windows height (String height)
 
Windows sizeable ()
 
Windows scrollable ()
 
Windows onClose (Consumer< Windows > onClose)
 
Windows addSpace ()
 
Windows addComponent (HtmlBasedComponent component)
 
Windows addComponent (String uri, Map args)
 
Windows adaptWidth (int width)
 
Windows adaptHeight (int height)
 
void show ()
 

Static Public Member Functions

static void showHtml (String title, String html)
 
static Windows title (String title)
 

Detailed Description

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

Definition at line 42 of file Windows.java.

Member Function Documentation

◆ adaptHeight()

Windows org.turro.zkoss.dialog.Windows.adaptHeight ( int  height)

Definition at line 115 of file Windows.java.

115  {
116  return height((height + HEIGHT_ADAPT) + "px");
117  }
Windows height(String height)
Definition: Windows.java:66
Here is the call graph for this function:
Here is the caller graph for this function:

◆ adaptWidth()

Windows org.turro.zkoss.dialog.Windows.adaptWidth ( int  width)

Definition at line 111 of file Windows.java.

111  {
112  return width((width + WIDTH_ADAPT) + "px");
113  }
Windows width(String width)
Definition: Windows.java:61
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addComponent() [1/2]

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

Definition at line 97 of file Windows.java.

97  {
98  components.add(component);
99  return this;
100  }
Here is the caller graph for this function:

◆ addComponent() [2/2]

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

Definition at line 102 of file Windows.java.

102  {
103  Include include = new Include("/WEB-INF/_zul" + uri);
104  if(args != null) {
105  args.forEach((k, v) -> include.setDynamicProperty((String) k, v));
106  }
107  components.add(include);
108  return this;
109  }

◆ addSpace()

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

Definition at line 92 of file Windows.java.

92  {
93  components.add(new Space());
94  return this;
95  }

◆ closeable()

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

Definition at line 56 of file Windows.java.

56  {
57  setClosable(true);
58  return this;
59  }
Here is the caller graph for this function:

◆ height()

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

Definition at line 66 of file Windows.java.

66  {
67  setHeight(height);
68  return this;
69  }
Here is the caller graph for this function:

◆ onClose()

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

Definition at line 81 of file Windows.java.

81  {
82  if(onClose != null) {
83  EventListener el = (EventListener) (Event event) -> {
84  onClose.accept(Windows.this);
85  detach();
86  };
87  addEventListener(Events.ON_CLOSE, el);
88  }
89  return this;
90  }
Windows onClose(Consumer< Windows > onClose)
Definition: Windows.java:81
Here is the caller graph for this function:

◆ page()

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

Definition at line 46 of file Windows.java.

46  {
47  setPage(page);
48  return this;
49  }
Windows page(Page page)
Definition: Windows.java:46
Here is the caller graph for this function:

◆ position()

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

Definition at line 51 of file Windows.java.

51  {
52  setPosition(position);
53  return this;
54  }
Windows position(String position)
Definition: Windows.java:51

◆ scrollable()

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

Definition at line 76 of file Windows.java.

76  {
77  setContentStyle("overflow-y:auto");
78  return this;
79  }
Here is the caller graph for this function:

◆ show()

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

Definition at line 119 of file Windows.java.

119  {
120  createComponents();
121  doModal();
122  }
Here is the caller graph for this function:

◆ showHtml()

static void org.turro.zkoss.dialog.Windows.showHtml ( String  title,
String  html 
)
static

Definition at line 126 of file Windows.java.

126  {
127  Html component = new Html(html);
128  Windows.title(title)
129  .addComponent(component)
130  .width("900px")
131  .height("60%")
132  .sizeable()
133  .scrollable()
134  .closeable()
135  .show();
136  }
static Windows title(String title)
Definition: Windows.java:138
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeable()

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

Definition at line 71 of file Windows.java.

71  {
72  setSizable(true);
73  return this;
74  }
Here is the caller graph for this function:

◆ title()

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

Definition at line 138 of file Windows.java.

138  {
139  return new Windows(title);
140  }
Here is the caller graph for this function:

◆ width()

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

Definition at line 61 of file Windows.java.

61  {
62  setWidth(width);
63  return this;
64  }
Here is the caller graph for this function:

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