home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing;
-
- import java.awt.event.ActionListener;
- import java.io.Serializable;
-
- class JComponent$KeyboardBinding implements Serializable {
- ActionListener action;
- String command;
- KeyStroke keyStroke;
- int condition;
-
- JComponent$KeyboardBinding(ActionListener action, String aCommand, KeyStroke aKeyStroke, int condition) {
- this.action = action;
- this.command = aCommand;
- this.keyStroke = aKeyStroke;
- this.condition = condition;
- }
-
- ActionListener getAction() {
- return this.action;
- }
-
- String getCommand() {
- return this.command;
- }
-
- KeyStroke getKeyStroke() {
- return this.keyStroke;
- }
-
- int getCondition() {
- return this.condition;
- }
-
- public String toString() {
- return "KeyBinding (" + this.action + "," + this.keyStroke + "," + this.condition + ")";
- }
- }
-