Java Doc for PeerBasedToolkit.java in  » 6.0-JDK-Modules » j2me » sun » awt » 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 » 6.0 JDK Modules » j2me » sun.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.Toolkit
      sun.awt.SunToolkit
         sun.awt.PeerBasedToolkit

All known Subclasses:   sun.awt.gtk.GToolkit,  sun.awt.qt.QtToolkit,  sun.awt.pocketpc.PPCToolkit,
PeerBasedToolkit
abstract public class PeerBasedToolkit extends SunToolkit (Code)
The base class for any toolkits whose implementation is peer based. Peers represent the native component for an AWT component and are created only when needed. The AWT implementation provided in the java.awt package assumes the toolkit to be peer based. To use a toolkit with this AWT implementation it is necessary for the toolkit class to be a subclass of this class. If this is not the case then a ClassCastException will be thrown at run time by the AWT implementation. There is no requirement, however, that AWT be implemented using peers. To provide a peerless implementation of AWT it will be necessary to write a new implementation of the java.awt classes.
author:
   Nicholas Allen


Field Summary
final protected static  HashtablepeerMap
    


Method Summary
abstract public  ButtonPeercreateButton(Button target)
     Creates this toolkit's implementation of Button using the specified peer interface.
Parameters:
  target - the button to be implemented.
abstract public  CanvasPeercreateCanvas(Canvas target)
     Creates this toolkit's implementation of Canvas using the specified peer interface.
Parameters:
  target - the canvas to be implemented.
abstract public  CheckboxPeercreateCheckbox(Checkbox target)
     Creates this toolkit's implementation of Checkbox using the specified peer interface.
Parameters:
  target - the check box to be implemented.
abstract public  CheckboxMenuItemPeercreateCheckboxMenuItem(CheckboxMenuItem target)
     Creates this toolkit's implementation of CheckboxMenuItem using the specified peer interface.
Parameters:
  target - the checkbox menu item to be implemented.
abstract public  ChoicePeercreateChoice(Choice target)
     Creates this toolkit's implementation of Choice using the specified peer interface.
Parameters:
  target - the choice to be implemented.
public  sun.awt.peer.LightweightPeercreateComponent(Component target)
     Creates a peer for a component or container.
abstract public  DialogPeercreateDialog(Dialog target)
     Creates this toolkit's implementation of Dialog using the specified peer interface.
Parameters:
  target - the dialog to be implemented.
abstract public  FileDialogPeercreateFileDialog(FileDialog target)
     Creates this toolkit's implementation of FileDialog using the specified peer interface.
Parameters:
  target - the file dialog to be implemented.
abstract public  FramePeercreateFrame(Frame target)
     Creates this toolkit's implementation of Frame using the specified peer interface.
Parameters:
  target - the frame to be implemented.
abstract public  LabelPeercreateLabel(Label target)
     Creates this toolkit's implementation of Label using the specified peer interface.
Parameters:
  target - the label to be implemented.
abstract public  ListPeercreateList(List target)
     Creates this toolkit's implementation of List using the specified peer interface.
Parameters:
  target - the list to be implemented.
abstract public  MenuPeercreateMenu(Menu target)
     Creates this toolkit's implementation of Menu using the specified peer interface.
Parameters:
  target - the menu to be implemented.
abstract public  MenuBarPeercreateMenuBar(MenuBar target)
     Creates this toolkit's implementation of MenuBar using the specified peer interface.
Parameters:
  target - the menu bar to be implemented.
abstract public  MenuItemPeercreateMenuItem(MenuItem target)
     Creates this toolkit's implementation of MenuItem using the specified peer interface.
Parameters:
  target - the menu item to be implemented.
abstract public  PanelPeercreatePanel(Panel target)
     Creates this toolkit's implementation of Panel using the specified peer interface.
Parameters:
  target - the panel to be implemented.
abstract public  PopupMenuPeercreatePopupMenu(PopupMenu target)
     Creates this toolkit's implementation of PopupMenu using the specified peer interface.
Parameters:
  target - the popup menu to be implemented.
abstract public  ScrollPanePeercreateScrollPane(ScrollPane target)
     Creates this toolkit's implementation of ScrollPane using the specified peer interface.
Parameters:
  target - the scroll pane to be implemented.
abstract public  ScrollbarPeercreateScrollbar(Scrollbar target)
     Creates this toolkit's implementation of Scrollbar using the specified peer interface.
Parameters:
  target - the scroll bar to be implemented.
abstract public  TextAreaPeercreateTextArea(TextArea target)
     Creates this toolkit's implementation of TextArea using the specified peer interface.
