BrightSide Workbench Full Report + Source Code
org.turro.elephant.util.Toasts Class Reference

Public Member Functions

Toasts info ()
 
Toasts warning ()
 
Toasts error ()
 
Toasts top ()
 
Toasts bottom ()
 
Toasts duration (int duration)
 
Toasts closable ()
 
void show ()
 
Toasts add (String word)
 
Toasts add (String word, boolean withSpace)
 
Toasts add (String word, String enclose)
 
Toasts add (String value, String enclose, boolean withSpace)
 
Toasts format (String word, Object... args)
 
Toasts line ()
 
Toasts paragraph ()
 

Static Public Member Functions

static Toasts instance ()
 
static Toasts message (String message)
 

Detailed Description

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

Definition at line 28 of file Toasts.java.

Member Function Documentation

◆ add() [1/4]

Toasts org.turro.elephant.util.Toasts.add ( String  value,
String  enclose,
boolean  withSpace 
)

Definition at line 88 of file Toasts.java.

88  {
89  phrases.add(value, enclose, withSpace);
90  return this;
91  }
Here is the call graph for this function:

◆ add() [2/4]

Toasts org.turro.elephant.util.Toasts.add ( String  word)

Definition at line 73 of file Toasts.java.

73  {
74  phrases.add(word);
75  return this;
76  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ add() [3/4]

Toasts org.turro.elephant.util.Toasts.add ( String  word,
boolean  withSpace 
)

Definition at line 78 of file Toasts.java.

78  {
79  phrases.add(word, withSpace);
80  return this;
81  }
Here is the call graph for this function:

◆ add() [4/4]

Toasts org.turro.elephant.util.Toasts.add ( String  word,
String  enclose 
)

Definition at line 83 of file Toasts.java.

83  {
84  phrases.add(word, enclose);
85  return this;
86  }
Here is the call graph for this function:

◆ bottom()

Toasts org.turro.elephant.util.Toasts.bottom ( )

Definition at line 50 of file Toasts.java.

50  {
51  this.position = "bottom_center";
52  return this;
53  }

◆ closable()

Toasts org.turro.elephant.util.Toasts.closable ( )

Definition at line 60 of file Toasts.java.

60  {
61  this.closable = true;
62  return this;
63  }

◆ duration()

Toasts org.turro.elephant.util.Toasts.duration ( int  duration)

Definition at line 55 of file Toasts.java.

55  {
56  this.duration = duration;
57  return this;
58  }

◆ error()

Toasts org.turro.elephant.util.Toasts.error ( )

Definition at line 40 of file Toasts.java.

40  {
41  this.type = "error";
42  return this;
43  }

◆ format()

Toasts org.turro.elephant.util.Toasts.format ( String  word,
Object...  args 
)

Definition at line 93 of file Toasts.java.

93  {
94  phrases.format(word, args);
95  return this;
96  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ info()

Toasts org.turro.elephant.util.Toasts.info ( )

Definition at line 30 of file Toasts.java.

30  {
31  this.type = "info";
32  return this;
33  }

◆ instance()

static Toasts org.turro.elephant.util.Toasts.instance ( )
static

Definition at line 110 of file Toasts.java.

110  {
111  return new Toasts(null);
112  }

◆ line()

Toasts org.turro.elephant.util.Toasts.line ( )

Definition at line 98 of file Toasts.java.

98  {
99  phrases.line();
100  return this;
101  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ message()

static Toasts org.turro.elephant.util.Toasts.message ( String  message)
static

Definition at line 114 of file Toasts.java.

114  {
115  return new Toasts(message);
116  }
static Toasts message(String message)
Definition: Toasts.java:114
Here is the caller graph for this function:

◆ paragraph()

Toasts org.turro.elephant.util.Toasts.paragraph ( )

Definition at line 103 of file Toasts.java.

103  {
104  phrases.paragraph();
105  return this;
106  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ show()

void org.turro.elephant.util.Toasts.show ( )

Definition at line 65 of file Toasts.java.

65  {
66  Toast.show(phrases.newLine("<br/>").toString(), type, position, duration, closable);
67  }
Here is the caller graph for this function:

◆ top()

Toasts org.turro.elephant.util.Toasts.top ( )

Definition at line 45 of file Toasts.java.

45  {
46  this.position = "top_center";
47  return this;
48  }

◆ warning()

Toasts org.turro.elephant.util.Toasts.warning ( )

Definition at line 35 of file Toasts.java.

35  {
36  this.type = "warning";
37  return this;
38  }

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