edu.washington.cs.supple.wlib.awt
Class AwtUtils

java.lang.Object
  extended byedu.washington.cs.supple.wlib.awt.AwtUtils

public class AwtUtils
extends java.lang.Object

Author:
Jing Jing Long

Constructor Summary
AwtUtils()
           
 
Method Summary
static java.awt.Label createLabel(java.io.Serializable label)
           
static java.awt.Component getAwtComponentWithContextMenu(AwtWidget w, int hints)
          Connects an awt widget to mouse listeners and transfer handlers, so that customization commands can be performed
static java.awt.Component getAwtComponentWithContextMenu(java.awt.Component c, AwtWidget w)
          Connects a awt widget to mouse listeners so that customization commands can be performed
static java.lang.String getTypicalString(int length)
          Produces a "typical" string of a given length
static java.util.Vector getTypicalStringList(int length, int number)
          Produces an array of "typical" strings of a given length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AwtUtils

public AwtUtils()
Method Detail

createLabel

public static java.awt.Label createLabel(java.io.Serializable label)

getTypicalString

public static java.lang.String getTypicalString(int length)
Produces a "typical" string of a given length

Parameters:
length - the lenght for the string
Returns:
the "typical" string of a given length

getTypicalStringList

public static java.util.Vector getTypicalStringList(int length,
                                                    int number)
Produces an array of "typical" strings of a given length

Parameters:
length - the lenght for the string
number - How many strings should be returned in the collection
Returns:
the "typical" string of a given length

getAwtComponentWithContextMenu

public static java.awt.Component getAwtComponentWithContextMenu(AwtWidget w,
                                                                int hints)
Connects an awt widget to mouse listeners and transfer handlers, so that customization commands can be performed

Parameters:
w -

getAwtComponentWithContextMenu

public static java.awt.Component getAwtComponentWithContextMenu(java.awt.Component c,
                                                                AwtWidget w)
Connects a awt widget to mouse listeners so that customization commands can be performed

Parameters:
w -