Main Page | Alphabetical List | Class List | File List | Class Members

JWPFrameSS Class Reference

List of all members.

Package Functions

 JWPFrameSS (String s, String d, String c, String b, String f, String w, String h, boolean app)

Detailed Description

The frame class (not used if the applet is embeded in a viewer).

We want to show in fullscreen mode, however, it is not possible in Java 1.4. Thus we show a maximized frame.

Definition at line 194 of file JWebPresenterSS.java.


Constructor & Destructor Documentation

JWPFrameSS.JWPFrameSS String  s,
String  d,
String  c,
String  b,
String  f,
String  w,
String  h,
boolean  app
[package]
 

Constructor.

Parameters:
s String for slideURL.
d String for debugMode.
c String for ctlURL.
b String for baseURL.
f String for fetchTime.
w String for width.
h String for height.
app true for application, false for applet.

Definition at line 206 of file JWebPresenterSS.java.

00206                                                                                                   {
00207         setDefaultCloseOperation(app?DISPOSE_ON_CLOSE:EXIT_ON_CLOSE);
00208 
00209         int width  = 0;
00210         try {
00211             width = Integer.parseInt(w);
00212         }
00213         catch (NumberFormatException e) {
00214             width = 0;
00215         }
00216 
00217         int height = 0;
00218         try {
00219             height = Integer.parseInt(h);
00220         }
00221         catch (NumberFormatException e) {
00222             height = 0;
00223         }
00224 
00225         Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
00226         if (width < 1 || width > screen.width) width = screen.width;
00227         if (height < 1 || height > screen.height) height = screen.height;
00228         setSize(width, height);
00229 
00230         // Set the window be undecoreated for full screen mode -- require JRE 1.4+.
00231         if (width == screen.width && height == screen.height) setUndecorated(true);
00232 
00233         getContentPane().add(new JWPPanelSS(this, s, d, c, b, f, app));
00234    }


The documentation for this class was generated from the following file:
Generated on Sun Jan 23 16:25:29 2005 for JWebPresenter by  doxygen 1.3.9.1