public Style() { super.setVisible(false); }
/** Processes the style. */ private String filterStyle(String style) { if (style != null) { final int j = HTMLs.getSubstyleIndex(style, "display"); if (j >= 0) { // display is specified super.setVisible(!"none".equals(HTMLs.getSubstyleValue(style, j))); return style; // done } } if (!isVisible()) { int len = style != null ? style.length() : 0; if (len == 0) return "display:none;"; if (style.charAt(len - 1) != ';') style += ';'; style += "display:none;"; } return style; }
final boolean old = super.setVisible(visible); if (old != visible) { final String style = getStyle();