Parameters:
  target - the text area to be implemented.
abstract public  TextFieldPeercreateTextField(TextField target)
     Creates this toolkit's implementation of TextField using the specified peer interface.
Parameters:
  target - the text field to be implemented.
abstract public  WindowPeercreateWindow(Window target)
     Creates this toolkit's implementation of Window using the specified peer interface.
Parameters:
  target - the window to be implemented.
native public static  ComponentPeergetComponentPeer(Component c)
     Gets the peer for the supplied component.
public  String[]getFontList()
     Returns the names of the available fonts in this toolkit.

For 1.1, the following font names are deprecated (the replacement name follows):

  • TimesRoman (use Serif)
  • Helvetica (use SansSerif)
  • Courier (use Monospaced)

The ZapfDingbats font is also deprecated in 1.1, but only as a separate fontname.

abstract public  FontPeergetFontPeer(Font target)
     Creates this toolkit's implementation of Font using the specified peer interface.
Parameters:
  target - the font to be implemented.
native public static  MenuComponentPeergetMenuComponentPeer(MenuComponent m)
     Gets the peer for the supplied menu component.
public static  ContainergetNativeContainer(Component c)
     Give native peers the ability to query the native container given a native component (eg the direct parent may be lightweight).
protected static  voidtargetDisposedPeer(Object target, Object peer)
    
protected static  ObjecttargetToPeer(Object target)
    

Field Detail
peerMap
final protected static Hashtable peerMap(Code)





Method Detail
createButton
abstract public ButtonPeer createButton(Button target)(Code)
Creates this toolkit's implementation of Button using the specified peer interface.
Parameters:
  target - the button to be implemented. this toolkit's implementation of Button.
See Also:   java.awt.Button
See Also:   sun.awt.peer.ButtonPeer
since:
   JDK1.0



createCanvas
abstract public CanvasPeer createCanvas(Canvas target)(Code)
Creates this toolkit's implementation of Canvas using the specified peer interface.
Parameters:
  target - the canvas to be implemented. this toolkit's implementation of Canvas.
See Also:   java.awt.Canvas
See Also:   sun.awt.peer.CanvasPeer
since:
   JDK1.0



createCheckbox
abstract public CheckboxPeer createCheckbox(Checkbox target)(Code)
Creates this toolkit's implementation of Checkbox using the specified peer interface.
Parameters:
  target - the check box to be implemented. this toolkit's implementation of Checkbox.
See Also:   java.awt.Checkbox
See Also:   sun.awt.peer.CheckboxPeer
since:
   JDK1.0



createCheckboxMenuItem
abstract public CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target)(Code)
Creates this toolkit's implementation of CheckboxMenuItem using the specified peer interface.
Parameters:
  target - the checkbox menu item to be implemented. this toolkit's implementation of CheckboxMenuItem.
See Also:   java.awt.CheckboxMenuItem
See Also:   sun.awt.peer.CheckboxMenuItemPeer
since:
   JDK1.0



createChoice
abstract public ChoicePeer createChoice(Choice target)(Code)
Creates this toolkit's implementation of Choice using the specified peer interface.
Parameters:
  target - the choice to be implemented. this toolkit's implementation of Choice.
See Also:   java.awt.Choice
See Also:   sun.awt.peer.ChoicePeer
since:
   JDK1.0



createComponent
public sun.awt.peer.LightweightPeer createComponent(Component target)(Code)
Creates a peer for a component or container. This peer is windowless and allows the Component and Container classes to be extended directly to create windowless components that are defined entirely in java.
Parameters:
  target - The Component to be created.



createDialog
abstract public DialogPeer createDialog(Dialog target)(Code)
Creates this toolkit's implementation of Dialog using the specified peer interface.
Parameters:
  target - the dialog to be implemented. this toolkit's implementation of Dialog.
See Also:   java.awt.Dialog
See Also:   sun.awt.peer.DialogPeer
since:
   JDK1.0



createFileDialog
abstract public FileDialogPeer createFileDialog(FileDialog target)(Code)
Creates this toolkit's implementation of FileDialog using the specified peer interface.
Parameters:
  target - the file dialog to be implemented. this toolkit's implementation of FileDialog.
See Also:   java.awt.FileDialog
See Also:   sun.awt.peer.FileDialogPeer
since:
   JDK1.0



createFrame
abstract public FramePeer createFrame(Frame target)(Code)
Creates this toolkit's implementation of Frame using the specified peer interface.
Parameters:
  target - the frame to be implemented. this toolkit's implementation of Frame.
