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

Public Member Functions

As width (String width)
 
As height (String height)
 
As hflex (String flex)
 
As vflex (String flex)
 
As style (String style)
 
As tooltiptext (String text)
 
As dark ()
 
As cssClass (String cssClass)
 
As max (int maxChars)
 
As value (String text)
 
As icon (String icon)
 
As focus ()
 
As onClick (EventListener listener)
 
get ()
 
get (Consumer< A > onGet)
 

Static Public Member Functions

static As content (String text)
 
static As content (String text, String image)
 
static As image (String image)
 
static As icon (String icon, String tip)
 

Detailed Description

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

Definition at line 31 of file As.java.

Member Function Documentation

◆ content() [1/2]

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

Definition at line 108 of file As.java.

108  {
109  return new As(text, null);
110  }

◆ content() [2/2]

static As org.turro.zkoss.label.As.content ( String  text,
String  image 
)
static

Definition at line 112 of file As.java.

112  {
113  return new As(text, image);
114  }
static As image(String image)
Definition: As.java:116
Here is the call graph for this function:

◆ cssClass()

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

Definition at line 67 of file As.java.

67  {
68  anchor.setSclass(cssClass);
69  return this;
70  }
As cssClass(String cssClass)
Definition: As.java:67
Here is the caller graph for this function:

◆ dark()

As org.turro.zkoss.label.As.dark ( )

Definition at line 63 of file As.java.

63  {
64  return cssClass("darkLink");
65  }
Here is the call graph for this function:

◆ focus()

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

Definition at line 87 of file As.java.

87  {
88  anchor.setFocus(true);
89  return this;
90  }

◆ get() [1/2]

A org.turro.zkoss.label.As.get ( )

Definition at line 97 of file As.java.

97  {
98  return anchor;
99  }

◆ get() [2/2]

A org.turro.zkoss.label.As.get ( Consumer< A >  onGet)

Definition at line 101 of file As.java.

101  {
102  onGet.accept(anchor);
103  return anchor;
104  }

◆ height()

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

Definition at line 38 of file As.java.

38  {
39  anchor.setHeight(height);
40  return this;
41  }
As height(String height)
Definition: As.java:38

◆ hflex()

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

Definition at line 43 of file As.java.

43  {
44  anchor.setHflex(flex);
45  return this;
46  }

◆ icon() [1/2]

As org.turro.zkoss.label.As.icon ( String  icon)

Definition at line 82 of file As.java.

82  {
83  anchor.setIconSclass("z-icon-" + icon);
84  return this;
85  }
As icon(String icon)
Definition: As.java:82
Here is the caller graph for this function:

◆ icon() [2/2]

static As org.turro.zkoss.label.As.icon ( String  icon,
String  tip 
)
static

Definition at line 120 of file As.java.

120  {
121  return new As(null, null).tooltiptext(tip).icon(icon);
122  }
Here is the call graph for this function:

◆ image()

static As org.turro.zkoss.label.As.image ( String  image)
static

Definition at line 116 of file As.java.

116  {
117  return new As(null, image);
118  }
Here is the caller graph for this function:

◆ max()

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

Definition at line 72 of file As.java.

72  {
73  return tooltiptext(anchor.getLabel())
74  .value(Strings.truncateAndWarn(anchor.getLabel(), maxChars));
75  }
As value(String text)
Definition: As.java:77
As tooltiptext(String text)
Definition: As.java:58
Here is the call graph for this function:

◆ onClick()

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

Definition at line 92 of file As.java.

92  {
93  anchor.addEventListener(Events.ON_CLICK, listener);
94  return this;
95  }

◆ style()

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

Definition at line 53 of file As.java.

53  {
54  anchor.setStyle(style);
55  return this;
56  }
As style(String style)
Definition: As.java:53

◆ tooltiptext()

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

Definition at line 58 of file As.java.

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

◆ value()

As org.turro.zkoss.label.As.value ( String  text)

Definition at line 77 of file As.java.

77  {
78  anchor.setLabel(text);
79  return this;
80  }
Here is the caller graph for this function:

◆ vflex()

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

Definition at line 48 of file As.java.

48  {
49  anchor.setVflex(flex);
50  return this;
51  }

◆ width()

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

Definition at line 33 of file As.java.

33  {
34  anchor.setWidth(width);
35  return this;
36  }
As width(String width)
Definition: As.java:33

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