01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings.plaf.css;
14:
15: import org.wings.SIcon;
16: import org.wings.SToggleButton;
17: import org.wings.plaf.Update;
18:
19: public final class ToggleButtonCG extends ButtonCG implements
20: org.wings.plaf.ToggleButtonCG {
21:
22: private static final long serialVersionUID = 1L;
23:
24: public Update getTextUpdate(SToggleButton toggleButton, String text) {
25: return text == null ? null : new TextUpdate(toggleButton, text);
26: }
27:
28: public Update getIconUpdate(SToggleButton toggleButton, SIcon icon) {
29: return icon == null ? null : new IconUpdate(toggleButton, icon);
30: }
31:
32: }
|