public AbstractInsetsProperty(Property parent, @NonNls final String name){ super(parent, name); myChildren=new Property[]{ new IntFieldProperty(this, "top", 0, new Insets(0, 0, 0, 0)), new IntFieldProperty(this, "left", 0, new Insets(0, 0, 0, 0)), new IntFieldProperty(this, "bottom", 0, new Insets(0, 0, 0, 0)), new IntFieldProperty(this, "right", 0, new Insets(0, 0, 0, 0)), }; myRenderer=new InsetsPropertyRenderer(); }
public IntroInsetsProperty(final String name, final Method readMethod, final Method writeMethod, final boolean storeAsClient){ super(name, readMethod, writeMethod, storeAsClient); myChildren=new Property[]{ new IntFieldProperty(this, "top", 0, new Insets(0, 0, 0, 0)), new IntFieldProperty(this, "left", 0, new Insets(0, 0, 0, 0)), new IntFieldProperty(this, "bottom", 0, new Insets(0, 0, 0, 0)), new IntFieldProperty(this, "right", 0, new Insets(0, 0, 0, 0)), }; myRenderer=new InsetsPropertyRenderer(); myEditor = new InsetsEditor(myRenderer); }