01: package org.uispec4j.extension;
02:
03: import org.uispec4j.Button;
04:
05: import java.awt.*;
06:
07: public class DerivedCountingButton extends Button {
08: public static final String TYPE_NAME = "countingButton";
09: public static final Class[] SWING_CLASSES = { JCountingButton.class };
10:
11: JCountingButton jButton;
12:
13: public DerivedCountingButton(JCountingButton jButton) {
14: super (jButton);
15: this .jButton = jButton;
16: }
17:
18: public Component getAwtComponent() {
19: return jButton;
20: }
21:
22: public String getDescriptionTypeName() {
23: return TYPE_NAME;
24: }
25:
26: public void click() {
27: jButton.doClick();
28: }
29: }
|