Java Doc for UISpecToolkit.java in  » Testing » UISpec4J » org » uispec4j » interception » toolkit » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » UISpec4J » org.uispec4j.interception.toolkit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.Toolkit
      org.uispec4j.interception.toolkit.ToolkitDelegate
         org.uispec4j.interception.toolkit.UISpecToolkit

UISpecToolkit
public class UISpecToolkit extends ToolkitDelegate (Code)
Mock toolkit used for intercepting displayed frames and dialogs.

You can set it up by calling the UISpecToolkit.setUp() method.
See Also:    Intercepting windows



Field Summary
final static  StringSYSTEM_PROPERTY
    
final static  StringUNIX_SYSTEM_DEFAULT_VALUE
    
final static  StringWINDOWS_SYSTEM_DEFAULT_VALUE
    

Constructor Summary
public  UISpecToolkit()
    

Method Summary
public  CanvasPeercreateCanvas(Canvas target)
    
protected  LightweightPeercreateComponent(Component target)
    
public  DialogPeercreateDialog(Dialog target)
    
public  FramePeercreateFrame(Frame target)
    
public  PanelPeercreatePanel(Panel target)
    
public  RobotPeercreateRobot(Robot robot, GraphicsDevice device)
    
public  WindowPeercreateWindow(Window target)
    
public static  UISpecToolkitinstance()
    
public static  voidrestoreAwtToolkit()
     Sets the awt.toolkit to its initial value.
public static  voidsetUp()
    

Field Detail
SYSTEM_PROPERTY
final static String SYSTEM_PROPERTY(Code)



UNIX_SYSTEM_DEFAULT_VALUE
final static String UNIX_SYSTEM_DEFAULT_VALUE(Code)



WINDOWS_SYSTEM_DEFAULT_VALUE
final static String WINDOWS_SYSTEM_DEFAULT_VALUE(Code)




Constructor Detail
UISpecToolkit
public UISpecToolkit()(Code)




Method Detail
createCanvas
public CanvasPeer createCanvas(Canvas target)(Code)



createComponent
protected LightweightPeer createComponent(Component target)(Code)



createDialog
public DialogPeer createDialog(Dialog target) throws HeadlessException(Code)



createFrame
public FramePeer createFrame(Frame target)(Code)



createPanel
public PanelPeer createPanel(Panel target)(Code)



createRobot
public RobotPeer createRobot(Robot robot, GraphicsDevice device) throws AWTException, HeadlessException(Code)



createWindow
public WindowPeer createWindow(Window target) throws HeadlessException(Code)



instance
public static UISpecToolkit instance()(Code)



restoreAwtToolkit
public static void restoreAwtToolkit()(Code)
Sets the awt.toolkit to its initial value.

This method will only work properly if the toolkit has not yet been instanciated by Swing.




setUp
public static void setUp()(Code)

See Also:   UISpec4J.initUISpec4J.init



Fields inherited from org.uispec4j.interception.toolkit.ToolkitDelegate
protected static Toolkit underlyingToolkit(Code)(Java Doc)

