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)
- on - if not set, the user must put the name of the
atom to be used here.
- set - the property to be set on that atom - must be
put here, if not set in the command.
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 "")
-
DEFAULT_MAX_LENGTH
-
-
targetCode
-
-
valueCode
-
-
ConstrainedSet()
-
-
run(Player, StringTokenizer, String, ModalCommand, InteractiveConnection, Flags)
- If this method is not overridden, it calls
the others.
valueCode
public static final Character valueCode
targetCode
public static final Character targetCode
DEFAULT_MAX_LENGTH
public static final int DEFAULT_MAX_LENGTH
ConstrainedSet
public ConstrainedSet()
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