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

Public Member Functions

void show ()
 
void show (Runnable onOk)
 
Messages add (String word)
 
Messages add (String word, boolean withSpace)
 
Messages add (String word, String enclose)
 
Messages add (String value, String enclose, boolean withSpace)
 
Messages format (String word, Object... args)
 
Messages line ()
 
Messages paragraph ()
 

Static Public Member Functions

static Messages confirmDeletion ()
 
static Messages confirmCutting ()
 
static Messages confirmProcess ()
 
static Messages confirmMove ()
 
static Messages confirmAcceptation ()
 
static Messages info ()
 
static Messages info (String title)
 
static Messages question ()
 
static Messages question (String title)
 
static Messages error ()
 
static Messages error (String title)
 

Detailed Description

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

Definition at line 30 of file Messages.java.

Member Function Documentation

◆ add() [1/4]

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

Definition at line 65 of file Messages.java.

65  {
66  phrases.add(value, enclose, withSpace);
67  return this;
68  }
Here is the call graph for this function:

◆ add() [2/4]

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

Definition at line 50 of file Messages.java.

50  {
51  phrases.add(word);
52  return this;
53  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ add() [3/4]

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

Definition at line 55 of file Messages.java.

55  {
56  phrases.add(word, withSpace);
57  return this;
58  }
Here is the call graph for this function:

◆ add() [4/4]

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

Definition at line 60 of file Messages.java.

60  {
61  phrases.add(word, enclose);
62  return this;
63  }
Here is the call graph for this function:

◆ confirmAcceptation()

static Messages org.turro.elephant.util.Messages.confirmAcceptation ( )
static

Definition at line 103 of file Messages.java.

103  {
104  return question().add(I_.get("Confirm acceptation")).line();
105  }
Messages add(String word)
Definition: Messages.java:50
Here is the call graph for this function:
Here is the caller graph for this function:

◆ confirmCutting()

static Messages org.turro.elephant.util.Messages.confirmCutting ( )
static

Definition at line 91 of file Messages.java.

91  {
92  return question().add(I_.get("Confirm element cut")).line();
93  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ confirmDeletion()

static Messages org.turro.elephant.util.Messages.confirmDeletion ( )
static

Definition at line 87 of file Messages.java.

87  {
88  return question().add(I_.get("Confirm element deletion")).line();
89  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ confirmMove()

static Messages org.turro.elephant.util.Messages.confirmMove ( )
static

Definition at line 99 of file Messages.java.

99  {
100  return question().add(I_.get("Confirm element move")).line();
101  }
Here is the call graph for this function:

◆ confirmProcess()

static Messages org.turro.elephant.util.Messages.confirmProcess ( )
static

Definition at line 95 of file Messages.java.

95  {
96  return question().add(I_.get("Confirm process")).line();
97  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ error() [1/2]

static Messages org.turro.elephant.util.Messages.error ( )
static

Definition at line 123 of file Messages.java.

123  {
124  return error(I_.get("Error"));
125  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ error() [2/2]

static Messages org.turro.elephant.util.Messages.error ( String  title)
static

Definition at line 127 of file Messages.java.

127  {
128  return new Messages(Messagebox.ERROR, title);
129  }

◆ format()

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

Definition at line 70 of file Messages.java.

70  {
71  phrases.format(word, args);
72  return this;
73  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ info() [1/2]

static Messages org.turro.elephant.util.Messages.info ( )
static

Definition at line 107 of file Messages.java.

107  {
108  return info(I_.get("Information"));
109  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ info() [2/2]

static Messages org.turro.elephant.util.Messages.info ( String  title)
static

Definition at line 111 of file Messages.java.

111  {
112  return new Messages(Messagebox.INFORMATION, title);
113  }

◆ line()

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

Definition at line 75 of file Messages.java.

75  {
76  phrases.line();
77  return this;
78  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ paragraph()

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

Definition at line 80 of file Messages.java.

80  {
81  phrases.paragraph();
82  return this;
83  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ question() [1/2]

static Messages org.turro.elephant.util.Messages.question ( )
static

Definition at line 115 of file Messages.java.

115  {
116  return question(I_.get("Question"));
117  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ question() [2/2]

static Messages org.turro.elephant.util.Messages.question ( String  title)
static

Definition at line 119 of file Messages.java.

119  {
120  return new Messages(Messagebox.QUESTION, title);
121  }

◆ show() [1/2]

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

Definition at line 32 of file Messages.java.

32  {
33  Messagebox.show(phrases.newLine("\n").toString(), title,
34  Messagebox.OK, type, 0, null);
35  }
Here is the caller graph for this function:

◆ show() [2/2]

void org.turro.elephant.util.Messages.show ( Runnable  onOk)

Definition at line 37 of file Messages.java.

37  {
38  Messagebox.show(phrases.newLine("\n").toString(), title,
39  Messagebox.OK | Messagebox.CANCEL, type, (Event event) -> {
40  switch ((Integer) event.getData()) {
41  case Messagebox.OK -> onOk.run();
42  }
43  });
44  }

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