BrightSide Workbench Full Report + Source Code
org.turro.html.HTMLHelper Class Reference
Inheritance diagram for org.turro.html.HTMLHelper:
Collaboration diagram for org.turro.html.HTMLHelper:

Public Member Functions

 HTMLHelper (IConstructor constructor, Writer out)
 
 HTMLHelper (IConstructor constructor)
 
 HTMLHelper (Writer out)
 
HTMLGenerator write (String value)
 
void writeMacro (String value)
 
void writeln (String value)
 
void writeDate (Date date, String mode)
 
void writeNumber (Number number, String mode)
 
void writeBytes (long bytes)
 
void writeBoolean (boolean value)
 
- Public Member Functions inherited from org.turro.html.HTMLGenerator
 HTMLGenerator ()
 
 HTMLGenerator (Writer out)
 
String toString ()
 
void setOut (Writer out)
 
void setExtraAttributes (String extraAttributes)
 
HTMLGenerator doTag (String tag)
 
HTMLGenerator doTag (String tag, String attributes)
 
HTMLGenerator doTag (String tag, String[] attributes)
 
HTMLGenerator startTag (String tag)
 
HTMLGenerator startTag (String tag, String attributes)
 
HTMLGenerator startTag (String tag, String[] attributes)
 
HTMLGenerator startExtAnchor (String url, String hint)
 
HTMLGenerator startTargetAnchor (String url, String target, String hint)
 
HTMLGenerator startAnchor (String url, String hint)
 
HTMLGenerator startAnchor (String url, String hint, String cssClass)
 
HTMLGenerator startAnchor (String url, String hint, String cssClass, String onClick)
 
HTMLGenerator startTable (String attributes)
 
HTMLGenerator startTable (String[] attributes)
 
HTMLGenerator endTable ()
 
HTMLGenerator startTableRow (String attributes)
 
HTMLGenerator startTableRow (String[] attributes)
 
HTMLGenerator endTableRow ()
 
HTMLGenerator startTableCol (String attributes)
 
HTMLGenerator startTableCol (String[] attributes)
 
HTMLGenerator endTableCol ()
 
HTMLGenerator endTag ()
 
HTMLGenerator endTag (String tag)
 
HTMLGenerator endBeforeTag (String tag)
 
HTMLGenerator endAllTags ()
 
boolean checkTag (String tag)
 
HTMLGenerator writeNewLine ()
 
HTMLGenerator writeSeparator ()
 
HTMLGenerator writeHorizontalStrut (int pixels)
 
HTMLGenerator startJavaScript ()
 
HTMLGenerator endJavaScript ()
 
HTMLGenerator startCSS ()
 
HTMLGenerator endCSS ()
 
HTMLGenerator addCSSLink (String cssFile)
 
HTMLGenerator addJavaScriptLink (String jsFile)
 

Protected Attributes

IConstructor constructor = null
 
- Protected Attributes inherited from org.turro.html.HTMLGenerator
Stack tags = new Stack()
 
Writer out = null
 

Detailed Description

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

Definition at line 36 of file HTMLHelper.java.

Constructor & Destructor Documentation

◆ HTMLHelper() [1/3]

org.turro.html.HTMLHelper.HTMLHelper ( IConstructor  constructor,
Writer  out 
)

Creates a new instance of HTMLHelper

Definition at line 40 of file HTMLHelper.java.

40  {
41  super(out);
42  if(out == null) {
43  try {
45  } catch (IOException ex) {
46  Logger.getLogger(HTMLHelper.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
47  }
48  }
49  this.constructor = constructor;
50  }
HTMLHelper(IConstructor constructor, Writer out)
Definition: HTMLHelper.java:40
Here is the call graph for this function:

◆ HTMLHelper() [2/3]

org.turro.html.HTMLHelper.HTMLHelper ( IConstructor  constructor)

Creates a new instance of HTMLHelper

Definition at line 53 of file HTMLHelper.java.

53  {
54  super(null);
55  this.constructor = constructor;
56  try {
58  } catch (IOException ex) {
59  Logger.getLogger(HTMLHelper.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
60  }
61  }
Here is the call graph for this function:

◆ HTMLHelper() [3/3]

org.turro.html.HTMLHelper.HTMLHelper ( Writer  out)

Creates a new instance of HTMLHelper

Definition at line 64 of file HTMLHelper.java.

64  {
65  super(out);
66  }

Member Function Documentation

◆ write()

HTMLGenerator org.turro.html.HTMLHelper.write ( String  value)

Reimplemented from org.turro.html.HTMLGenerator.

Definition at line 69 of file HTMLHelper.java.

69  {
70  if(value == null) return this;
71  if(constructor != null) {
72  try {
73  constructor.processOutput((PrintWriter) out, value);
74  } catch (ServletException ex) {
75  Logger.getLogger(HTMLHelper.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
76  } catch (IOException ex) {
77  Logger.getLogger(HTMLHelper.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
78  }
79  }
80  else {
81  super.write(value);
82  }
83  return this;
84  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeBoolean()

void org.turro.html.HTMLHelper.writeBoolean ( boolean  value)

Reimplemented in org.turro.html.HTMLComponent.

Definition at line 121 of file HTMLHelper.java.

121  {
122  write(I_.get(value ? "true" : "false"));
123  }
HTMLGenerator write(String value)
Definition: HTMLHelper.java:69
Here is the call graph for this function:

◆ writeBytes()

void org.turro.html.HTMLHelper.writeBytes ( long  bytes)

Reimplemented in org.turro.html.HTMLComponent.

Definition at line 116 of file HTMLHelper.java.

116  {
117  Localizer localizer = constructor.getLocalizer();
118  write(localizer.parseValue("bytes", null, Long.valueOf(bytes)));
119  }
Here is the call graph for this function:

◆ writeDate()

void org.turro.html.HTMLHelper.writeDate ( Date  date,
String  mode 
)

Reimplemented in org.turro.html.HTMLComponent.

Definition at line 106 of file HTMLHelper.java.

106  {
107  Localizer localizer = constructor.getLocalizer();
108  write(localizer.parseValue("date", mode, date));
109  }
Here is the call graph for this function:

◆ writeln()

void org.turro.html.HTMLHelper.writeln ( String  value)

Definition at line 90 of file HTMLHelper.java.

90  {
91  if(value == null) return;
92  if(constructor != null) {
93  try {
94  constructor.processOutput((PrintWriter) out, value + "\n");
95  } catch (ServletException ex) {
96  Logger.getLogger(HTMLHelper.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
97  } catch (IOException ex) {
98  Logger.getLogger(HTMLHelper.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
99  }
100  }
101  else {
102  super.write(value + "\n");
103  }
104  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeMacro()

void org.turro.html.HTMLHelper.writeMacro ( String  value)

Definition at line 86 of file HTMLHelper.java.

86  {
87  super.write(value);
88  }

◆ writeNumber()

void org.turro.html.HTMLHelper.writeNumber ( Number  number,
String  mode 
)

Reimplemented in org.turro.html.HTMLComponent.

Definition at line 111 of file HTMLHelper.java.

111  {
112  Localizer localizer = constructor.getLocalizer();
113  write(localizer.parseValue("number", mode, number));
114  }
Here is the call graph for this function:

Member Data Documentation

◆ constructor

IConstructor org.turro.html.HTMLHelper.constructor = null
protected

Definition at line 37 of file HTMLHelper.java.


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