Methods inherited from org.uispec4j.interception.toolkit.ToolkitDelegate
public void addAWTEventListener(AWTEventListener listener, long eventMask)(Code)(Java Doc)
public void addPropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc)
public void beep()(Code)(Java Doc)
public int checkImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc)
public ButtonPeer createButton(Button target) throws HeadlessException(Code)(Java Doc)
public CanvasPeer createCanvas(Canvas target)(Code)(Java Doc)
public CheckboxPeer createCheckbox(Checkbox target) throws HeadlessException(Code)(Java Doc)
public CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target) throws HeadlessException(Code)(Java Doc)
public ChoicePeer createChoice(Choice target) throws HeadlessException(Code)(Java Doc)
public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) throws IndexOutOfBoundsException, HeadlessException(Code)(Java Doc)
public DialogPeer createDialog(Dialog target) throws HeadlessException(Code)(Java Doc)
public DragGestureRecognizer createDragGestureRecognizer(Class abstractRecognizerClass, DragSource ds, Component cp, int srcActions, DragGestureListener dgl)(Code)(Java Doc)
public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge) throws InvalidDnDOperationException(Code)(Java Doc)
public FileDialogPeer createFileDialog(FileDialog target) throws HeadlessException(Code)(Java Doc)
public FramePeer createFrame(Frame target) throws HeadlessException(Code)(Java Doc)
public Image createImage(byte[] imagedata)(Code)(Java Doc)
public Image createImage(byte[] imagedata, int imageoffset, int imagelength)(Code)(Java Doc)
public Image createImage(ImageProducer producer)(Code)(Java Doc)
public Image createImage(String filename)(Code)(Java Doc)
public Image createImage(URL url)(Code)(Java Doc)
public LabelPeer createLabel(Label target) throws HeadlessException(Code)(Java Doc)
public ListPeer createList(List target) throws HeadlessException(Code)(Java Doc)
public MenuPeer createMenu(Menu target) throws HeadlessException(Code)(Java Doc)
public MenuBarPeer createMenuBar(MenuBar target) throws HeadlessException(Code)(Java Doc)
public MenuItemPeer createMenuItem(MenuItem target) throws HeadlessException(Code)(Java Doc)
public PanelPeer createPanel(Panel target)(Code)(Java Doc)
public PopupMenuPeer createPopupMenu(PopupMenu target) throws HeadlessException(Code)(Java Doc)
public ScrollPanePeer createScrollPane(ScrollPane target) throws HeadlessException(Code)(Java Doc)
public ScrollbarPeer createScrollbar(Scrollbar target) throws HeadlessException(Code)(Java Doc)
public TextAreaPeer createTextArea(TextArea target) throws HeadlessException(Code)(Java Doc)
public TextFieldPeer createTextField(TextField target) throws HeadlessException(Code)(Java Doc)
public WindowPeer createWindow(Window target) throws HeadlessException(Code)(Java Doc)
public AWTEventListener[] getAWTEventListeners()(Code)(Java Doc)
public AWTEventListener[] getAWTEventListeners(long eventMask)(Code)(Java Doc)
public Dimension getBestCursorSize(int preferredWidth, int preferredHeight) throws HeadlessException(Code)(Java Doc)
public ColorModel getColorModel() throws HeadlessException(Code)(Java Doc)
public String[] getFontList()(Code)(Java Doc)
public FontMetrics getFontMetrics(Font font)(Code)(Java Doc)
public FontPeer getFontPeer(String name, int style)(Code)(Java Doc)
public Image getImage(String filename)(Code)(Java Doc)
public Image getImage(URL url)(Code)(Java Doc)
public boolean getLockingKeyState(int keyCode) throws UnsupportedOperationException(Code)(Java Doc)
public int getMaximumCursorColors() throws HeadlessException(Code)(Java Doc)
public int getMenuShortcutKeyMask() throws HeadlessException(Code)(Java Doc)
public PrintJob getPrintJob(Frame frame, String jobtitle, Properties props)(Code)(Java Doc)
public PrintJob getPrintJob(Frame frame, String jobtitle, JobAttributes jobAttributes, PageAttributes pageAttributes)(Code)(Java Doc)
public PropertyChangeListener[] getPropertyChangeListeners()(Code)(Java Doc)
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)(Code)(Java Doc)
public Insets getScreenInsets(GraphicsConfiguration gc) throws HeadlessException(Code)(Java Doc)
public int getScreenResolution() throws HeadlessException(Code)(Java Doc)
public Dimension getScreenSize() throws HeadlessException(Code)(Java Doc)
public Clipboard getSystemClipboard() throws HeadlessException(Code)(Java Doc)
public EventQueue getSystemEventQueueImpl()(Code)(Java Doc)
public Toolkit getUnderlyingToolkit()(Code)(Java Doc)
public boolean isDynamicLayoutActive() throws HeadlessException(Code)(Java Doc)
public boolean isFrameStateSupported(int state) throws HeadlessException(Code)(Java Doc)
public Map mapInputMethodHighlight(InputMethodHighlight highlight) throws HeadlessException(Code)(Java Doc)
public boolean prepareImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc)
public void removeAWTEventListener(AWTEventListener listener)(Code)(Java Doc)
public void removePropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc)
public void setDynamicLayout(boolean dynamic) throws HeadlessException(Code)(Java Doc)
public void setLockingKeyState(int keyCode, boolean on) throws UnsupportedOperationException(Code)(Java Doc)
public void sync()(Code)(Java Doc)

