org.hecl.midp20.lcdui
Class OptionCmd
java.lang.Object
org.hecl.midp20.lcdui.OptionCmd
- All Implemented Interfaces:
- ClassCommand, Command
- Direct Known Subclasses:
- CommandCmd, DisplayableCmd, EventCmd, GraphicsCmd, ImageCmd, ItemCmd, SettingsCmd, TextFieldCmd, TickerCmd
public abstract class OptionCmd
- extends java.lang.Object
- implements ClassCommand, Command
Method Summary |
protected Thing |
cget(Interp ip,
java.lang.Object target,
java.lang.String optname)
|
void |
configure(Interp ip,
java.lang.Object target,
Thing[] argv,
int start,
int n)
|
protected void |
cset(Interp ip,
java.lang.Object target,
java.lang.String optname,
Thing optval)
|
protected Thing |
handlecmd(Interp ip,
java.lang.Object target,
java.lang.String subcmd,
Thing[] argv,
int startat)
|
protected Thing |
itemcget(Interp ip,
java.lang.Object target,
int itemno,
java.lang.String optname)
|
protected void |
itemcset(Interp ip,
java.lang.Object target,
int itemno,
java.lang.String optname,
Thing optval)
|
Thing |
method(Interp ip,
ClassCommandInfo context,
Thing[] argv)
The method method takes an interpreter, a class
information and an array of Things, performs some calculations, and
returns a Thing which may be null . |
java.lang.Object |
setInstanceProperties(Interp ip,
java.lang.Object target,
Properties p)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionCmd
protected OptionCmd()
setInstanceProperties
public java.lang.Object setInstanceProperties(Interp ip,
java.lang.Object target,
Properties p)
throws HeclException
- Throws:
HeclException
method
public Thing method(Interp ip,
ClassCommandInfo context,
Thing[] argv)
throws HeclException
- Description copied from interface:
ClassCommand
- The
method
method takes an interpreter, a class
information and an array of Things, performs some calculations, and
returns a Thing
which may be null
. The
interpreter calls this method when it detects an
ObjectThing
as first argument of a command on the script
level and detects a command handler for the class of the value of the
ObjectThing
.
- Specified by:
method
in interface ClassCommand
- Parameters:
ip
- an Interp
valuecontext
- A reference to the ClassInfo>
describing
further details of th emethod.argv
- A Thing[]
array holding the parameters for the
method. The 0th element is the object, the 1st element is the method.
- Throws:
HeclException
- if an error occurs
configure
public void configure(Interp ip,
java.lang.Object target,
Thing[] argv,
int start,
int n)
throws HeclException
- Throws:
HeclException
cget
protected Thing cget(Interp ip,
java.lang.Object target,
java.lang.String optname)
throws HeclException
- Throws:
HeclException
cset
protected void cset(Interp ip,
java.lang.Object target,
java.lang.String optname,
Thing optval)
throws HeclException
- Throws:
HeclException
itemcget
protected Thing itemcget(Interp ip,
java.lang.Object target,
int itemno,
java.lang.String optname)
throws HeclException
- Throws:
HeclException
itemcset
protected void itemcset(Interp ip,
java.lang.Object target,
int itemno,
java.lang.String optname,
Thing optval)
throws HeclException
- Throws:
HeclException
handlecmd
protected Thing handlecmd(Interp ip,
java.lang.Object target,
java.lang.String subcmd,
Thing[] argv,
int startat)
throws HeclException
- Throws:
HeclException