public AttributeSet getValue(final boolean includeUnchanged) { if (includeUnchanged) { final SimpleAttributeSet set = new SimpleAttributeSet(); SizeSelectorPanel ssp; for (int i = 0; i < components.size(); i++) { ssp = (SizeSelectorPanel) components.elementAt(i); ca.setAttribute(i, ssp.getAttr()); } final String newValue = ca.getAttribute(); set.addAttribute(key, newValue); Util.styleSheet().addCSSAttribute(set, (CSS.Attribute) key, newValue); return set; } else { return getValue(); } }
/** * get the value of this <code>AttributeComponent</code> * * @return the value selected from this component */ public AttributeSet getValue() { final SimpleAttributeSet set = new SimpleAttributeSet(); SizeSelectorPanel ssp; for (int i = 0; i < components.size(); i++) { ssp = (SizeSelectorPanel) components.elementAt(i); if (ssp.valueChanged()) { ca.setAttribute(i, ssp.getAttr()); } } final String newValue = ca.getAttribute(); if (!originalValue.equalsIgnoreCase(newValue)) { set.addAttribute(key, newValue); Util.styleSheet().addCSSAttribute(set, (CSS.Attribute) key, newValue); } return set; }
public String getBorderWidth() { return bWidth.getAttr(); }