this.imageAlign = DEFAULT_ALIGN;
switch (align.intValue()) { case 0: this.imageAlign = Graphics.LEFT; break; case 1: this.imageAlign = Graphics.RIGHT; break; case 2: this.imageAlign = Graphics.TOP; break; case 3: this.imageAlign = Graphics.BOTTOM; break; }
	public void setStyle(Style style) {		super.setStyle(style);		//#ifdef polish.css.icon-image-align			String align = style.getProperty("icon-image-align");			if (align == null) {				// keep align setting			} else if ("left".equals(align)) {				this.imageAlign = Graphics.LEFT;			} else if ("right".equals(align)) {				this.imageAlign = Graphics.RIGHT;			} else if ("top".equals(align)) {				this.imageAlign = Graphics.TOP;			} else if ("bottom".equals(align)) {				this.imageAlign = Graphics.BOTTOM;			} else {				this.imageAlign = DEFAULT_ALIGN;			}		//#endif		//#ifdef polish.css.icon-image			String imageName = style.getProperty("icon-image");			if (imageName != null) {				if (!(imageName.equals(this.imageUrl))) {					this.imageUrl = imageName; 					if (this.parent instanceof Container) {						imageName = ((Container) this.parent).parseIndexUrl( imageName, this );					}					try {						Image img = StyleSheet.getImage(imageName, this, true);						if (img != null) {							this.isInitialised = false;							this.image = img;							repaint();						}					} catch (IOException e) {						//#debug error						Debug.debug("unable to load image [" + imageName + "]", e);					}				}			}		//#endif	}