BrightSide Workbench Full Report + Source Code
org.turro.plugin.command.TimelineEvent Class Reference
Inheritance diagram for org.turro.plugin.command.TimelineEvent:
Collaboration diagram for org.turro.plugin.command.TimelineEvent:

Public Member Functions

boolean isDuration ()
 
void setDuration (boolean duration)
 
Date getEnd ()
 
void setEnd (Date end)
 
String getImage ()
 
void setImage (String image)
 
String getInside ()
 
void setInside (String inside)
 
String getLink ()
 
void setLink (String link)
 
Date getStart ()
 
void setStart (Date start)
 
String getTitle ()
 
void setTitle (String title)
 
String getEvent ()
 
int compareTo (TimelineEvent o)
 
boolean isDuration ()
 
void setDuration (boolean duration)
 
Date getEnd ()
 
void setEnd (Date end)
 
String getImage ()
 
void setImage (String image)
 
String getInside ()
 
void setInside (String inside)
 
String getLink ()
 
void setLink (String link)
 
Date getStart ()
 
void setStart (Date start)
 
String getTitle ()
 
void setTitle (String title)
 
String getEvent (Application app)
 
int compareTo (TimelineEvent o)
 

Detailed Description

Member Function Documentation

◆ compareTo() [1/2]

int org.turro.plugin.command.TimelineEvent.compareTo ( TimelineEvent  o)

Definition at line 120 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

120  {
121  int result = CompareUtil.compare(start, o.start);
122  if(result == 0) {
123  result = CompareUtil.compare(end, o.end);
124  }
125  if(result == 0) {
126  result = CompareUtil.compare(title, o.title);
127  }
128  return result;
129  }

◆ compareTo() [2/2]

int org.turro.plugin.command.TimelineEvent.compareTo ( TimelineEvent  o)

Definition at line 119 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

119  {
120  int result = CompareUtil.compare(start, o.start);
121  if(result == 0) {
122  result = CompareUtil.compare(end, o.end);
123  }
124  if(result == 0) {
125  result = CompareUtil.compare(title, o.title);
126  }
127  return result;
128  }

◆ getEnd() [1/2]

Date org.turro.plugin.command.TimelineEvent.getEnd ( )

Definition at line 49 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

49  {
50  return end;
51  }

◆ getEnd() [2/2]

Date org.turro.plugin.command.TimelineEvent.getEnd ( )

Definition at line 48 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

48  {
49  return end;
50  }

◆ getEvent() [1/2]

String org.turro.plugin.command.TimelineEvent.getEvent ( )

Definition at line 96 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

96  {
97  DateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
98  df.setTimeZone(TimeZone.getTimeZone("GMT"));
99  HTMLGenerator hg = new HTMLGenerator();
100  hg.startTag("event", new String[] {
101  (start != null ? "start=\"" + df.format(start) + "\"" : null),
102  (end != null ? "end=\"" + df.format(end) + "\"" : null),
103  (duration ? "isDuration=\"true\"" : null),
104  (!Strings.isBlank(title) ? "title=\"" + Strings.escapeXML(title) + "\"" : null),
105  (!Strings.isBlank(image) ? "image=\"" + ElephantContext.getRootWebPath() + image + "\"" : null),
106  (!Strings.isBlank(link) ? "link=\"" + Strings.escapeXML(link) + "\"" : null)
107  });
108  hg.write("\n");
109  if(!Strings.isBlank(inside)) {
110  hg.write(inside);
111  hg.write("\n");
112  }
113  hg.endAllTags();
114  hg.write("\n");
115  return hg.toString();
116  }
Here is the call graph for this function:

◆ getEvent() [2/2]

String org.turro.plugin.command.TimelineEvent.getEvent ( Application  app)

Definition at line 97 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

97  {
98  DateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
99  df.setTimeZone(TimeZone.getTimeZone("GMT"));
100  HTMLGenerator hg = new HTMLGenerator();
101  hg.startTag("event", new String[] {
102  (start != null ? "start=\"" + df.format(start) + "\"" : null),
103  (end != null ? "end=\"" + df.format(end) + "\"" : null),
104  (duration ? "isDuration=\"true\"" : null),
105  (!Strings.isBlank(title) ? "title=\"" + Strings.escapeXML(title) + "\"" : null),
106  (!Strings.isBlank(image) ? "image=\"" + ElephantContext.getRootWebPath() + image + "\"" : null),
107  (!Strings.isBlank(link) ? "link=\"" + Strings.escapeXML(link) + "\"" : null)
108  });
109  hg.write("\n");
110  if(!Strings.isBlank(inside)) {
111  hg.write(inside);
112  hg.write("\n");
113  }
114  hg.endAllTags();
115  hg.write("\n");
116  return hg.toString();
117  }
Here is the call graph for this function:

◆ getImage() [1/2]

String org.turro.plugin.command.TimelineEvent.getImage ( )