See Also:   java.awt.Frame
See Also:   sun.awt.peer.FramePeer
since:
   JDK1.0



createLabel
abstract public LabelPeer createLabel(Label target)(Code)
Creates this toolkit's implementation of Label using the specified peer interface.
Parameters:
  target - the label to be implemented. this toolkit's implementation of Label.
See Also:   java.awt.Label
See Also:   sun.awt.peer.LabelPeer
since:
   JDK1.0



createList
abstract public ListPeer createList(List target)(Code)
Creates this toolkit's implementation of List using the specified peer interface.
Parameters:
  target - the list to be implemented. this toolkit's implementation of List.
See Also:   java.awt.List
See Also:   sun.awt.peer.ListPeer
since:
   JDK1.0



createMenu
abstract public MenuPeer createMenu(Menu target)(Code)
Creates this toolkit's implementation of Menu using the specified peer interface.
Parameters:
  target - the menu to be implemented. this toolkit's implementation of Menu.
See Also:   java.awt.Menu
See Also:   sun.awt.peer.MenuPeer
since:
   JDK1.0



createMenuBar
abstract public MenuBarPeer createMenuBar(MenuBar target)(Code)
Creates this toolkit's implementation of MenuBar using the specified peer interface.
Parameters:
  target - the menu bar to be implemented. this toolkit's implementation of MenuBar.
See Also:   java.awt.MenuBar
See Also:   sun.awt.peer.MenuBarPeer
since:
   JDK1.0



createMenuItem
abstract public MenuItemPeer createMenuItem(MenuItem target)(Code)
Creates this toolkit's implementation of MenuItem using the specified peer interface.
Parameters:
  target - the menu item to be implemented. this toolkit's implementation of MenuItem.
See Also:   java.awt.MenuItem
See Also:   sun.awt.peer.MenuItemPeer
since:
   JDK1.0



createPanel
abstract public PanelPeer createPanel(Panel target)(Code)
Creates this toolkit's implementation of Panel using the specified peer interface.
Parameters:
  target - the panel to be implemented. this toolkit's implementation of Panel.
See Also:   java.awt.Panel
See Also:   sun.awt.peer.PanelPeer
since:
   JDK1.0



createPopupMenu
abstract public PopupMenuPeer createPopupMenu(PopupMenu target)(Code)
Creates this toolkit's implementation of PopupMenu using the specified peer interface.
Parameters:
  target - the popup menu to be implemented. this toolkit's implementation of PopupMenu.
See Also:   java.awt.PopupMenu
See Also:   sun.awt.peer.PopupMenuPeer
since:
   JDK1.1



createScrollPane
abstract public ScrollPanePeer createScrollPane(ScrollPane target)(Code)
Creates this toolkit's implementation of ScrollPane using the specified peer interface.
Parameters:
  target - the scroll pane to be implemented. this toolkit's implementation of ScrollPane.
See Also:   java.awt.ScrollPane
See Also:   sun.awt.peer.ScrollPanePeer
since:
   JDK1.1



createScrollbar
abstract public ScrollbarPeer createScrollbar(Scrollbar target)(Code)
Creates this toolkit's implementation of Scrollbar using the specified peer interface.
Parameters:
  target - the scroll bar to be implemented. this toolkit's implementation of Scrollbar.
See Also:   java.awt.Scrollbar
See Also:   sun.awt.peer.ScrollbarPeer
since:
   JDK1.0



createTextArea
abstract public TextAreaPeer createTextArea(TextArea target)(Code)
Creates this toolkit's implementation of TextArea using the specified peer interface.
Parameters:
  target - the text area to be implemented. this toolkit's implementation of TextArea.
See Also:   java.awt.TextArea
See Also:   sun.awt.peer.TextAreaPeer
since:
   JDK1.0



createTextField
abstract public TextFieldPeer createTextField(TextField target)(Code)
Creates this toolkit's implementation of TextField using the specified peer interface.
Parameters:
  target - the text field to be implemented. this toolkit's implementation of TextField.
See Also:   java.awt.TextField
See Also:   sun.awt.peer.TextFieldPeer
since:
   JDK1.0



createWindow
abstract public WindowPeer createWindow(Window target)(Code)
Creates this toolkit's implementation of Window using the specified peer interface.
Parameters:
  target - the window to be implemented. this toolkit's implementation of Window.
See Also:   java.awt.Window
See Also:   sun.awt.peer.WindowPeer
since:
   JDK1.0



getComponentPeer
native public static ComponentPeer getComponentPeer(Component c)(Code)
Gets the peer for the supplied component.



