src/main/java/xelfi/design/components/xawt/XBevel.java
changeset 6 947ce1156833
parent 0 189280700bc7
     1.1 --- a/src/main/java/xelfi/design/components/xawt/XBevel.java	Tue Jan 17 19:59:12 2017 +0100
     1.2 +++ b/src/main/java/xelfi/design/components/xawt/XBevel.java	Tue Jan 17 21:08:47 2017 +0100
     1.3 @@ -41,7 +41,7 @@
     1.4  			icon = loadIcon("bevel.gif");
     1.5  	}
     1.6  
     1.7 -	public int setSize(int w, int h) { 
     1.8 +	public int setDesignSize(int w, int h) { 
     1.9  		Dimension d = bevel.size();
    1.10  		if (d == null)
    1.11  			d = new Dimension(w,h);
    1.12 @@ -225,7 +225,7 @@
    1.13  			case 1: if (!(value instanceof Boolean)) throw new XFPropertyBadValueTypeException();
    1.14  					bevel.setDirection(((Boolean)value).booleanValue());
    1.15  				 	ret = ret | XFDesignConstants.RSP_OTHER_PROP | XFDesignConstants.RSP_REPAINT_COMP;
    1.16 -					setSize(0,0);
    1.17 +					setDesignSize(0,0);
    1.18  					break;
    1.19  			case 2:	if (!(value instanceof Boolean)) throw new XFPropertyBadValueTypeException();
    1.20  					bevel.enable(((Boolean)value).booleanValue());
    1.21 @@ -250,17 +250,17 @@
    1.22  			case 6:if (!(value instanceof Color)) throw new XFPropertyBadValueTypeException();
    1.23  					bevel.setBorderColor((Color)value);
    1.24  				 	ret = ret | XFDesignConstants.RSP_REPAINT_COMP;
    1.25 -					setSize(0,0);
    1.26 +					setDesignSize(0,0);
    1.27  					break;
    1.28  			case 7:if (!(value instanceof Integer)) throw new XFPropertyBadValueTypeException();
    1.29  					bevel.setBorderWidth(((Integer)value).intValue());
    1.30  				 	ret = ret | XFDesignConstants.RSP_OTHER_PROP | XFDesignConstants.RSP_REPAINT_COMP;
    1.31 -					setSize(0,0);
    1.32 +					setDesignSize(0,0);
    1.33  					break;
    1.34  			case 8:if (!(value instanceof Integer)) throw new XFPropertyBadValueTypeException();
    1.35  					bevel.setBevelWidth(((Integer)value).intValue());
    1.36  				 	ret = ret | XFDesignConstants.RSP_OTHER_PROP | XFDesignConstants.RSP_REPAINT_COMP;
    1.37 -					setSize(0,0);
    1.38 +					setDesignSize(0,0);
    1.39  					break;
    1.40  			default: throw new XFPropertyIndexOutOfBoundsException();
    1.41  		}