Definition at line 57 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

57  {
58  return image;
59  }

◆ getImage() [2/2]

String org.turro.plugin.command.TimelineEvent.getImage ( )

Definition at line 56 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

56  {
57  return image;
58  }

◆ getInside() [1/2]

String org.turro.plugin.command.TimelineEvent.getInside ( )

Definition at line 65 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

65  {
66  return inside;
67  }

◆ getInside() [2/2]

String org.turro.plugin.command.TimelineEvent.getInside ( )

Definition at line 64 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

64  {
65  return inside;
66  }

◆ getLink() [1/2]

String org.turro.plugin.command.TimelineEvent.getLink ( )

Definition at line 73 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

73  {
74  return link;
75  }

◆ getLink() [2/2]

String org.turro.plugin.command.TimelineEvent.getLink ( )

Definition at line 72 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

72  {
73  return link;
74  }

◆ getStart() [1/2]

Date org.turro.plugin.command.TimelineEvent.getStart ( )

Definition at line 81 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

81  {
82  return start;
83  }

◆ getStart() [2/2]

Date org.turro.plugin.command.TimelineEvent.getStart ( )

Definition at line 80 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

80  {
81  return start;
82  }

◆ getTitle() [1/2]

String org.turro.plugin.command.TimelineEvent.getTitle ( )

Definition at line 89 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

89  {
90  return title;
91  }

◆ getTitle() [2/2]

String org.turro.plugin.command.TimelineEvent.getTitle ( )

Definition at line 88 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

88  {
89  return title;
90  }

◆ isDuration() [1/2]

boolean org.turro.plugin.command.TimelineEvent.isDuration ( )

Definition at line 41 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

41  {
42  return duration;
43  }

◆ isDuration() [2/2]

boolean org.turro.plugin.command.TimelineEvent.isDuration ( )

Definition at line 40 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

40  {
41  return duration;
42  }

◆ setDuration() [1/2]

void org.turro.plugin.command.TimelineEvent.setDuration ( boolean  duration)

Definition at line 45 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

45  {
46  this.duration = duration;
47  }

◆ setDuration() [2/2]

void org.turro.plugin.command.TimelineEvent.setDuration ( boolean  duration)

Definition at line 44 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

44  {
45  this.duration = duration;
46  }
Here is the caller graph for this function:

◆ setEnd() [1/2]

void org.turro.plugin.command.TimelineEvent.setEnd ( Date  end)

Definition at line 53 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

53  {
54  this.end = end;
55  }

◆ setEnd() [2/2]

void org.turro.plugin.command.TimelineEvent.setEnd ( Date  end)

Definition at line 52 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

52  {
53  this.end = end;
54  }
Here is the caller graph for this function:

◆ setImage() [1/2]

void org.turro.plugin.command.TimelineEvent.setImage ( String  image)

Definition at line 61 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

61  {
62  this.image = image;
63  }

◆ setImage() [2/2]

void org.turro.plugin.command.TimelineEvent.setImage ( String  image)

Definition at line 60 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

60  {
61  this.image = image;
62  }
Here is the caller graph for this function:

◆ setInside() [1/2]

void org.turro.plugin.command.TimelineEvent.setInside ( String  inside)

Definition at line 69 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

69  {
70  this.inside = inside;
71  }

◆ setInside() [2/2]

void org.turro.plugin.command.TimelineEvent.setInside ( String  inside)

Definition at line 68 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

68  {
69  this.inside = inside;
70  }
Here is the caller graph for this function:

◆ setLink() [1/2]

void org.turro.plugin.command.TimelineEvent.setLink ( String  link)

Definition at line 77 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

77  {
78  this.link = link;
79  }

◆ setLink() [2/2]

void org.turro.plugin.command.TimelineEvent.setLink ( String  link)

Definition at line 76 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

76  {
77  this.link = link;
78  }
Here is the caller graph for this function:

◆ setStart() [1/2]

void org.turro.plugin.command.TimelineEvent.setStart ( Date  start)

Definition at line 85 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

85  {
86  this.start = start;
87  }

◆ setStart() [2/2]

void org.turro.plugin.command.TimelineEvent.setStart ( Date  start)

Definition at line 84 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

84  {
85  this.start = start;
86  }
Here is the caller graph for this function:

◆ setTitle() [1/2]

void org.turro.plugin.command.TimelineEvent.setTitle ( String  title)

Definition at line 93 of file elephant-plugins/src/main/java/org/turro/plugin/command/TimelineEvent.java.

93  {
94  this.title = title;
95  }

◆ setTitle() [2/2]

void org.turro.plugin.command.TimelineEvent.setTitle ( String  title)

Definition at line 92 of file elephant/src/main/java/org/turro/plugin/command/TimelineEvent.java.

92  {
93  this.title = title;
94  }
Here is the caller graph for this function:

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