org.opengts.war.track.page.devcmd
Class DeviceCmd_SMS

java.lang.Object
  extended by org.opengts.war.track.page.devcmd.DeviceCmd_SMS
All Implemented Interfaces:
DeviceCmdHandler

public class DeviceCmd_SMS
extends java.lang.Object
implements DeviceCmdHandler


Field Summary
static java.lang.String COMMAND_INFO_UPD_SMS
           
static java.lang.String CSS_deviceCommandArgDiv
           
static java.lang.String CSS_deviceCommandLabel
           
static java.lang.String CSS_deviceCommandNoArg
           
static java.lang.String CSS_deviceCommandSep
           
static java.lang.String CSS_deviceCommandSpacer
           
static java.lang.String CSS_deviceCommandWithArg
           
static java.lang.String DEVICE_CODE
           
static java.lang.String FORM_PROPERTY_EDIT
           
static java.lang.String PARM_BUTTON_BACK
           
static java.lang.String PARM_BUTTON_CANCEL
           
static java.lang.String PARM_COMMAND
           
static java.lang.String PARM_COMMAND_SELECT
           
static java.lang.String PARM_DEV_DESC
           
static java.lang.String PARM_DEV_LAST_CONNECT
           
static java.lang.String PARM_DEV_LAST_EVENT
           
static java.lang.String PARM_DEVICE
           
static java.lang.String PARM_SUBMIT_SEND
           
static java.lang.String RADIO_CMD_SEL_
           
static java.lang.String RADIO_CMD_TEXT_
           
 
Constructor Summary
DeviceCmd_SMS()
           
 
Method Summary
 boolean deviceSupportsCommands(Device dev)
          True if this UI supports the specified device
 java.lang.String getServerDescription()
           
 java.lang.String getServerID()
           
 java.lang.String handleDeviceCommands(RequestProperties reqState, Device selDev)
          Handles sending selected command to Device
 boolean hasSmsCommands(RequestProperties reqState)
           
 void setServerIDArg(java.lang.String arg)
           
 boolean writeCommandForm(java.io.PrintWriter out, RequestProperties reqState, Device selDev, java.lang.String actionURL, boolean editProps)
          Writes the command form html
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEVICE_CODE

public static final java.lang.String DEVICE_CODE
See Also:
Constant Field Values

FORM_PROPERTY_EDIT

public static final java.lang.String FORM_PROPERTY_EDIT
See Also:
Constant Field Values

COMMAND_INFO_UPD_SMS

public static final java.lang.String COMMAND_INFO_UPD_SMS
See Also:
Constant Field Values

PARM_COMMAND

public static final java.lang.String PARM_COMMAND
See Also:
Constant Field Values

PARM_DEVICE

public static final java.lang.String PARM_DEVICE
See Also:
Constant Field Values

PARM_DEV_DESC

public static final java.lang.String PARM_DEV_DESC
See Also:
Constant Field Values

PARM_DEV_LAST_CONNECT

public static final java.lang.String PARM_DEV_LAST_CONNECT
See Also:
Constant Field Values

PARM_DEV_LAST_EVENT

public static final java.lang.String PARM_DEV_LAST_EVENT
See Also:
Constant Field Values

PARM_COMMAND_SELECT

public static final java.lang.String PARM_COMMAND_SELECT
See Also:
Constant Field Values

RADIO_CMD_SEL_

public static final java.lang.String RADIO_CMD_SEL_
See Also:
Constant Field Values

RADIO_CMD_TEXT_

public static final java.lang.String RADIO_CMD_TEXT_
See Also:
Constant Field Values

PARM_SUBMIT_SEND

public static final java.lang.String PARM_SUBMIT_SEND
See Also:
Constant Field Values

PARM_BUTTON_CANCEL

public static final java.lang.String PARM_BUTTON_CANCEL
See Also:
Constant Field Values

PARM_BUTTON_BACK

public static final java.lang.String PARM_BUTTON_BACK
See Also:
Constant Field Values

CSS_deviceCommandLabel

public static final java.lang.String CSS_deviceCommandLabel
See Also:
Constant Field Values

CSS_deviceCommandArgDiv

public static final java.lang.String CSS_deviceCommandArgDiv
See Also:
Constant Field Values

CSS_deviceCommandNoArg

public static final java.lang.String CSS_deviceCommandNoArg
See Also:
Constant Field Values

CSS_deviceCommandWithArg

public static final java.lang.String CSS_deviceCommandWithArg
See Also:
Constant Field Values

CSS_deviceCommandSep

public static final java.lang.String CSS_deviceCommandSep
See Also:
Constant Field Values

CSS_deviceCommandSpacer

public static final java.lang.String CSS_deviceCommandSpacer
See Also:
Constant Field Values
Constructor Detail

DeviceCmd_SMS

public DeviceCmd_SMS()
Method Detail

setServerIDArg

public void setServerIDArg(java.lang.String arg)
Specified by:
setServerIDArg in interface DeviceCmdHandler

getServerID

public java.lang.String getServerID()
Specified by:
getServerID in interface DeviceCmdHandler

getServerDescription

public java.lang.String getServerDescription()
Specified by:
getServerDescription in interface DeviceCmdHandler

hasSmsCommands

public boolean hasSmsCommands(RequestProperties reqState)

deviceSupportsCommands

public boolean deviceSupportsCommands(Device dev)
True if this UI supports the specified device

Specified by:
deviceSupportsCommands in interface DeviceCmdHandler

writeCommandForm

public boolean writeCommandForm(java.io.PrintWriter out,
                                RequestProperties reqState,
                                Device selDev,
                                java.lang.String actionURL,
                                boolean editProps)
                         throws java.io.IOException
Writes the command form html

Specified by:
writeCommandForm in interface DeviceCmdHandler
Throws:
java.io.IOException

handleDeviceCommands

public java.lang.String handleDeviceCommands(RequestProperties reqState,
                                             Device selDev)
Handles sending selected command to Device

Specified by:
handleDeviceCommands in interface DeviceCmdHandler