getFontList
public String[] getFontList()(Code)
Returns the names of the available fonts in this toolkit.

For 1.1, the following font names are deprecated (the replacement name follows):

  • TimesRoman (use Serif)
  • Helvetica (use SansSerif)
  • Courier (use Monospaced)

The ZapfDingbats font is also deprecated in 1.1, but only as a separate fontname. Unicode defines the ZapfDingbat characters starting at \u2700, and as of 1.1 Java supports those characters. the names of the available fonts in this toolkit.
since:
   JDK1.0




getFontPeer
abstract public FontPeer getFontPeer(Font target)(Code)
Creates this toolkit's implementation of Font using the specified peer interface.
Parameters:
  target - the font to be implemented. this toolkit's implementation of Font.
See Also:   java.awt.Font
See Also:   sun.awt.peer.FontPeer
since:
   JDK1.0



getMenuComponentPeer
native public static MenuComponentPeer getMenuComponentPeer(MenuComponent m)(Code)
Gets the peer for the supplied menu component.



getNativeContainer
public static Container getNativeContainer(Component c)(Code)
Give native peers the ability to query the native container given a native component (eg the direct parent may be lightweight).



targetDisposedPeer
protected static void targetDisposedPeer(Object target, Object peer)(Code)



targetToPeer
protected static Object targetToPeer(Object target)(Code)



Fields inherited from sun.awt.SunToolkit
static SoftCache imgCache(Code)(Java Doc)

Methods inherited from sun.awt.SunToolkit
public void activate(Window window)(Code)(Java Doc)
public Image createImage(String filename)(Code)(Java Doc)
public Image createImage(URL url)(Code)(Java Doc)
public Image createImage(byte[] data, int offset, int length)(Code)(Java Doc)
public static AppContext createNewAppContext()(Code)(Java Doc)
static AppContext createNewAppContext(ThreadGroup threadGroup)(Code)(Java Doc)
public void deactivate(Window window)(Code)(Java Doc)
public boolean enableInputMethodsForTextComponent()(Code)(Java Doc)
abstract public String getDefaultCharacterEncoding()(Code)(Java Doc)
public Image getImage(String filename)(Code)(Java Doc)
public Image getImage(URL url)(Code)(Java Doc)
static synchronized Image getImageFromHash(Toolkit tk, URL url)(Code)(Java Doc)
static synchronized Image getImageFromHash(Toolkit tk, String filename)(Code)(Java Doc)
abstract protected int getScreenHeight()(Code)(Java Doc)
public Dimension getScreenSize()(Code)(Java Doc)
abstract protected int getScreenWidth()(Code)(Java Doc)
protected EventQueue getSystemEventQueueImpl()(Code)(Java Doc)
public static void insertTargetMapping(Object target, AppContext appContext)(Code)(Java Doc)
public static void postEvent(AppContext appContext, AWTEvent event)(Code)(Java Doc)
public static AppContext targetToAppContext(Object target)(Code)(Java Doc)

Methods inherited from java.awt.Toolkit
public void addAWTEventListener(AWTEventListener listener, long eventMask)(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 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)
public AWTEventListener[] getAWTEventListeners()(Code)(Java Doc)
public AWTEventListener[] getAWTEventListeners(long eventMask)(Code)(Java Doc)
abstract public ColorModel getColorModel()(Code)(Java Doc)
public static Toolkit getDefaultToolkit()(Code)(Java Doc)
abstract public String[] getFontList()(Code)(Java Doc)
abstract public FontMetrics getFontMetrics(Font font)(Code)(Java Doc)
abstract public Image getImage(String filename)(Code)(Java Doc)
abstract public Image getImage(URL url)(Code)(Java Doc)
public int getMenuShortcutKeyMask()(Code)(Java Doc)
public static String getProperty(String key, String defaultValue)(Code)(Java Doc)
public Insets getScreenInsets(GraphicsConfiguration gc) throws HeadlessException(Code)(Java Doc)
abstract public int getScreenResolution()(Code)(Java Doc)
abstract public Dimension getScreenSize()(Code)(Java Doc)
abstract public Clipboard getSystemClipboard()(Code)(Java Doc)
final public EventQueue getSystemEventQueue()(Code)(Java Doc)
abstract protected EventQueue getSystemEventQueueImpl()(Code)(Java Doc)
public boolean isFrameStateSupported(int state) throws HeadlessException(Code)(Java Doc)
protected void loadSystemColors(int[] systemColors)(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)
abstract public void sync()(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.