getWidget().setText(getState().text);
break;
- case XHTML:
case HTML:
case RAW:
sinkOnloads = true;
*
*/
HTML,
-
- /**
- * Content mode, where the error contains XHTML.
- *
- * @deprecated Use {@link ContentMode.HTML}
- */
- @Deprecated
- XHTML;
}
/**
result = "<pre>" + VaadinServlet.safeEscapeForHtml(getMessage())
+ "</pre>";
break;
- case XHTML:
case HTML:
result = getMessage();
break;
* @deprecated from 7.0, use {@link ContentMode#HTML} instead
*/
@Deprecated
- public static final ContentMode CONTENT_XHTML = ContentMode.XHTML;
+ public static final ContentMode CONTENT_XHTML = ContentMode.HTML;
/**
* Creates a textual error message of level ERROR.
* @deprecated From 7.0, use {@link ContentMode#XHTML} instead
*/
@Deprecated
- public static final ContentMode CONTENT_XHTML = ContentMode.XHTML;
+ public static final ContentMode CONTENT_XHTML = ContentMode.HTML;
/**
* @deprecated From 7.0, use {@link ContentMode#XML} instead
stringValue = "";
}
- if (getContentMode() == ContentMode.XHTML
- || getContentMode() == ContentMode.XML
- || getContentMode() == ContentMode.HTML) {
+ if (getContentMode() == ContentMode.HTML
+ || getContentMode() == ContentMode.XML) {
return stripTags(stringValue);
} else {
return stringValue;
*/
HTML,
- /**
- * Content mode, where the label contains XHTML.
- *
- * @deprecated Use {@link ContentMode.HTML}
- */
- @Deprecated
- XHTML,
-
/**
* Content mode, where the label contains well-formed or well-balanced XML.
* This is handled in the same way as {@link #XHTML}.
naviLayout
.addComponent(new Label(
"Click to open a test case.<br/>Right click to open test in a new window<br/><br/>",
- ContentMode.XHTML));
+ ContentMode.HTML));
naviLayout.addComponent(createMenu());
naviLayout.addComponent(createMissingTestsList());
embeddingLayout
.addComponent(new Label(
"<b>Do not use the embedded version for creating automated tests. Open the test in a new window before recording.</b><br/>",
- ContentMode.XHTML));
+ ContentMode.HTML));
applicationEmbedder.setSizeFull();
embeddingLayout.addComponent(applicationEmbedder);
embeddingLayout.setExpandRatio(applicationEmbedder, 1);
+ component.getSimpleName() + "</font><br/>";
}
return new Label("<b>Components without a test:</B><br/>"
- + missingTests, ContentMode.XHTML);
+ + missingTests, ContentMode.HTML);
}
private Component createMenu() {
// Add heading label and custom layout panel to main window
mainWindow.addComponent(new Label("<h3>Custom layout demo</h3>",
- ContentMode.XHTML));
+ ContentMode.HTML));
mainWindow.addComponent(customLayoutPanel);
}
username.setValue("Anonymous");
}
mainLayout.replaceComponent(loginButton, new Label("Welcome user <em>"
- + username.getValue() + "</em>", ContentMode.XHTML));
+ + username.getValue() + "</em>", ContentMode.HTML));
}
/**
//
mainWindow.addComponent(new Label(
"<h3>Horizontal ordered layout</h3>Added four components.",
- ContentMode.XHTML));
+ ContentMode.HTML));
mainWindow.addComponent(layoutA);
mainWindow.addComponent(new Label(
"<br /><h3>Vertical ordered layout</h3>Added four components.",
- ContentMode.XHTML));
+ ContentMode.HTML));
mainWindow.addComponent(layoutB);
mainWindow.addComponent(new Label(
"<br /><h3>Grid Layout (4 x 4)</h3>Added 16 components.",
- ContentMode.XHTML));
+ ContentMode.HTML));
mainWindow.addComponent(layoutG);
mainWindow.addComponent(new Label("<br /><h3>Grid Layout (4 x 4)</h3>"
+ "Added four panels and four embedded components "
- + "diagonally with absolute coordinates.", ContentMode.XHTML));
+ + "diagonally with absolute coordinates.", ContentMode.HTML));
mainWindow.addComponent(layoutG2);
mainWindow.addComponent(new Label(
"<br /><h3>TabSheet</h3>Added above layouts as tabs.",
- ContentMode.XHTML));
+ ContentMode.HTML));
mainWindow.addComponent(tabsheet);
}
+ "extremities and may have a caption to clarify the nature of the contained components' purpose."
+ " Panel contains an layout where the actual contained components are added, "
+ "this layout may be switched on the fly.",
- ContentMode.XHTML));
+ ContentMode.HTML));
panel.setWidth("222px");
return panel;
}
+ "<p>Lorem ipsum dolor sit amet.</p>"
+ "<p>Lorem ipsum dolor sit amet.</p>"
+ "<p>Lorem ipsum dolor sit amet.</p>",
- ContentMode.XHTML));
+ ContentMode.HTML));
}
}));
}
private void addInfo() {
- main.addComponent(new Label(DESCRIPTION, ContentMode.XHTML));
+ main.addComponent(new Label(DESCRIPTION, ContentMode.HTML));
}
}
}
private void addInfo() {
- main.addComponent(new Label(DESCRIPTION, ContentMode.XHTML));
+ main.addComponent(new Label(DESCRIPTION, ContentMode.HTML));
}
}
}
private void addInfo() {
- main.addComponent(new Label(DESCRIPTION, ContentMode.XHTML));
+ main.addComponent(new Label(DESCRIPTION, ContentMode.HTML));
}
}
// Custom components
layout.addComponent(new Label("<B>Below are few custom components</B>",
- ContentMode.XHTML));
+ ContentMode.HTML));
final TestForUpload tfu = new TestForUpload();
layout.addComponent(tfu);
+ "<p>Lorem ipsum dolor sit amet.</p>"
+ "<p>Lorem ipsum dolor sit amet.</p>"
+ "<p>Lorem ipsum dolor sit amet.</p>",
- ContentMode.XHTML));
+ ContentMode.HTML));
}
}));
main.addComponent(new Button("commit content to label below"));
- l = new Label("", ContentMode.XHTML);
+ l = new Label("", ContentMode.HTML);
main.addComponent(l);
CheckBox b = new CheckBox("enabled");
"Upload finished, but output buffer is null!!"));
} else {
status.addComponent(new Label(
- "<b>Name:</b> " + event.getFilename(), ContentMode.XHTML));
+ "<b>Name:</b> " + event.getFilename(), ContentMode.HTML));
status.addComponent(new Label("<b>Mimetype:</b> "
- + event.getMIMEType(), ContentMode.XHTML));
+ + event.getMIMEType(), ContentMode.HTML));
status.addComponent(new Label("<b>Size:</b> " + event.getLength()
- + " bytes.", ContentMode.XHTML));
+ + " bytes.", ContentMode.HTML));
status.addComponent(new Link("Download " + buffer.getFileName(),
new StreamResource(buffer, buffer.getFileName())));
"Upload finished, but output buffer is null"));
} else {
status.addComponent(new Label("<b>Name:</b> "
- + event.getFilename(), ContentMode.XHTML));
+ + event.getFilename(), ContentMode.HTML));
status.addComponent(new Label("<b>Mimetype:</b> "
- + event.getMIMEType(), ContentMode.XHTML));
+ + event.getMIMEType(), ContentMode.HTML));
status.addComponent(new Label("<b>Size:</b> "
- + event.getLength() + " bytes.", ContentMode.XHTML));
+ + event.getLength() + " bytes.", ContentMode.HTML));
status.addComponent(new Link("Download "
+ buffer.getFileName(), new StreamResource(buffer,
final int height = 250;
final String iFrame = "<iframe height=\"" + height + "\" width=\""
+ width + "\" src=\"" + URL + "\" />";
- return new Label(iFrame, ContentMode.XHTML);
+ return new Label(iFrame, ContentMode.HTML);
}
}
setMainWindow(main);
// Main window contains heading and panel
- main.addComponent(new Label("<h2>Tree demo</h2>", ContentMode.XHTML));
+ main.addComponent(new Label("<h2>Tree demo</h2>", ContentMode.HTML));
// configure file structure panel
main.addComponent(explorerPanel);
private final Select select = new Select();
private final Label selectedTask = new Label("Selected task",
- ContentMode.XHTML);
+ ContentMode.HTML);
public LinkedList<?> exampleTasks = new LinkedList<Object>();
@Override
protected void setup() {
Label applications = new Label("Applications in session: <br/>",
- ContentMode.XHTML);
+ ContentMode.HTML);
if (getContext() != null) {
applications.setValue(applications.getValue() + "App: "
+ getContext() + "<br/>");
/ 1000
/ 1000
+ "MiB memory for this application.<br/>Total memory usage reported as "
- + totalUsageString + "<br/>", ContentMode.XHTML);
+ + totalUsageString + "<br/>", ContentMode.HTML);
addComponent(thisApp);
addComponent(memoryUsage);
public void init(WrappedRequest request) {
getPage().setTitle(getClass().getName());
- Label label = new Label(getTestDescription(), ContentMode.XHTML);
+ Label label = new Label(getTestDescription(), ContentMode.HTML);
label.setWidth("100%");
layout = new VerticalLayout();
setMainWindow(window);
window.getContent().setSizeFull();
- Label label = new Label(getDescription(), ContentMode.XHTML);
+ Label label = new Label(getDescription(), ContentMode.HTML);
label.setWidth("100%");
window.getContent().addComponent(label);
ComponentContainer container = containerClass.newInstance();
for (String size : sizes) {
Label title = new Label("<h3>" + size + "x" + size + "</h3>",
- ContentMode.XHTML);
+ ContentMode.HTML);
container.addComponent(title);
for (String icon : icons) {
ThemeResource res = new ThemeResource("../runo/icons/" + size
Label output = new Label(log);
output.setCaption("Events:");
- output.setContentMode(ContentMode.XHTML);
+ output.setContentMode(ContentMode.HTML);
addComponent(output);
}
Label text = new Label(
"1_long_line_that_should_be_clipped<br/>2_long_line_that_should_be_clipped<br/>3_long_line_that_should_be_clipped<br/>4_long_line_that_should_be_clipped<br/>",
- ContentMode.XHTML);
+ ContentMode.HTML);
final CustomComponent cc = new CustomComponent(text);
cc.setWidth("20px");
@Override
protected void setup() {
- addComponent(new Label("<br/><br/>", ContentMode.XHTML));
+ addComponent(new Label("<br/><br/>", ContentMode.HTML));
log = new Log(8);
addComponent(log);
df = new MyDateField();
addTestComponent(l);
l = createLabel("This label contains\nnewlines and spaces\nand is in\nhtml mode");
- l.setContentMode(ContentMode.XHTML);
+ l.setContentMode(ContentMode.HTML);
l.setWidth(null);
addTestComponent(l);
options.put("Raw", ContentMode.RAW);
options.put("UIDL", ContentMode.XML); // Deprecated UIDL mode still used
// to avoid breaking old tests
- options.put("XHTML", ContentMode.XHTML);
+ options.put("XHTML", ContentMode.HTML);
options.put("XML", ContentMode.XML);
createSelectAction("Content mode", category, options, "Text",
l = createLabel(
"<div style='border: 1px solid red'><h1>Hello\n\n\n</h1><p/><h2>I am a rich Label</h3></div>",
"This is an XHTML label with rich content");
- l.setContentMode(ContentMode.XHTML);
+ l.setContentMode(ContentMode.HTML);
addTestComponent(l);
l = createLabel(
"<div style='border: 1px solid blue'><h1>Hello</h1><p/><h2>I am a rich Label</h3></div>",
"This is an XHTML label with fixed 200px width and rich content");
- l.setContentMode(ContentMode.XHTML);
+ l.setContentMode(ContentMode.HTML);
l.setWidth("200px");
addTestComponent(l);
protected void setup(WrappedRequest request) {
AbstractLayout layout = new VerticalLayout();
layout.addComponent(new Label("<h1>Vertical layout</h1>",
- ContentMode.XHTML));
+ ContentMode.HTML));
layout.addComponent(new Label("Next row"));
addComponent(layout);
layout = new GridLayout(1, 2);
layout.setWidth("100%");
- layout.addComponent(new Label("<h1>Grid layout</h1>", ContentMode.XHTML));
+ layout.addComponent(new Label("<h1>Grid layout</h1>", ContentMode.HTML));
layout.addComponent(new Label("Next row"));
addComponent(layout);
TabSheet tabSheet = new TabSheet();
- tabSheet.addTab(new Label("<h1>Tabsheet</h1>", ContentMode.XHTML),
+ tabSheet.addTab(new Label("<h1>Tabsheet</h1>", ContentMode.HTML),
"Label");
addComponent(tabSheet);
Accordion accordion = new Accordion();
- accordion.addTab(new Label("<h1>Accordion</h1>", ContentMode.XHTML),
+ accordion.addTab(new Label("<h1>Accordion</h1>", ContentMode.HTML),
"Label");
addComponent(accordion);
}
}
});
layout.addComponent(width);
- layout.addComponent(new Label("×", ContentMode.XHTML));
+ layout.addComponent(new Label("×", ContentMode.HTML));
final NativeSelect height = new NativeSelect(null, sizes);
height.setImmediate(true);
height.addListener(new ValueChangeListener() {
}
});
component.addComponent(componentWidth);
- component.addComponent(new Label("×", ContentMode.XHTML));
+ component.addComponent(new Label("×", ContentMode.HTML));
componentHeight = new NativeSelect(null, sizes);
componentHeight.setImmediate(true);
left.setMargin(true);
left.addComponent(new Label("<h2>Layout resize test</h2>",
- ContentMode.XHTML));
+ ContentMode.HTML));
Button resize = new Button("Resize to 700x400",
new Button.ClickListener() {
panel.addComponent(new Label(
"fooooooooo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>"
+ "foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>",
- ContentMode.XHTML));
+ ContentMode.HTML));
return panel;
}
Label l = new Label(
"<div style='width: 100%; height: 100%; background: " + bg
+ "'>" + LoremIpsum.get(2000) + "</div>",
- ContentMode.XHTML);
+ ContentMode.HTML);
l.setSizeFull();
p.addComponent(l);
PopupView pv = new PopupView("Click here to popup", p);
private final Table table = new Table("ISO-3166 Country Codes and flags");
private final CheckBox useFieldFactory = new CheckBox(
"Use a caching TableFieldFactory");
- private final Label sizeLabel = new Label("", ContentMode.XHTML);
+ private final Label sizeLabel = new Label("", ContentMode.HTML);
private long size = 0;
item.getItemProperty("Column 1").setValue("String A");
item.getItemProperty("Column 2").setValue(new Label("Label A"));
item.getItemProperty("Column 3").setValue(
- new Label("<b>Label A</b>", ContentMode.XHTML));
+ new Label("<b>Label A</b>", ContentMode.HTML));
item.getItemProperty("Column 4").setValue(
new Embedded("An embedded image", new ThemeResource(
"../runo/icons/32/ok.png")));
.setValue(
new Label(
"<a style=\"color: blue\" href=\"javascript:false\">Label A</a>",
- ContentMode.XHTML));
+ ContentMode.HTML));
item.getItemProperty("Column 4").setValue(
new Embedded("", new ThemeResource(
"../runo/icons/32/cancel.png")));
VerticalLayout vP = new VerticalLayout();
vP.setStyleName(Reindeer.LAYOUT_BLACK);
- Label tit = new Label("<h1> Tab/Table Test</h1>", ContentMode.XHTML);
+ Label tit = new Label("<h1> Tab/Table Test</h1>", ContentMode.HTML);
vP.addComponent(tit);
return vP;
l.setWidth(col.width);
if (col.html) {
l.setValue(value);
- l.setContentMode(ContentMode.XHTML);
+ l.setContentMode(ContentMode.HTML);
} else {
l.setValue(value);
}
info += "<br />parameters: " + request.getParameterMap().keySet();
info += "<br />uri fragment: "
+ request.getBrowserDetails().getUriFragment();
- return new Label(info, ContentMode.XHTML);
+ return new Label(info, ContentMode.HTML);
}
@Override
mainWindow.addComponent(resizeListenerCheckBox);
mainWindow.addComponent(immediateCheckBox);
mainWindow.addComponent(log);
- mainWindow.addComponent(new Label("<br/><br/>", ContentMode.XHTML));
+ mainWindow.addComponent(new Label("<br/><br/>", ContentMode.HTML));
mainWindow.addComponent(new Label(LoremIpsum.get(10000)));
setLazy(false);
l.setMargin(true);
l.setCaption("Labels");
- l.addComponent(new Label("Normal Label", ContentMode.XHTML));
+ l.addComponent(new Label("Normal Label", ContentMode.HTML));
l.addComponent(new Label(
"Lorem ipsum dolor sit amet, consectetur adipiscing elit."));
return l;
l.setWidth("400px");
l.setColumnExpandRatio(0, 1);
- l.addComponent(new Label("Normal TextField", ContentMode.XHTML));
+ l.addComponent(new Label("Normal TextField", ContentMode.HTML));
TextField tf = new TextField();
tf.setInputPrompt("Enter text");
l.addComponent(tf);
- l.addComponent(new Label("Normal TextArea", ContentMode.XHTML));
+ l.addComponent(new Label("Normal TextArea", ContentMode.HTML));
TextArea ta = new TextArea();
ta.setHeight("5em");
l.setColumnExpandRatio(0, 2);
l.setColumnExpandRatio(1, 5);
- l.addComponent(new Label("Normal Panel", ContentMode.XHTML));
+ l.addComponent(new Label("Normal Panel", ContentMode.HTML));
Panel p = new Panel("Normal Panel");
p.setHeight("100px");
l.addComponent(new Label(
"Light Style (<code>LiferayTheme.PANEL_LIGHT</code>)",
- ContentMode.XHTML));
+ ContentMode.HTML));
Panel p2 = new Panel("Light Style Panel");
p2.setStyleName(LiferayTheme.PANEL_LIGHT);
w2.setPositionX(350);
w2.setPositionY(160);
w2.addComponent(new Label("<code>Window.setResizable(false)</code>",
- ContentMode.XHTML));
+ ContentMode.HTML));
tabs.addListener(new TabSheet.SelectedTabChangeListener() {
@Override
l.addComponent(lockCheckBox, 1, 0);
l.newLine();
- Label label = new Label("Normal SplitPanel", ContentMode.XHTML);
+ Label label = new Label("Normal SplitPanel", ContentMode.HTML);
label.setWidth(null);
l.addComponent(label);
final HorizontalSplitPanel sp = new HorizontalSplitPanel();
label = new Label(
"Small Style<br />(<code>LiferayTheme.SPLITPANEL_SMALL</code>)",
- ContentMode.XHTML);
+ ContentMode.HTML);
label.setWidth(null);
l.addComponent(label);
l.setWidth("400px");
l.setColumnExpandRatio(0, 1);
- l.addComponent(new Label("Horizontal Slider", ContentMode.XHTML));
+ l.addComponent(new Label("Horizontal Slider", ContentMode.HTML));
Slider s = new Slider();
s.setWidth("200px");
try {
}
l.addComponent(s);
- l.addComponent(new Label("Vertical Slider", ContentMode.XHTML));
+ l.addComponent(new Label("Vertical Slider", ContentMode.HTML));
s = new Slider();
s.setOrientation(SliderOrientation.VERTICAL);
s.setHeight("200px");
message.setValue("Jumped over the lazy dog.");
message.setWidth("15em");
- l.addComponent(new Label("<h3>Type</h3>", ContentMode.XHTML));
- l.addComponent(new Label("<h3>Preview</h3>", ContentMode.XHTML));
+ l.addComponent(new Label("<h3>Type</h3>", ContentMode.HTML));
+ l.addComponent(new Label("<h3>Preview</h3>", ContentMode.HTML));
- l.addComponent(new Label("Humanized", ContentMode.XHTML));
+ l.addComponent(new Label("Humanized", ContentMode.HTML));
Button show = new Button("Humanized Notification",
new Button.ClickListener() {
@Override
});
l.addComponent(show);
- l.addComponent(new Label("Warning", ContentMode.XHTML));
+ l.addComponent(new Label("Warning", ContentMode.HTML));
show = new Button("Warning Notification", new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
});
l.addComponent(show);
- l.addComponent(new Label("Error", ContentMode.XHTML));
+ l.addComponent(new Label("Error", ContentMode.HTML));
show = new Button("Error Notification", new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
});
l.addComponent(show);
- l.addComponent(new Label("Tray", ContentMode.XHTML));
+ l.addComponent(new Label("Tray", ContentMode.HTML));
show = new Button("Tray Notification", new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
+ "3. Click \"toggle layout visibility\"<br>"
+ "4. Resize browser window to full <br/>"
+ "5. Click \"toggle layout visibility\"<br/>",
- ContentMode.XHTML);
+ ContentMode.HTML);
vl.addComponent(l);
Button b = new Button("toggle layout visibility",
new Button.ClickListener() {
@Override
protected void setup() {
Label label = new Label("<h1>CssLayout performance test.</h1>",
- ContentMode.XHTML);
+ ContentMode.HTML);
getLayout().addComponent(label);
label = new Label(
"<em>Hint</em>. Use debug dialog to measure rendering times TODO: extend with size settings (to both layout and content).",
- ContentMode.XHTML);
+ ContentMode.HTML);
getLayout().addComponent(label);
ns = new NativeSelect("Select component to test");
final AbstractComponent c1 = new Button("BUTTON");
final AbstractComponent c2 = new Label("<b>LABEL</b>",
- ContentMode.XHTML);
+ ContentMode.HTML);
final AbstractComponent c3 = new Table("TABLE");
c3.setHeight("100px");
c3.setWidth("100%");
((TextField) components[i]).setValue("FIELD " + i);
vlo.addComponent(components[i]);
vlo.setComponentAlignment(components[i], alignments[i]);
- vlo.addComponent(new Label("<hr />", ContentMode.XHTML));
+ vlo.addComponent(new Label("<hr />", ContentMode.HTML));
}
baseLayout.addComponent(vlo);
vlo = getTestLaytout();
((TextField) components[i]).setValue("FIELD " + i);
vlo.addComponent(components[i]);
vlo.setComponentAlignment(components[i], alignments[i]);
- vlo.addComponent(new Label("<hr />", ContentMode.XHTML));
+ vlo.addComponent(new Label("<hr />", ContentMode.HTML));
}
baseLayout.addComponent(vlo);
return baseLayout;
final AbstractComponent c1 = new Button("BUTTON");
final AbstractComponent c2 = new Label("<b>LABEL</b>",
- ContentMode.XHTML);
+ ContentMode.HTML);
final AbstractComponent c3 = new Table("TABLE");
c3.setHeight("100px");
c3.setWidth("100%");
vlo2.addComponent(c1);
vlo2.addComponent(new Label(
"<div style='height: 1px'></div><hr /><div style='height: 1px'></div>",
- ContentMode.XHTML));
+ ContentMode.HTML));
vlo2.addComponent(c2);
vlo2.setExpandRatio(c1, 0.5f);
vlo2.setExpandRatio(c2, 0.5f);
// Must add something around the hr to avoid the margins collapsing
vlo2.addComponent(new Label(
"<div style='height: 1px'></div><hr /><div style='height: 1px'></div>",
- ContentMode.XHTML));
+ ContentMode.HTML));
vlo2.addComponent(c2);
vlo2.setExpandRatio(c1, 0.5f);
vlo2.setExpandRatio(c2, 0.5f);
rpc.sendEnum(ContentMode.TEXT, new ContentMode[] {
ContentMode.PREFORMATTED, ContentMode.XML },
- Arrays.asList(ContentMode.XHTML, ContentMode.RAW));
+ Arrays.asList(ContentMode.HTML, ContentMode.RAW));
testExtension.registerRpc(new SerializerTestRpc() {
@Override
Label red = new Label(
"<div style='background:red;width:100%;height:100%;'>??</div>",
- ContentMode.XHTML);
+ ContentMode.HTML);
// red.setCaption("cap");
// red.setSizeFull();
ts.getTab(red).setCaption("REd tab");
Label l = new Label("<div style='background:blue;'>sdf</div>",
- ContentMode.XHTML);
+ ContentMode.HTML);
el.addComponent(l);
el.setComponentAlignment(l, Alignment.MIDDLE_RIGHT);
gl.addComponent(new Label("0,0-1,0"), 0, 0, 1, 0);
gl.addComponent(new Label("2,0-3,0"), 2, 0, 3, 0);
Label l = new Label("Large cell 0,1-2,2<br/>yadayada<br/>lorem ipsum");
- l.setContentMode(ContentMode.XHTML);
+ l.setContentMode(ContentMode.HTML);
gl.addComponent(l, 0, 1, 2, 2);
gl.addComponent(new Label("3-1"), 3, 1);
gl.addComponent(new Label("3,2-3,3"), 3, 2, 3, 3);
Label red = new Label(
"<div style='background:red;width:100%;height:100%;'>??</div>",
- ContentMode.XHTML);
+ ContentMode.HTML);
red.setSizeFull();
ol.addComponent(red);
Window w = new Window("Status of the fields");
w.setModal(true);
w.setHeight("80%");
- w.addComponent(new Label(msg.toString(), ContentMode.XHTML));
+ w.addComponent(new Label(msg.toString(), ContentMode.HTML));
main.addWindow(w);
}
});
}
Window w = new Window("Status of the fields");
w.setModal(true);
- w.addComponent(new Label(msg.toString(), ContentMode.XHTML));
+ w.addComponent(new Label(msg.toString(), ContentMode.HTML));
main.addWindow(w);
}
});
}
Window w = new Window("Status of the fields");
w.setModal(true);
- w.addComponent(new Label(msg.toString(), ContentMode.XHTML));
+ w.addComponent(new Label(msg.toString(), ContentMode.HTML));
main.addWindow(w);
}
});
}
}));
w.addComponent(new Label("<a href='" + getURL().toExternalForm() + "'>"
- + getURL().toExternalForm() + "</a>", ContentMode.XHTML));
+ + getURL().toExternalForm() + "</a>", ContentMode.HTML));
w.addComponent(new Label(
"<h2>How to reproduce</h2>Open the above link in another browser"
+ " window and then press the Show-button on this window.",
- ContentMode.XHTML));
+ ContentMode.HTML));
return w;
}
+ "'>"
+ getURL().toExternalForm()
+ "</a> which opens new windows to this uri. They should end up having a separate Window and URL.",
- ContentMode.XHTML));
+ ContentMode.HTML));
return w;
}
}
layout.setStyleName("borders");
// layout.setSizeFull();
final Label l = new Label(txt);
- l.setContentMode(ContentMode.XHTML);
+ l.setContentMode(ContentMode.HTML);
// l.setWidth("100%");
TextField tf = new TextField("This is a textField");
"Icon is built by servlet with a slow method, so it will show the bug (components not firing requestLayout)."));
Label l = new Label();
- l.setContentMode(ContentMode.XHTML);
+ l.setContentMode(ContentMode.HTML);
l.setValue("This is a label with as slow image. <img src=\"" + url
+ "/icon.png\" />");
main.addComponent(l);
l = new Label();
- l.setContentMode(ContentMode.XHTML);
+ l.setContentMode(ContentMode.HTML);
l.setValue("This is a label with as slow image. <img src=\"" + url
+ "/icon.png\" />");
main.addComponent(l);
w.addComponent(new Label("CONTENT_RAW: " + content, ContentMode.RAW));
w.addComponent(new Label("CONTENT_TEXT: " + content, ContentMode.TEXT));
w.addComponent(new Label("CONTENT_XML: " + content, ContentMode.XML));
- w.addComponent(new Label("CONTENT_XHTML: " + content, ContentMode.XHTML));
+ w.addComponent(new Label("CONTENT_XHTML: " + content, ContentMode.HTML));
}
}
private Label createEventLabel() {
- Label l = new Label(" ", ContentMode.XHTML);
+ Label l = new Label(" ", ContentMode.HTML);
l.setWidth(null);
return l;
}
errorPanel.setStyleName("strong");
errorPanel.setComponentError(new SystemError(
"Cannot provide sample directory"));
- errorPanel.addComponent(new Label(errorMessage, ContentMode.XHTML));
+ errorPanel.addComponent(new Label(errorMessage, ContentMode.HTML));
// Remove all components from applications main window
uI.getContent().removeAllComponents();
// Add error panel