wt.clients.beans.explorer
Class WT

java.lang.Object
  extended bywt.clients.beans.explorer.WT

public class WT
extends Object

Windchill Technologies Client Utility Class (WT)

This is a convenience class for providing static access for:

print
Printing to Standard Out
isA
Is this class a sub-class of this
getIcon & loadImage & getImageURL
load an ImageIcon from the Images subdirectory or path
get--Color & set--Color
Manage the standard foreground, background and selected colors. Define symbolic names for various colors.
get--Font & set--Font
Manage the standard normal, title and selected fonts
Printing to Standard Out


Supported API: false

Extendable: false


Field Summary
static Color ArmyGreen
          Colors defined for convenience
static Color Beige
           
static Color Black
           
static Color Cream
           
static Color Grey
           
static Color Lavender
           
static Color LightArmyGreen
           
static Color LightBeige
           
static Color LightBlue
           
static Color Mustard
           
private static Applet myApplet
           
private static Color myBG
           
private static WTContext myContext
           
private static Color myFG
           
private static Font myNF
           
private static Font mySF
           
private static Color mySL
           
private static Font myTF
           
private static WT myWT
           
static Color NavyBlue
           
static Color Peach
           
static Color Purple
           
static Color SkyBlue
           
static Color SteelBlue
           
static Color Taupe
           
static Color White
           
static Color WindchillBG
           
static Color WindchillFG
           
 
Constructor Summary
WT()
          Constructs a WT object
 
Method Summary
static Applet getApplet()
          Gets the applet for the class
static Color getBGColor()
          Gets the default background color to use
static WTContext getContext()
          Gets the WTContext for the class
static Color getFGColor()
          Gets the default foreground color to use
static Image getIcon(String aName)
          Gets a Image for the specified .gif file.
static URL getImageURL(String aName)
          Gets a URL for the specified .gif file.
static Font getNormalFont()
          Gets the default normal font to use
static Font getSelectedFont()
          Gets the default selected font to use
static Color getSLColor()
          Gets the default selected color to use
static Font getTitleFont()
          Gets the default title font to use
static void Initialize(Applet aApplet)
          Initializes the class with the specified applet
static boolean isA(Object aObj, String aClassName)
          Tests an object to see if it is a specified class.
static Image loadImage(String aName)
          Gets a Image for the specified .gif file.
static void print(String aValue)
          Prints a string to system console
static void print(String aPad, String aValue)
          Prints a string to system console with the specified padding
static void setApplet(Applet aApplet)
          Sets the applet for the class
static void setBGColor(Color aColor)
          Sets the default background color
static void setContext(WTContext context)
          Sets the WTContext for the class
static void setFGColor(Color aColor)
          Sets the default foreground color
static void setNormalFont(Font aFont)
          Sets the default normal font to use
static void setSelectedFont(Font aFont)
          Sets the default selected font to use
static void setSLColor(Color aColor)
          Sets the default selected color to use
static void setTitleFont(Font aFont)
          Sets the default title font to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myWT

private static WT myWT

myApplet

private static Applet myApplet

myContext

private static WTContext myContext

ArmyGreen

public static Color ArmyGreen
Colors defined for convenience


Beige

public static Color Beige

Black

public static Color Black

Cream

public static Color Cream

Grey

public static Color Grey

Lavender

public static Color Lavender

LightArmyGreen

public static Color LightArmyGreen

LightBeige

public static Color LightBeige

LightBlue

public static Color LightBlue

Mustard

public static Color Mustard

NavyBlue

public static Color NavyBlue

Peach

public static Color Peach

Purple

public static Color Purple

SkyBlue

public static Color SkyBlue

SteelBlue

public static Color SteelBlue

Taupe

public static Color Taupe

White

public static Color White

WindchillBG

public static Color WindchillBG

WindchillFG

public static Color WindchillFG

myBG

private static Color myBG

myFG

private static Color myFG

mySL

private static Color mySL

myNF

private static Font myNF

mySF

private static Font mySF

myTF

private static Font myTF
Constructor Detail

WT

public WT()
Constructs a WT object

Method Detail

Initialize

public static void Initialize(Applet aApplet)
Initializes the class with the specified applet

Parameters:
aApplet - the applet to initialize the class with

setApplet

public static void setApplet(Applet aApplet)
Sets the applet for the class

Parameters:
aApplet - the applet to initialize the class with

getApplet

public static Applet getApplet()
Gets the applet for the class

Returns:
the current applet

setContext

public static void setContext(WTContext context)
Sets the WTContext for the class

Parameters:
context - the WTContext

getContext

public static WTContext getContext()
Gets the WTContext for the class

Returns:
the current WTContext

setBGColor

public static void setBGColor(Color aColor)
Sets the default background color

Parameters:
aColor - the new default background color

getBGColor

public static Color getBGColor()
Gets the default background color to use

Returns:
the default background color

setFGColor

public static void setFGColor(Color aColor)
Sets the default foreground color

Parameters:
aColor - the new default foreground color

getFGColor

public static Color getFGColor()
Gets the default foreground color to use

Returns:
the default foreground color

setSLColor

public static void setSLColor(Color aColor)
Sets the default selected color to use


getSLColor

public static Color getSLColor()
Gets the default selected color to use

Returns:
the default selected color

setNormalFont

public static void setNormalFont(Font aFont)
Sets the default normal font to use

Parameters:
aFont - the default normal font

getNormalFont

public static Font getNormalFont()
Gets the default normal font to use

Returns:
the default normal font

setSelectedFont

public static void setSelectedFont(Font aFont)
Sets the default selected font to use

Parameters:
aFont - the selected title font

getSelectedFont

public static Font getSelectedFont()
Gets the default selected font to use

Returns:
the default selected title font

setTitleFont

public static void setTitleFont(Font aFont)
Sets the default title font to use

Parameters:
aFont - the default title font

getTitleFont

public static Font getTitleFont()
Gets the default title font to use

Returns:
the default title font

isA

public static boolean isA(Object aObj,
                          String aClassName)
Tests an object to see if it is a specified class.

Parameters:
aObj - the object to test
aClassName - the name of the class to test with
Returns:
true if the object is a member of the specified class

getIcon

public static Image getIcon(String aName)
Gets a Image for the specified .gif file. The file is assumed to reside in the wt.clients.images package. The name parameter should not include the .gif suffix.

Parameters:
aName - the name of the gif

loadImage

public static Image loadImage(String aName)
Gets a Image for the specified .gif file. The name parameter should be fully qualified and include the .gif suffix.

Parameters:
aName - the name of the gif

getImageURL

public static URL getImageURL(String aName)
Gets a URL for the specified .gif file. The file is assumed to reside in the wt.clients.images package. The name parameter should not include the .gif suffix.

Parameters:
aName - the name of the gif

print

public static void print(String aValue)
Prints a string to system console

Parameters:
aValue - the string to print

print

public static void print(String aPad,
                         String aValue)
Prints a string to system console with the specified padding

Parameters:
aValue - the string to print
aPad - the padding