public class QbOrganizer
extends java.lang.Object
Constructor and Description |
---|
QbOrganizer(java.lang.Object object,
java.lang.String userName,
java.lang.String password)
Connect to server and get organizer handle
|
Modifier and Type | Method and Description |
---|---|
static javax.swing.LookAndFeel |
getLookAndFeel() |
javax.swing.JFrame |
getOrganizerUI()
launch the report designer.
|
Scheduler |
getScheduler()
Returns a handle to properties of the scheduler.
|
static java.lang.String |
getServletContext()
return servlet context
|
void |
insertNewItem(java.lang.String name,
java.lang.String description,
java.lang.String location,
java.lang.String url,
java.lang.String folderName)
Inserts an item into the organizer.
|
void |
logout()
Logout from Organizer
|
void |
removeItem(java.lang.String name,
java.lang.String folderName)
Removes an item from the organizer.
|
void |
setChartDesignerHandle(IChartHandle chtHandle)
modify chart designer by implementing IChartHandle interface
|
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
|
static void |
setLookAndFeel(javax.swing.LookAndFeel newLookAndFeel)
Sets the look and feel of the designer UI.
|
void |
setReportDesignerHandle(IReportHandle rptHandle)
modify report designer by implementing IReportHandle interface
|
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 connection
|
public QbOrganizer(java.lang.Object object, java.lang.String userName, java.lang.String password) throws java.lang.Exception
object
- can be null, applet or frameuserName
- login user namepassword
- login user passwordjava.lang.Exception
public void logout() throws java.lang.Exception
java.lang.Exception
public javax.swing.JFrame getOrganizerUI()
public void setChartDesignerHandle(IChartHandle chtHandle)
public void setReportDesignerHandle(IReportHandle rptHandle)
public static final void setDebugMode(java.lang.String mode)
public static final void setDebugMode(int mode)
public static void setLookAndFeel(javax.swing.LookAndFeel newLookAndFeel)
Sets the look and feel of the designer UI. User has to call this method before calling QbOrganizer constructor. If UIManager.setLookAndFeel(newLookAndFeel) throws exception, this method does nothing.
Sample use of this method can be one of the following:QbOrganizer.setLookAndFeel(new javax.swing.plaf.metal.MetalLookAndFeel()); //Java Metal QbOrganizer.setLookAndFeel(new com.sun.java.swing.plaf.windows.WindowsLookAndFeel()); //Windows QbOrganizer.setLookAndFeel(new com.sun.java.swing.plaf.motif.MotifLookAndFeel()); // MOTIF UI
public static javax.swing.LookAndFeel getLookAndFeel()
public static void setServletRunner(java.lang.String comm_url)
comm_url
- servlet runner hostname and port numberpublic static void setServletContext(java.lang.String context)
public static java.lang.String getServletContext()
public Scheduler getScheduler()
public void insertNewItem(java.lang.String name, java.lang.String description, java.lang.String location, java.lang.String url, java.lang.String folderName) throws java.lang.Exception
name
- the name of the item.description
- a brief description of the item.location
- the file path to the item.url
- the url that points to this item.folderName
- the path to the organizer folder to insert this item. Must start with a "/"
indicating the root of the organizer. (ex. "/managers/orders").java.lang.Exception
public void removeItem(java.lang.String name, java.lang.String folderName) throws java.lang.Exception
name
- the name of the item.folderName
- the path to the organizer folder to insert this item. Must start with a "/"
indicating the root of the organizer. (ex. "/managers/orders").java.lang.Exception