APISonar


com.vaadin.shared.ui.label.ContentMode.XML

> com > vaadin > shared > ui > label > ContentMode > XML
com APIs vaadin APIs shared APIs ui APIs label APIs ContentMode APIs XML APIs

Example 1
private String getComparableValue() {
        String stringValue = getValue();
        if (stringValue == null) {
            stringValue = "";
        }

        if (getContentMode() == ContentMode.HTML
                || getContentMode() == ContentMode.XML) {
            return stripTags(stringValue);
        } else {
            return stringValue;
        }

    }
Example 2
private void createContentModeSelect(String category) {
        LinkedHashMap<String, ContentMode> options = new LinkedHashMap<String, ContentMode>();
        options.put("Text", ContentMode.TEXT);
        options.put("Preformatted", ContentMode.PREFORMATTED);
        options.put("Raw", ContentMode.RAW);
        options.put("UIDL", ContentMode.XML); // Deprecated UIDL mode still used
                                              // to avoid breaking old tests
        options.put("XHTML", ContentMode.HTML);
        options.put("XML", ContentMode.XML);

        createSelectAction("Content mode", category, options, "Text",
                contentModeCommand);
    }