ap.replaceWithSelect("contentMode", new Object[] {
new Integer(Label.CONTENT_PREFORMATTED),
new Integer(Label.CONTENT_TEXT),
- new Integer(Label.CONTENT_UIDL),
new Integer(Label.CONTENT_XHTML),
new Integer(Label.CONTENT_XML) },
new Object[] { "Preformatted", "Text", "UIDL (Must be valid)",
w
.addComponent(new Label("CONTENT_TEXT: " + content,
Label.CONTENT_TEXT));
- w
- .addComponent(new Label("CONTENT_UIDL: " + content,
- Label.CONTENT_UIDL));
w.addComponent(new Label("CONTENT_XML: " + content, Label.CONTENT_XML));
w.addComponent(new Label("CONTENT_XHTML: " + content,
Label.CONTENT_XHTML));
*/
public static final int CONTENT_PREFORMATTED = 1;
- /**
- * Formatted content mode, where the contents is XML restricted to the UIDL
- * 1.0 formatting markups.
- */
- public static final int CONTENT_UIDL = 2;
-
/**
* Content mode, where the label contains XHTML. Contents is then enclosed
* in DIV elements having namespace of
}
if (contentMode == CONTENT_TEXT) {
target.addText(toString());
- } else if (contentMode == CONTENT_UIDL) {
- target.addUIDL(toString());
} else if (contentMode == CONTENT_XHTML) {
target.startTag("data");
target.addXMLSection("div", toString(),
String thisValue;
String otherValue;
- if (contentMode == CONTENT_XML || contentMode == CONTENT_UIDL
- || contentMode == CONTENT_XHTML) {
+ if (contentMode == CONTENT_XML || contentMode == CONTENT_XHTML) {
thisValue = stripTags(toString());
} else {
thisValue = toString();
}
if (other instanceof Label
- && (((Label) other).getContentMode() == CONTENT_XML
- || ((Label) other).getContentMode() == CONTENT_UIDL || ((Label) other)
+ && (((Label) other).getContentMode() == CONTENT_XML || ((Label) other)
.getContentMode() == CONTENT_XHTML)) {
otherValue = stripTags(other.toString());
} else {