Back to index

moin  1.9.0~rc2
Command.java
Go to the documentation of this file.
00001 /*
00002  * @(#)Command.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.util;
00007 
00008 import java.awt.*;
00009 import java.util.*;
00010 
00027 public abstract class Command {
00028 
00029     private String  fName;
00030 
00034     public Command(String name) {
00035         fName = name;
00036     }
00037 
00041     public abstract void execute();
00042 
00046     public boolean isExecutable() {
00047         return true;
00048     }
00049 
00053     public String name() {
00054         return fName;
00055     }
00056 }