コード例 #1
0
 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();
   }
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #3
0
ファイル: BorderPanel.java プロジェクト: geniot/jnovelist
 public String getBorderWidth() {
   return bWidth.getAttr();
 }