wt.clients.util
Class FrameLocator

java.lang.Object
  extended bywt.clients.util.FrameLocator

public class FrameLocator
extends Object

Class FrameLocator is a utility which sets the location of the parameter window to cascade down the desktop.

     	 FrameLocator.getFrameLocator(this).setLocation(this);
  


Supported API: true

Extendable: false


Field Summary
private static Object FRAME_LOCATOR_KEY
           
private  int maxScreenX
           
private  int maxScreenY
           
private  int nextX
           
private  int nextY
           
 
Constructor Summary
private FrameLocator()
           
 
Method Summary
static FrameLocator getFrameLocator(Component component)
          Get FrameLocator for the current component/thread.
 void setLocation(Frame frame)
          Set location of a frame.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

maxScreenX

private int maxScreenX

maxScreenY

private int maxScreenY

nextX

private int nextX

nextY

private int nextY

FRAME_LOCATOR_KEY

private static Object FRAME_LOCATOR_KEY
Constructor Detail

FrameLocator

private FrameLocator()
Method Detail

getFrameLocator

public static FrameLocator getFrameLocator(Component component)
Get FrameLocator for the current component/thread. If the component is null, or no parent applet with an initialized WTContext is found, the WTContext for the current thread group is used to find the applicable FrameLocator object.

Parameters:
component - Component object used to find WTContext

setLocation

public void setLocation(Frame frame)
Set location of a frame.

Parameters:
frame - the Frame object to position

toString

public String toString()