1 19 20 package org.netbeans.modules.form.layoutsupport; 21 22 import java.awt.*; 23 import java.beans.*; 24 import org.openide.nodes.Node; 25 import org.netbeans.modules.form.*; 26 27 32 33 class MetaLayout extends RADComponent { 34 35 private AbstractLayoutSupport abstLayoutDelegate; 36 37 public MetaLayout(AbstractLayoutSupport layoutDelegate, 38 LayoutManager lmInstance, 39 boolean defaultInstance) 40 { 41 super(); 42 43 abstLayoutDelegate = layoutDelegate; 44 45 initialize(((LayoutSupportManager)abstLayoutDelegate.getLayoutContext()) 46 .getMetaContainer().getFormModel()); 47 48 if (defaultInstance) 49 setBeanInstance(lmInstance); 50 else 51 setInstance(lmInstance); 52 } 53 54 protected void createCodeExpression() { 55 } 57 58 protected void createPropertySets(java.util.List propSets) { 59 super.createPropertySets(propSets); 60 61 for (int i=0, n=propSets.size(); i < n; i++) { 64 Node.PropertySet propSet = (Node.PropertySet)propSets.get(i); 65 if (!"properties".equals(propSet.getName()) && !"properties2".equals(propSet.getName())) { propSets.remove(i); 68 i--; n--; 69 } 70 } 71 } 72 73 protected PropertyChangeListener createPropertyListener() { 74 return null; 77 } 78 } 79 | Popular Tags |