API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.view. JOTViewBlock View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

/*
------------------------------------
JavaOnTracks          Thibaut Colar
tcolar-jot AT colar DOT net
Artistic Licence 2.0
http://www.javaontracks.net
------------------------------------
 */
package net.jot.web.view;



/**
 * Represent a View block.
 * A block is simply a piece of html code marked as a block, which data can be replaced on the fly.
 * @author thibautc
 */
public class JOTViewBlock {
	protected boolean visible=true;
	protected String content=null;
	
	public String getContent()
	{
		return content;
	}
	/**
	 * If a content is defined(not null), then the "HTML element" block content will be replaced by 
	 * the value of newConetnt.
	 * ie: <div jotid="toto">xyzxyz</div>
	 * If newParam is set to "aaaaa", the rendered HTML page will show: aaaaaa
	 * If newParam is set to null, the rendered HTML page will show: xyzxyz
	 * @param newContent default:null
	 */
	public void setContent(String newContent)
	{
		content = newContent;
	}
	public boolean isVisible()
	{
		return visible;
	}
	/**
	 * If set to false, the elemnt will be hidden "removed" from the generated HTML.
	 * @param visible default:true
	 */
	public void setVisible(boolean visible)
	{
		this.visible = visible;
	}
	
	
}

Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar