Class QbOrganizer
java.lang.Object
quadbase.reportorganizer.organizerAPI.QbOrganizer
-
Constructor Summary
ConstructorsConstructorDescriptionQbOrganizer(Object object, String userName, String password) Connect to server and get organizer handle -
Method Summary
Modifier and TypeMethodDescriptionstatic LookAndFeellaunch the report designer.Returns a handle to properties of the scheduler.static Stringreturn servlet contextvoidInserts an item into the organizer.voidlogout()Logout from OrganizervoidremoveItem(String name, String folderName) Removes an item from the organizer.voidsetChartDesignerHandle(IChartHandle chtHandle) modify chart designer by implementing IChartHandle interfacestatic final voidsetDebugMode(int mode) set debug mode to display debug statementstatic final voidsetDebugMode(String mode) set debug mode to display debug statementstatic voidsetLookAndFeel(LookAndFeel newLookAndFeel) Sets the look and feel of the designer UI.voidsetReportDesignerHandle(IReportHandle rptHandle) modify report designer by implementing IReportHandle interfacestatic voidsetServletContext(String context) set servlet contextstatic voidsetServletRunner(String comm_url) Set servlet runner hostname and port number Note: this static method MUST be called before any connection
-
Constructor Details
-
QbOrganizer
Connect to server and get organizer handle- Parameters:
object- can be null, applet or frameuserName- login user namepassword- login user password- Throws:
Exception
-
-
Method Details
-
logout
Logout from Organizer- Throws:
Exception
-
getOrganizerUI
launch the report designer. Use this method after calling setVisible(true) to get a reference to the designer JFrame object. -
setChartDesignerHandle
modify chart designer by implementing IChartHandle interface -
setReportDesignerHandle
modify report designer by implementing IReportHandle interface -
setDebugMode
set debug mode to display debug statement -
setDebugMode
public static final void setDebugMode(int mode) set debug mode to display debug statement -
setLookAndFeel
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 -
getLookAndFeel
-
setServletRunner
Set servlet runner hostname and port number Note: this static method MUST be called before any connection- Parameters:
comm_url- servlet runner hostname and port number
-
setServletContext
set servlet context -
getServletContext
return servlet context -
getScheduler
Returns a handle to properties of the scheduler. -
insertNewItem
public void insertNewItem(String name, String description, String location, String url, String folderName) throws Exception Inserts an item into the organizer.- Parameters:
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").- Throws:
Exception
-
removeItem
Removes an item from the organizer.- Parameters:
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").- Throws:
Exception
-