Tedious!!<.br/><.br/><./body><./html>"
//ignore the dots (.) used to ensure that tags displayed
Now with JLevel 2.0 in java we just write:
String html = html(body( "color:blue;",t("easy, fast and fun!!"),br2));
Please read the documentation to see what benefits you can derive from JLevel 2.0 and enjoy a free open Library from Kogonuso
We will appreciate your feedback as we plan towards JLevel 3.0 that we will bring to you in the future.
General note to all JLevel 2.0 users:
Structure
As you already know Java language has lots of reserved keyword and unfortunately some of these
reserved words are the same as some of the attribute names used by html such as class, for, char etc.
As a result of this obvious conflicts it is not possible to retain the names of these attributes as
was the case with elements names in JLevel. So the solution that we could come up with is to end the
name of every attribute variable and method with a $ sign. This decision was taken to ensure that
consistency is preserved with all JLevel codes inside Java. It would be pointed out that this style
could not be adopted for both attributes and elements variables and methods given that there is the
need to have a way to close the sets in the elements. Hence there are three possible opening
and one closing variables for the elements. The opening variables can start with c, o, or s. c
stands for a closed open set example cp for closed set p element. o stands for open set that cannot
automatically accept in-line css style for example op for an open p element that need to be closed.
s stands for an open set that accepts in-line css style automatically without the developer needing to
write style="..." but simply "..." eg. "color:red;" is automatically interpreted and completed by JLevel
Example of this variable can be written like this sp for the p element. Lastly the fourth and last type
of variable for the elements is starts with e which stands for end of the element. Example ep for end
element p. here is a full example of how this can be done:
cp,...,ep
op,...ct,ep
sp,...ct,ep
That said there are special variable that do not need to be like those described above and they are only
two kids of these variable and you will need them a lot during formating.They are:
br up to br20
nbsp up nbsp30
This was in line with JLevel 1.0.0 but has become unnecessary with JLevel 2.0 which has automated these
operations. The only variables that you can use are these two br and nbsp as explained above, every other
operation can be done by calling an appropriate method inside its parent and so on and JLevel 2.0 puts in the
bells and whistles . Let's see how operations have significantly changed to reduce how much code you need
to write as well as reduce error and increase your productivity:
Instead of this:
cp,...,ep
op,...ct,ep
sp,...ct,ep
Do this:
p(,...)
You get the same result and with less effort, less error....
The other beautiful this that worth mentioning is that JLevel 2.0 provide shortcuts that are very handy
such as login(), insertImage(...),addTextArea(...),all the inputTypes eg. inputRadio(...) etc,inlay(...)
or emElementName(...) and allows you to embed css style as if you where writing on an external stylesheet.
That is you can now do this:
embedStyle(
embody("font-size:large;"),
inlay(".underline","text-decoration:none;"),
inlay("a:hover","color:#AB160C;text-decoration:underline;"),
inlay("a:visited","color:#AB160C;text-decoration:underline;"),
inlay("ul","list-style-type:circle;"),
inlay("#b","color:sienna;"),
emp("color:yellow;")
...
),
...
inside java and JLevel will understand it and apply the appropriate operations so that you get this:
...
body{
font-size:large;
}
.underline{
text-decoration:none;
}
a:hover{
color:#AB160C;text-decoration:underline;
}
a:visited{
color:#AB160C;text-decoration:underline;
}
ul{
list-style-type:circle;
}
#b{
color:sienna;
}
p{
color:yellow;
}
...
To get the best of JLevel 2.0 that I cannot possibly present to you in this general structure section
please read documentation of every method and variable carefully, but most importantly, check to be certain that the
parameters that you are providing are correct. There mostly two different ways that parameters are accepted
as an Array and as a String. It is a must that you called attribute method(s) when the required parameters are
deemed arrays.So do not confuse this with specifying a String, especially when the parameters are more that two
check to see that what you are providing it correct otherwise you will encounter error which is not a fault of
JLevel as it only has to work with what you provided.
Enjoy this good library from Kogonuso!
"/>
JLevel Library, Internet in Wellington,New Zealand
Tedious!!<.br/><.br/><./body><./html>"
//ignore the dots (.) used to ensure that tags displayed
Now with JLevel 2.0 in java we just write:
String html = html(body( "color:blue;",t("easy, fast and fun!!"),br2));
Please read the documentation to see what benefits you can derive from JLevel 2.0 and enjoy a free open Library from Kogonuso
We will appreciate your feedback as we plan towards JLevel 3.0 that we will bring to you in the future.
General note to all JLevel 2.0 users:
Structure
As you already know Java language has lots of reserved keyword and unfortunately some of these
reserved words are the same as some of the attribute names used by html such as class, for, char etc.
As a result of this obvious conflicts it is not possible to retain the names of these attributes as
was the case with elements names in JLevel. So the solution that we could come up with is to end the
name of every attribute variable and method with a $ sign. This decision was taken to ensure that
consistency is preserved with all JLevel codes inside Java. It would be pointed out that this style
could not be adopted for both attributes and elements variables and methods given that there is the
need to have a way to close the sets in the elements. Hence there are three possible opening
and one closing variables for the elements. The opening variables can start with c, o, or s. c
stands for a closed open set example cp for closed set p element. o stands for open set that cannot
automatically accept in-line css style for example op for an open p element that need to be closed.
s stands for an open set that accepts in-line css style automatically without the developer needing to
write style="..." but simply "..." eg. "color:red;" is automatically interpreted and completed by JLevel
Example of this variable can be written like this sp for the p element. Lastly the fourth and last type
of variable for the elements is starts with e which stands for end of the element. Example ep for end
element p. here is a full example of how this can be done:
cp,...,ep
op,...ct,ep
sp,...ct,ep
That said there are special variable that do not need to be like those described above and they are only
two kids of these variable and you will need them a lot during formating.They are:
br up to br20
nbsp up nbsp30
This was in line with JLevel 1.0.0 but has become unnecessary with JLevel 2.0 which has automated these
operations. The only variables that you can use are these two br and nbsp as explained above, every other
operation can be done by calling an appropriate method inside its parent and so on and JLevel 2.0 puts in the
bells and whistles . Let's see how operations have significantly changed to reduce how much code you need
to write as well as reduce error and increase your productivity:
Instead of this:
cp,...,ep
op,...ct,ep
sp,...ct,ep
Do this:
p(,...)
You get the same result and with less effort, less error....
The other beautiful this that worth mentioning is that JLevel 2.0 provide shortcuts that are very handy
such as login(), insertImage(...),addTextArea(...),all the inputTypes eg. inputRadio(...) etc,inlay(...)
or emElementName(...) and allows you to embed css style as if you where writing on an external stylesheet.
That is you can now do this:
embedStyle(
embody("font-size:large;"),
inlay(".underline","text-decoration:none;"),
inlay("a:hover","color:#AB160C;text-decoration:underline;"),
inlay("a:visited","color:#AB160C;text-decoration:underline;"),
inlay("ul","list-style-type:circle;"),
inlay("#b","color:sienna;"),
emp("color:yellow;")
...
),
...
inside java and JLevel will understand it and apply the appropriate operations so that you get this:
...
body{
font-size:large;
}
.underline{
text-decoration:none;
}
a:hover{
color:#AB160C;text-decoration:underline;
}
a:visited{
color:#AB160C;text-decoration:underline;
}
ul{
list-style-type:circle;
}
#b{
color:sienna;
}
p{
color:yellow;
}
...
To get the best of JLevel 2.0 that I cannot possibly present to you in this general structure section
please read documentation of every method and variable carefully, but most importantly, check to be certain that the
parameters that you are providing are correct. There mostly two different ways that parameters are accepted
as an Array and as a String. It is a must that you called attribute method(s) when the required parameters are
deemed arrays.So do not confuse this with specifying a String, especially when the parameters are more that two
check to see that what you are providing it correct otherwise you will encounter error which is not a fault of
JLevel as it only has to work with what you provided.
Enjoy this good library from Kogonuso!
">
nzfinds.com
JLevel is a non-standard Java library that replaces Html tags in Java Servlet and applications. This is good new for Servlet developers as JLevel makes writing Servlet more faster than JSP and JSF. It comes in two forms: