}
if (rolloverCssStyle.hasAttributes()) {
rolloverStyle = rolloverCssStyle.renderInline();
}
if (hasIcon) {
ImageReference rolloverIcon = (ImageReference) button.getRenderProperty(AbstractButton.PROPERTY_ROLLOVER_ICON);
if (rolloverIcon != null) {
rolloverIconUri = ImageTools.getUri(rc, this, button, IMAGE_ID_ROLLOVER_ICON);
}
}
}
if (pressedEnabled) {
CssStyle pressedCssStyle = new CssStyle();
BorderRender.renderToStyle(pressedCssStyle,
(Border) button.getRenderProperty(AbstractButton.PROPERTY_PRESSED_BORDER));
ColorRender.renderToStyle(pressedCssStyle,
(Color) button.getRenderProperty(AbstractButton.PROPERTY_PRESSED_FOREGROUND),
(Color) button.getRenderProperty(AbstractButton.PROPERTY_PRESSED_BACKGROUND));
FontRender.renderToStyle(pressedCssStyle,
(Font) button.getRenderProperty(AbstractButton.PROPERTY_PRESSED_FONT));
if (backgroundImage != null) {
FillImageRender.renderToStyle(pressedCssStyle, rc, this, button, IMAGE_ID_PRESSED_BACKGROUND,
(FillImage) button.getRenderProperty(AbstractButton.PROPERTY_PRESSED_BACKGROUND_IMAGE),
FillImageRender.FLAG_DISABLE_FIXED_MODE);
}
if (pressedCssStyle.hasAttributes()) {
pressedStyle = pressedCssStyle.renderInline();
}
if (hasIcon) {
ImageReference pressedIcon = (ImageReference) button.getRenderProperty(AbstractButton.PROPERTY_PRESSED_ICON);
if (pressedIcon != null) {
pressedIconUri = ImageTools.getUri(rc, this, button, IMAGE_ID_PRESSED_ICON);
}
}
}