|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Toolkit
sun.awt.SunToolkit
org.uispec4j.interception.toolkit.ToolkitDelegate
org.uispec4j.interception.toolkit.UISpecToolkit
public class UISpecToolkit
Mock toolkit used for intercepting displayed frames and dialogs.
You can set it up by calling the setUp() method.
| Field Summary |
|---|
| Fields inherited from class org.uispec4j.interception.toolkit.ToolkitDelegate |
|---|
underlyingToolkit |
| Fields inherited from class sun.awt.SunToolkit |
|---|
lastMetrics, peerMap |
| Fields inherited from class java.awt.Toolkit |
|---|
desktopProperties, desktopPropsSupport |
| Constructor Summary | |
|---|---|
UISpecToolkit()
|
|
| Method Summary | |
|---|---|
java.awt.peer.CanvasPeer |
createCanvas(java.awt.Canvas target)
|
protected java.awt.peer.LightweightPeer |
createComponent(java.awt.Component target)
|
java.awt.peer.DialogPeer |
createDialog(java.awt.Dialog target)
|
java.awt.peer.FramePeer |
createFrame(java.awt.Frame target)
|
java.awt.peer.PanelPeer |
createPanel(java.awt.Panel target)
|
java.awt.peer.RobotPeer |
createRobot(java.awt.Robot robot,
java.awt.GraphicsDevice device)
|
java.awt.peer.WindowPeer |
createWindow(java.awt.Window target)
|
java.awt.im.spi.InputMethodDescriptor |
getInputMethodAdapterDescriptor()
|
protected java.awt.peer.MouseInfoPeer |
getMouseInfoPeer()
|
protected int |
getScreenHeight()
|
protected int |
getScreenWidth()
|
static UISpecToolkit |
instance()
|
static void |
restoreAwtToolkit()
Sets the awt.toolkit to its initial value. |
static void |
setUp()
Deprecated. Do not call this one directly anymore - use UISpec4J.init() instead |
| Methods inherited from class sun.awt.SunToolkit |
|---|
addModalityListener, checkAndSetPolicy, createInputMethodWindow, createKeyboardFocusManagerPeer, createNewAppContext, disableBackgroundErase, enableInputMethodsForTextComponent, executeOnEventHandlerThread, executeOnEventHandlerThread, flushPendingEvents, getDataTransfererClassName, getDefaultKeyboardLocale, getNativeContainer, getStartupLocale, getWindowClosingListener, insertTargetMapping, isLightweightOrUnknown, isModalExcluded, isModalExcludedSupported, isModalExcludedSupportedImpl, isPostEventQueueEmpty, needsXEmbed, needsXEmbedImpl, notifyModalityPopped, notifyModalityPushed, postEvent, removeModalityListener, setDataTransfererClassName, setLWRequestStatus, setModalExcluded, setModalExcludedImpl, setWindowClosingListener, targetCreatedPeer, targetDisposedPeer, targetToAppContext, targetToPeer, windowClosingDelivered, windowClosingNotify |
| Methods inherited from class java.awt.Toolkit |
|---|
getDefaultToolkit, getDesktopProperty, getProperty, getSystemEventQueue, getSystemSelection, initializeDesktopProperties, isDynamicLayoutSet, lazilyLoadDesktopProperty, loadSystemColors, setDesktopProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UISpecToolkit()
| Method Detail |
|---|
public static void setUp()
UISpec4J.init() instead
UISpec4J.init()public static void restoreAwtToolkit()
awt.toolkit to its initial value.
This method will only work properly if the toolkit has not yet been instanciated by Swing.
public static UISpecToolkit instance()
protected java.awt.peer.LightweightPeer createComponent(java.awt.Component target)
createComponent in class java.awt.Toolkitpublic java.awt.peer.FramePeer createFrame(java.awt.Frame target)
createFrame in interface sun.awt.ComponentFactorycreateFrame in class ToolkitDelegate
public java.awt.peer.DialogPeer createDialog(java.awt.Dialog target)
throws java.awt.HeadlessException
createDialog in interface sun.awt.ComponentFactorycreateDialog in class ToolkitDelegatejava.awt.HeadlessException
public java.awt.peer.WindowPeer createWindow(java.awt.Window target)
throws java.awt.HeadlessException
createWindow in interface sun.awt.ComponentFactorycreateWindow in class ToolkitDelegatejava.awt.HeadlessExceptionpublic java.awt.peer.CanvasPeer createCanvas(java.awt.Canvas target)
createCanvas in interface sun.awt.ComponentFactorycreateCanvas in class ToolkitDelegatepublic java.awt.peer.PanelPeer createPanel(java.awt.Panel target)
createPanel in interface sun.awt.ComponentFactorycreatePanel in class ToolkitDelegate
public java.awt.peer.RobotPeer createRobot(java.awt.Robot robot,
java.awt.GraphicsDevice device)
throws java.awt.AWTException,
java.awt.HeadlessException
createRobot in interface sun.awt.ComponentFactorycreateRobot in class sun.awt.SunToolkitjava.awt.AWTException
java.awt.HeadlessExceptionprotected int getScreenWidth()
getScreenWidth in class sun.awt.SunToolkitprotected int getScreenHeight()
getScreenHeight in class sun.awt.SunToolkitprotected java.awt.peer.MouseInfoPeer getMouseInfoPeer()
getMouseInfoPeer in class sun.awt.SunToolkit
public java.awt.im.spi.InputMethodDescriptor getInputMethodAdapterDescriptor()
throws java.awt.AWTException
java.awt.AWTException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||