/** * Constructor * @param svgElement * The SVG element defining the button * @param faces * A collection of faces */ protected SVGButtonBase(OMSVGSVGElement svgElement, Map<SVGFaceName, SVGFace> faces) { this(); if (faces != null) { this.faces.putAll(faces); } setSvgElement(svgElement); } /**
/** * Constructor * @param svgElement * The SVG element defining the button * @param faces * A collection of faces */ protected SVGButtonBase(OMSVGSVGElement svgElement, Map<SVGFaceName, SVGFace> faces) { this(); if (faces != null) { this.faces.putAll(faces); } setSvgElement(svgElement); } /**
/** * Sets the SVG resource defining the button * @param resource * An SVG resource */ public void setResource(SVGResource resource) { setSvgElement(resource.getSvg()); } /**
/** * Sets the SVG resource defining the button * @param resource * An SVG resource */ public void setResource(SVGResource resource) { setSvgElement(resource.getSvg()); } /**