Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2000,2005 wingS development team.
*
* This file is part of wingS (http://wingsframework.org).
*
* wingS is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
*
* Please see COPYING for the complete licence.
*/
package org.wings.plaf.css;
import org.wings.*;
import org.wings.plaf.Update;
import org.wings.io.Device;
import java.io.IOException;
public class ButtonCG extends AbstractLabelCG implements org.wings.plaf.ButtonCG {
/**
* a serializable class is supposed to have this ID.
*/
private static final long serialVersionUID = -1794530181411426283L;
@Override
public void writeInternal(final Device device, final SComponent component)
throws IOException {
final SAbstractButton button = (SAbstractButton) component;
String text = button.getText();
final SIcon icon = getIcon(button);
if (icon == null && text == null)
text = "";
final String ftext = text;
if (icon == null) {
device.print("