Fields inherited from java.awt.Toolkit
final protected Map<String, Object> desktopProperties(Code)(Java Doc)
final protected PropertyChangeSupport desktopPropsSupport(Code)(Java Doc)

Methods inherited from java.awt.Toolkit
public void addAWTEventListener(AWTEventListener listener, long eventMask)(Code)(Java Doc)
public void addPropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc)
abstract public void beep()(Code)(Java Doc)
abstract public int checkImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc)
abstract protected ButtonPeer createButton(Button target) throws HeadlessException(Code)(Java Doc)
abstract protected CanvasPeer createCanvas(Canvas target)(Code)(Java Doc)
abstract protected CheckboxPeer createCheckbox(Checkbox target) throws HeadlessException(Code)(Java Doc)
abstract protected CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target) throws HeadlessException(Code)(Java Doc)
abstract protected ChoicePeer createChoice(Choice target) throws HeadlessException(Code)(Java Doc)
protected LightweightPeer createComponent(Component target)(Code)(Java Doc)
public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) throws IndexOutOfBoundsException, HeadlessException(Code)(Java Doc)
abstract protected DesktopPeer createDesktopPeer(Desktop target) throws HeadlessException(Code)(Java Doc)
abstract protected DialogPeer createDialog(Dialog target) throws HeadlessException(Code)(Java Doc)
public T createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)(Code)(Java Doc)
abstract public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge) throws InvalidDnDOperationException(Code)(Java Doc)
abstract protected FileDialogPeer createFileDialog(FileDialog target) throws HeadlessException(Code)(Java Doc)
abstract protected FramePeer createFrame(Frame target) throws HeadlessException(Code)(Java Doc)
abstract public Image createImage(String filename)(Code)(Java Doc)
abstract public Image createImage(URL url)(Code)(Java Doc)
abstract public Image createImage(ImageProducer producer)(Code)(Java Doc)
public Image createImage(byte[] imagedata)(Code)(Java Doc)
abstract public Image createImage(byte[] imagedata, int imageoffset, int imagelength)(Code)(Java Doc)
abstract protected LabelPeer createLabel(Label target) throws HeadlessException(Code)(Java Doc)
abstract protected ListPeer createList(java.awt.List target) throws HeadlessException(Code)(Java Doc)
abstract protected MenuPeer createMenu(Menu target) throws HeadlessException(Code)(Java Doc)
abstract protected MenuBarPeer createMenuBar(MenuBar target) throws HeadlessException(Code)(Java Doc)
abstract protected MenuItemPeer createMenuItem(MenuItem target) throws HeadlessException(Code)(Java Doc)
abstract protected PanelPeer createPanel(Panel target)(Code)(Java Doc)
abstract protected PopupMenuPeer createPopupMenu(PopupMenu target) throws HeadlessException(Code)(Java Doc)
abstract protected ScrollPanePeer createScrollPane(ScrollPane target) throws HeadlessException(Code)(Java Doc)
abstract protected ScrollbarPeer createScrollbar(Scrollbar target) throws HeadlessException(Code)(Java Doc)
abstract protected TextAreaPeer createTextArea(TextArea target) throws HeadlessException(Code)(Java Doc)
abstract protected TextFieldPeer createTextField(TextField target) throws HeadlessException(Code)(Java Doc)
abstract protected WindowPeer createWindow(Window target) throws HeadlessException(Code)(Java Doc)
public AWTEventListener[] getAWTEventListeners()(Code)(Java Doc)
public AWTEventListener[] getAWTEventListeners(long eventMask)(Code)(Java Doc)
public Dimension getBestCursorSize(int preferredWidth, int preferredHeight) throws HeadlessException(Code)(Java Doc)
abstract public ColorModel getColorModel() throws HeadlessException(Code)(Java Doc)
public static synchronized Toolkit getDefaultToolkit()(Code)(Java Doc)
final public synchronized Object getDesktopProperty(String propertyName)(Code)(Java Doc)
abstract public String[] getFontList()(Code)(Java Doc)
abstract public FontMetrics getFontMetrics(Font font)(Code)(Java Doc)
abstract protected FontPeer getFontPeer(String name, int style)(Code)(Java Doc)
abstract public Image getImage(String filename)(Code)(Java Doc)
abstract public Image getImage(URL url)(Code)(Java Doc)
public boolean getLockingKeyState(int keyCode) throws UnsupportedOperationException(Code)(Java Doc)
public int getMaximumCursorColors() throws HeadlessException(Code)(Java Doc)
public int getMenuShortcutKeyMask() throws HeadlessException(Code)(Java Doc)
protected MouseInfoPeer getMouseInfoPeer()(Code)(Java Doc)
protected static Container getNativeContainer(Component c)(Code)(Java Doc)
abstract public PrintJob getPrintJob(Frame frame, String jobtitle, Properties props)(Code)(Java Doc)
public PrintJob getPrintJob(Frame frame, String jobtitle, JobAttributes jobAttributes, PageAttributes pageAttributes)(Code)(Java Doc)
public static String getProperty(String key, String defaultValue)(Code)(Java Doc)
public PropertyChangeListener[] getPropertyChangeListeners()(Code)(Java Doc)
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)(Code)(Java Doc)
public Insets getScreenInsets(GraphicsConfiguration gc) throws HeadlessException(Code)(Java Doc)
abstract public int getScreenResolution() throws HeadlessException(Code)(Java Doc)
abstract public Dimension getScreenSize() throws HeadlessException(Code)(Java Doc)
abstract public Clipboard getSystemClipboard() throws HeadlessException(Code)(Java Doc)
final public EventQueue getSystemEventQueue()(Code)(Java Doc)
abstract protected EventQueue getSystemEventQueueImpl()(Code)(Java Doc)
public Clipboard getSystemSelection() throws HeadlessException(Code)(Java Doc)
protected void initializeDesktopProperties()(Code)(Java Doc)
public boolean isAlwaysOnTopSupported()(Code)(Java Doc)
public boolean isDynamicLayoutActive() throws HeadlessException(Code)(Java Doc)
protected boolean isDynamicLayoutSet() throws HeadlessException(Code)(Java Doc)
public boolean isFrameStateSupported(int state) throws HeadlessException(Code)(Java Doc)
abstract public boolean isModalExclusionTypeSupported(Dialog.ModalExclusionType modalExclusionType)(Code)(Java Doc)
abstract public boolean isModalityTypeSupported(Dialog.ModalityType modalityType)(Code)(Java Doc)
protected Object lazilyLoadDesktopProperty(String name)(Code)(Java Doc)
protected void loadSystemColors(int[] systemColors) throws HeadlessException(Code)(Java Doc)
abstract public Map<java.awt.font.TextAttribute, ?> mapInputMethodHighlight(InputMethodHighlight highlight) throws HeadlessException(Code)(Java Doc)
abstract public boolean prepareImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc)
public void removeAWTEventListener(AWTEventListener listener)(Code)(Java Doc)
public void removePropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc)
final protected void setDesktopProperty(String name, Object newValue)(Code)(Java Doc)
public void setDynamicLayout(boolean dynamic) throws HeadlessException(Code)(Java Doc)
public void setLockingKeyState(int keyCode, boolean on) throws UnsupportedOperationException(Code)(Java Doc)
abstract public void sync()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.