1 package org.sapia.gumby.swing.widgets; 2 3 import java.awt.Insets ; 4 5 import org.sapia.util.xml.confix.ConfigurationException; 6 import org.sapia.util.xml.confix.ObjectCreationCallback; 7 8 23 public class InsetsPeer implements ObjectCreationCallback { 24 25 private Insets _insets = new Insets (0, 0, 0, 0); 26 27 public void setBottom(int bottom) { 28 _insets.bottom = bottom; 29 } 30 31 public void setTop(int top) { 32 _insets.top = top; 33 } 34 35 public void setLeft(int left) { 36 _insets.left = left; 37 } 38 39 public void setRight(int right) { 40 _insets.right = right; 41 } 42 43 46 public Object onCreate() throws ConfigurationException { 47 return _insets; 48 } 49 } 50 | Popular Tags |