com.quadrique.jbuildingblocks.gui
Class CursorFactory

java.lang.Object
  extended by com.quadrique.jbuildingblocks.gui.CursorFactory

public class CursorFactory
extends Object

This class provides CursorFactory support for any component in the application. The CursorFactory instances are created upon instantiation and are cached to optimize performances

Author:
Hervé Rivere

Constructor Summary
CursorFactory()
          Constructor
 
Method Summary
static CursorFactory getInstance()
          This method returns the instance of the Cursor class.
 void setCursorToWait(Component zComponent, boolean zSetToWait)
          To change the cursor of a component
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CursorFactory

public CursorFactory()
Constructor

Method Detail

getInstance

public static final CursorFactory getInstance()
This method returns the instance of the Cursor class. If there has been already one instantiation, the same instance is returned so that it can be shared accross the application. A typical would be: CursorFactory.getInstance().getXxxx() or CursorFactory lCursor = CursorFactory.getInstance();

Returns:
the CursorFactory class instance

setCursorToWait

public void setCursorToWait(Component zComponent,
                            boolean zSetToWait)
To change the cursor of a component

Parameters:
zComponent - the component whose cursor has to be changed
zSetToWait - true to set the cursor to the WAIT_CURSOR, false to set it back to the default


Copyright © 2001-2009 Quadrique Corporation. All Rights Reserved.