com.adventnet.snmp.ui
Class Utils

java.lang.Object
  |
  +--com.adventnet.snmp.ui.Utils

class Utils
extends java.lang.Object


Field Summary
(package private) static java.applet.Applet applet
           
static boolean debug
          Use this to set debug output
(package private) static java.awt.Point screenCenter
           
 
Constructor Summary
(package private) Utils()
           
 
Method Summary
static void centerWindow(java.awt.Component win)
           
static void debug(java.lang.String s)
           
static void err(javax.swing.JFrame frame, java.lang.String s)
           
static void err(java.lang.String s)
           
static void err(java.lang.String s, java.lang.Throwable ex)
           
static void err(java.lang.Throwable ex)
           
(package private) static void fixSize(javax.swing.JComponent c, int w, int h)
          Convenience method to fix the size of a component
static void init(java.applet.Applet app)
           
static void logErrorMessage(java.lang.String error)
           
static void logInfoMessage(java.lang.String info)
           
(package private) static javax.swing.JComponent minSize(javax.swing.JComponent c, int w, int h)
          Convenience method to set the min size of a component
(package private) static void openHelp(java.lang.String doc, java.applet.Applet applet)
          Open help window
static void out(java.lang.String s)
           
(package private) static javax.swing.JComponent prefSize(javax.swing.JComponent c, int w, int h)
          Convenience method to set the Preferred size of a component
static void setScreenSize(java.awt.Dimension screenSize)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applet

static java.applet.Applet applet

debug

public static boolean debug
Use this to set debug output

screenCenter

static java.awt.Point screenCenter
Constructor Detail

Utils

Utils()
Method Detail

init

public static void init(java.applet.Applet app)

fixSize

static void fixSize(javax.swing.JComponent c,
                    int w,
                    int h)
Convenience method to fix the size of a component

minSize

static javax.swing.JComponent minSize(javax.swing.JComponent c,
                                      int w,
                                      int h)
Convenience method to set the min size of a component

prefSize

static javax.swing.JComponent prefSize(javax.swing.JComponent c,
                                       int w,
                                       int h)
Convenience method to set the Preferred size of a component

err

public static void err(java.lang.String s)

err

public static void err(javax.swing.JFrame frame,
                       java.lang.String s)

err

public static void err(java.lang.Throwable ex)

err

public static void err(java.lang.String s,
                       java.lang.Throwable ex)

out

public static void out(java.lang.String s)

debug

public static void debug(java.lang.String s)

setScreenSize

public static void setScreenSize(java.awt.Dimension screenSize)

centerWindow

public static void centerWindow(java.awt.Component win)

openHelp

static void openHelp(java.lang.String doc,
                     java.applet.Applet applet)
Open help window

logErrorMessage

public static void logErrorMessage(java.lang.String error)

logInfoMessage

public static void logInfoMessage(java.lang.String info)