public class QbScheduler
extends java.lang.Object
Constructor and Description |
---|
QbScheduler(java.applet.Applet applet,
javax.swing.JFrame frame)
Allocates a new QbScheduler Object giving it a handle to an applet or a frame if necessary to
display the Scheduler in an applet or frame.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getInsertCommandEnabled()
Returns whether Insert Command is enabled or not.
|
javax.swing.JPanel |
getScheduler()
Returns the scheduler as a JPanel.
|
java.lang.String |
getSecurityLevel()
Gets the String name of the security level that the user will operate at.
|
static java.lang.String |
getServletContext()
return servlet context
|
static void |
setCommProtocol(java.lang.String str)
Sets the protocol to be used to connect to the Application server.
|
static void |
setCommUrl(java.lang.String comm_url)
Sets the communication URL to be the comm_url string.
|
static void |
setDebugMode(int mode)
set debug mode to display debug statement
|
static void |
setDebugMode(java.lang.String mode)
set debug mode to display debug statement
|
void |
setInsertCommandEnabled(boolean b)
Sets whether the user can see the Insert Command function.
|
void |
setRootDirectoryForBrowse(java.lang.String browseRoot)
Restricts the user to not be able to browse to any location above the browseRoot directory.
|
void |
setSecurityLevel(java.lang.String securityLevel)
Sets the security level associated with this Scheduler with a String name of the security
level setup previously by the administrator.
|
static void |
setServerAddress(java.lang.String address)
Set the server address of EspressManager.
|
static void |
setServerHosts(java.util.Vector<java.lang.String> hostnames)
Set the list of host names for EspressManager when tunneling is used.
|
static void |
setServerPortNumber(int port)
Set the port number of EspressManager.
|
static void |
setServletContext(java.lang.String context)
set servlet context
|
static void |
setServletRunner(java.lang.String comm_url)
Set servlet runner hostname and port number Note: this static method MUST be called before
any QbChart constructor
|
void |
setSysExitOnExit(boolean state)
Sets the state of whether System.exit() is called when the user selects Done.
|
boolean |
sysExitOnExit()
Gets the state of whether System.exit() is called when the user selects Done.
|
static void |
useServlet(boolean b)
Determines whether to use SOCKET or HTTP or SERVLET for chart server connection
Note that this static method MUST be called before any QbChart constructor.
|
public QbScheduler(java.applet.Applet applet, javax.swing.JFrame frame)
public static void setCommProtocol(java.lang.String str)
str
- if the str is "http" (ignoring case), then http protocol will be used to
communicate with the server, other protocol are ignored.public static void setCommUrl(java.lang.String comm_url)
public static final void setDebugMode(java.lang.String mode)
public static final void setDebugMode(int mode)
public javax.swing.JPanel getScheduler()
public void setRootDirectoryForBrowse(java.lang.String browseRoot)
public void setInsertCommandEnabled(boolean b)
public boolean getInsertCommandEnabled()
public void setSecurityLevel(java.lang.String securityLevel)
public java.lang.String getSecurityLevel()
public static void setServerAddress(java.lang.String address) throws java.net.UnknownHostException
java.net.UnknownHostException
public static void setServerPortNumber(int port)
public static void setServerHosts(java.util.Vector<java.lang.String> hostnames)
public static void setServletRunner(java.lang.String comm_url)
comm_url
- servlet runner hostname and port numberpublic static void useServlet(boolean b)
b
- If true use SERVLET connection, otherwise use other connection The default value
is false.public static void setServletContext(java.lang.String context)
public static java.lang.String getServletContext()
public void setSysExitOnExit(boolean state)
state
- the statepublic boolean sysExitOnExit()