BrightSide Workbench Full Report + Source Code
org.turro.zkoss.label.Htmls Class Reference

Public Member Functions

Htmls width (String width)
 
Htmls height (String height)
 
Htmls hflex (String flex)
 
Htmls vflex (String flex)
 
Htmls style (String style)
 
Htmls tooltiptext (String text)
 
Htmls cssClass (String cssClass)
 
Htmls max (int maxChars)
 
Htmls content (String text)
 
Htmls focus ()
 
Htmls onClick (EventListener listener)
 
Html get ()
 
Html get (Consumer< Html > onGet)
 

Static Public Member Functions

static Htmls text (String content)
 
static Htmls icon (String icon)
 

Detailed Description

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

Definition at line 32 of file Htmls.java.

Member Function Documentation

◆ content()

Htmls org.turro.zkoss.label.Htmls.content ( String  text)

Definition at line 74 of file Htmls.java.

74  {
75  html.setContent(text);
76  return this;
77  }
static Htmls text(String content)
Definition: Htmls.java:100
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cssClass()

Htmls org.turro.zkoss.label.Htmls.cssClass ( String  cssClass)

Definition at line 64 of file Htmls.java.

64  {
65  html.setSclass(cssClass);
66  return this;
67  }
Htmls cssClass(String cssClass)
Definition: Htmls.java:64

◆ focus()

Htmls org.turro.zkoss.label.Htmls.focus ( )

Definition at line 79 of file Htmls.java.

79  {
80  html.setFocus(true);
81  return this;
82  }

◆ get() [1/2]

Html org.turro.zkoss.label.Htmls.get ( )

Definition at line 89 of file Htmls.java.

89  {
90  return html;
91  }

◆ get() [2/2]

Html org.turro.zkoss.label.Htmls.get ( Consumer< Html >  onGet)

Definition at line 93 of file Htmls.java.

93  {
94  onGet.accept(html);
95  return html;
96  }

◆ height()

Htmls org.turro.zkoss.label.Htmls.height ( String  height)

Definition at line 39 of file Htmls.java.

39  {
40  html.setHeight(height);
41  return this;
42  }
Htmls height(String height)
Definition: Htmls.java:39

◆ hflex()

Htmls org.turro.zkoss.label.Htmls.hflex ( String  flex)

Definition at line 44 of file Htmls.java.

44  {
45  html.setHflex(flex);
46  return this;
47  }

◆ icon()

static Htmls org.turro.zkoss.label.Htmls.icon ( String  icon)
static

Definition at line 104 of file Htmls.java.

104  {
105  return new Htmls(Phrases.start("<i class='").add(icon).add("icon'></i>").toString());
106  }
static Htmls icon(String icon)
Definition: Htmls.java:104

◆ max()

Htmls org.turro.zkoss.label.Htmls.max ( int  maxChars)

Definition at line 69 of file Htmls.java.

69  {
70  return tooltiptext(html.getContent())
71  .content(HtmlContent.truncate(html.getContent(), maxChars));
72  }
Htmls tooltiptext(String text)
Definition: Htmls.java:59
Htmls content(String text)
Definition: Htmls.java:74
Here is the call graph for this function:

◆ onClick()

Htmls org.turro.zkoss.label.Htmls.onClick ( EventListener  listener)

Definition at line 84 of file Htmls.java.

84  {
85  html.addEventListener(Events.ON_CLICK, listener);
86  return this;
87  }

◆ style()

Htmls org.turro.zkoss.label.Htmls.style ( String  style)

Definition at line 54 of file Htmls.java.

54  {
55  html.setStyle(style);
56  return this;
57  }
Htmls style(String style)
Definition: Htmls.java:54

◆ text()

static Htmls org.turro.zkoss.label.Htmls.text ( String  content)
static

Definition at line 100 of file Htmls.java.

100  {
101  return new Htmls(content);
102  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tooltiptext()

Htmls org.turro.zkoss.label.Htmls.tooltiptext ( String  text)

Definition at line 59 of file Htmls.java.

59  {
60  html.setTooltiptext(text);
61  return this;
62  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vflex()

Htmls org.turro.zkoss.label.Htmls.vflex ( String  flex)

Definition at line 49 of file Htmls.java.

49  {
50  html.setVflex(flex);
51  return this;
52  }

◆ width()

Htmls org.turro.zkoss.label.Htmls.width ( String  width)

Definition at line 34 of file Htmls.java.

34  {
35  html.setWidth(width);
36  return this;
37  }
Htmls width(String width)
Definition: Htmls.java:34

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