All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class key.commands.ConstrainedSet

java.lang.Object
   |
   +----key.Atom
           |
           +----key.Command
                   |
                   +----key.commands.ConstrainedSet

public class ConstrainedSet
extends Command
This is a wonderful command that can be instantiated and used for all sorts of 'constraints' when allowing users to set things. Basically, if one of the required properties is null, the user is prompted for it. Here are the properties (in the order the user needs to type them, for your usage displays) Followed by the string value to set, if the maximum length (set on the command) isn't 0. If the length is zero, the property will simply be blanked. (set to "")


Variable Index

 o DEFAULT_MAX_LENGTH
 o targetCode
 o valueCode

Constructor Index

 o ConstrainedSet()

Method Index

 o run(Player, StringTokenizer, String, ModalCommand, InteractiveConnection, Flags)
If this method is not overridden, it calls the others.

Variables

 o valueCode
 public static final Character valueCode
 o targetCode
 public static final Character targetCode
 o DEFAULT_MAX_LENGTH
 public static final int DEFAULT_MAX_LENGTH

Constructors

 o ConstrainedSet
 public ConstrainedSet()

Methods

 o run
 public void run(Player p,
                 StringTokenizer args,
                 String fullLine,
                 ModalCommand caller,
                 InteractiveConnection ic,
                 Flags flags) throws IOException
If this method is not overridden, it calls the others.

Overrides:
run in class Command

All Packages  Class Hierarchy  This Package  Previous  Next  Index