01: package org.uispec4j;
02:
03: import javax.swing.*;
04: import java.awt.*;
05:
06: /**
07: * Wrapper for JButton components.
08: */
09: public class Button extends AbstractButton {
10: public static final String TYPE_NAME = "button";
11: public static final Class[] SWING_CLASSES = { JButton.class };
12:
13: private JButton jButton;
14:
15: public Button(JButton jButton) {
16: super (jButton);
17: this .jButton = jButton;
18: }
19:
20: public String getDescriptionTypeName() {
21: return TYPE_NAME;
22: }
23:
24: public Component getAwtComponent() {
25: return jButton;
26: }
27: }
|