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