All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----net.strandberg.html.LabeledString
Your name: John Doe
you would need HTML code like this:
Your name: John Doe;which is created by this Java code:
LabeledString ls = new Text("Your name: ", "John Doe", false); String myString = text.toHTML();The nice thing with using the labeled string is that it could be used in e.g. forms that are inside tables. In that case, label and string will be aligned with other items in the form.
public LabeledString(String label, String text)
public LabeledString(String label, String text, boolean asTableItem)
public LabeledString(boolean wrap, String label, String text)
public String toHTML()
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index