1 19 20 package org.netbeans.modules.form.layoutsupport; 21 22 import java.awt.*; 23 24 32 33 class DefaultLayoutSupport extends AbstractLayoutSupport { 34 35 private Class layoutClass; 36 37 public DefaultLayoutSupport(Class layoutClass) { 38 this.layoutClass = layoutClass; 39 } 40 41 public Class getSupportedClass() { 42 return layoutClass; 43 } 44 45 public void addComponentsToContainer(Container container, 46 Container containerDelegate, 47 Component[] components, 48 int index) 49 { 50 try { 53 super.addComponentsToContainer(container, 54 containerDelegate, 55 components, 56 index); 57 } 58 catch (RuntimeException ex) { ex.printStackTrace(); 60 } 61 } 62 63 67 protected AbstractLayoutSupport createLayoutSupportInstance() { 68 return new DefaultLayoutSupport(layoutClass); 69 } 70 } 71 | Popular Tags |