1 7 8 package org.jdesktop.jdnc.markup.attr; 9 10 import org.jdesktop.swing.data.DataModel; 11 import org.jdesktop.swing.data.DefaultTableModelExt; 12 import org.jdesktop.swing.data.TableModelExtAdapter; 13 14 import org.jdesktop.swing.binding.Binding; 15 import org.jdesktop.swing.binding.BindException; 16 17 import org.jdesktop.swing.form.JForm; 18 import org.jdesktop.swing.form.RowSelector; 19 20 import org.jdesktop.jdnc.JNForm; 21 import org.jdesktop.jdnc.JNTable; 22 23 import org.jdesktop.jdnc.markup.elem.FormElement; 24 25 import net.openmarkup.ApplierException; 26 import net.openmarkup.AttributeApplier; 27 import net.openmarkup.Realizable; 28 29 30 33 public class FormComponentAttributes { 34 35 public static final AttributeApplier dataApplier = new AttributeApplier() { 36 public void apply(Realizable target, String namespaceURI, 37 String attributeName, String attributeValue) 38 throws ApplierException { 39 Object data = BaseAttribute.getReferencedObject(target, 40 attributeValue); 41 Object binding[] = (Object []) target.getObject(); 42 binding[0] = data; 43 } 44 45 }; 46 47 public static final AttributeApplier bindingApplier = new AttributeApplier() { 48 public void apply(Realizable target, String namespaceURI, 49 String attributeName, String attributeValue) 50 throws ApplierException { 51 Object binding[] = (Object []) target.getObject(); 52 binding[1] = attributeValue; 53 } 54 }; 55 56 } 58 | Popular Tags |