|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SCMacroCommand.java Description: contains command infomation for one line of an SCMacro. There are 8 different command types, some of which require various combinations of arguments, hostPosition information or copyLength information. SCMacroCommands and SCMacros may be created using methods in the SCFactory class.
SCMacro
,
SCFactory.createMacroCommand(int, java.lang.String)
,
SCFactory.createMacro(java.util.Vector, java.lang.String)
Field Summary | |
static int |
CLOSE_WINDOW
Constant for setCommandType()
Close window |
static int |
FILE_DEFAULTS
Constant for setCommandType()
File defaults |
static int |
LAUNCH_MACRO
Constant for setCommandType()
Launch macro file |
static int |
NEW_SESSION
Constant for setCommandType()
Start new session |
static int |
NO_COMMAND
Constant for setCommandType()
No command |
static int |
NUMBER_COMMANDS
|
static int |
PERFORM_CALC
Constant for setCommandType()
Perform calculation |
static int |
RECEIVE_FILES
Constant for setCommandType()
Receive files |
static int |
RUN_APPLET
Constant for setCommandType()
Run applet |
static int |
SEND_FILES
Constant for setCommandType()
Send files |
static int |
SET_CURSOR
Constant for setCommandType()
Set cursor |
Method Summary | |
java.lang.String |
getArgument()
Gets the argument. |
int |
getCommandType()
Gets the command type (one of the statically defined values above). |
int |
getCopyLength()
Gets the copy length. |
int |
getHostPosition()
Gets the host position. |
void |
setArgument(java.lang.String argument)
Sets the optional argument to be used with the set command type. |
void |
setCommandType(int commandType)
Sets the command type using the static values defined above. |
void |
setCopyLength(int copyLength)
Sets the copy length. |
void |
setHostPosition(int hostPosition)
Sets the host position. |
Field Detail |
public static final int SET_CURSOR
setCommandType()
Set cursorpublic static final int CLOSE_WINDOW
setCommandType()
Close windowpublic static final int PERFORM_CALC
setCommandType()
Perform calculationpublic static final int LAUNCH_MACRO
setCommandType()
Launch macro filepublic static final int NEW_SESSION
setCommandType()
Start new sessionpublic static final int RUN_APPLET
setCommandType()
Run appletpublic static final int SEND_FILES
setCommandType()
Send filespublic static final int RECEIVE_FILES
setCommandType()
Receive filespublic static final int FILE_DEFAULTS
setCommandType()
File defaultspublic static final int NUMBER_COMMANDS
public static final int NO_COMMAND
setCommandType()
No commandMethod Detail |
public void setCommandType(int commandType) throws java.lang.Exception
commandType
- the command typejava.lang.Exception
- if commandType
is invalid.public int getCommandType()
NO_COMMAND
if no command has been set.public void setArgument(java.lang.String argument)
argument
- the argumentpublic java.lang.String getArgument()
null
if no argument has been set.public void setCopyLength(int copyLength)
copyLength
- the copyLengthpublic int getCopyLength()
-1
if no copy length has be specified.public void setHostPosition(int hostPosition)
hostPosition
- the host positionpublic int getHostPosition()
-1
if no host position has be specified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |