src/share/classes/java/awt/Toolkit.java

Print this page




 377      * @see       java.awt.peer.MenuItemPeer
 378      */
 379     protected abstract MenuItemPeer createMenuItem(MenuItem target)
 380         throws HeadlessException;
 381 
 382     /**
 383      * Creates this toolkit's implementation of <code>FileDialog</code> using
 384      * the specified peer interface.
 385      * @param     target the file dialog to be implemented.
 386      * @return    this toolkit's implementation of <code>FileDialog</code>.
 387      * @exception HeadlessException if GraphicsEnvironment.isHeadless()
 388      * returns true
 389      * @see       java.awt.GraphicsEnvironment#isHeadless
 390      * @see       java.awt.FileDialog
 391      * @see       java.awt.peer.FileDialogPeer
 392      */
 393     protected abstract FileDialogPeer createFileDialog(FileDialog target)
 394         throws HeadlessException;
 395 
 396     /**














 397      * Creates this toolkit's implementation of <code>CheckboxMenuItem</code> using
 398      * the specified peer interface.
 399      * @param     target the checkbox menu item to be implemented.
 400      * @return    this toolkit's implementation of <code>CheckboxMenuItem</code>.
 401      * @exception HeadlessException if GraphicsEnvironment.isHeadless()
 402      * returns true
 403      * @see       java.awt.GraphicsEnvironment#isHeadless
 404      * @see       java.awt.CheckboxMenuItem
 405      * @see       java.awt.peer.CheckboxMenuItemPeer
 406      */
 407     protected abstract CheckboxMenuItemPeer createCheckboxMenuItem(
 408         CheckboxMenuItem target) throws HeadlessException;
 409 
 410     /**
 411      * Obtains this toolkit's implementation of helper class for
 412      * <code>MouseInfo</code> operations.
 413      * @return    this toolkit's implementation of  helper for <code>MouseInfo</code>
 414      * @throws    UnsupportedOperationException if this operation is not implemented
 415      * @see       java.awt.peer.MouseInfoPeer
 416      * @see       java.awt.MouseInfo




 377      * @see       java.awt.peer.MenuItemPeer
 378      */
 379     protected abstract MenuItemPeer createMenuItem(MenuItem target)
 380         throws HeadlessException;
 381 
 382     /**
 383      * Creates this toolkit's implementation of <code>FileDialog</code> using
 384      * the specified peer interface.
 385      * @param     target the file dialog to be implemented.
 386      * @return    this toolkit's implementation of <code>FileDialog</code>.
 387      * @exception HeadlessException if GraphicsEnvironment.isHeadless()
 388      * returns true
 389      * @see       java.awt.GraphicsEnvironment#isHeadless
 390      * @see       java.awt.FileDialog
 391      * @see       java.awt.peer.FileDialogPeer
 392      */
 393     protected abstract FileDialogPeer createFileDialog(FileDialog target)
 394         throws HeadlessException;
 395     
 396     /**
 397      * Creates this toolkit's implementation of <code>DirectoryDialog</code> using
 398      * the specified peer interface.
 399      * @param     target the directory dialog to be implemented.
 400      * @return    this toolkit's implementation of <code>DirectoryDialog</code>.
 401      * @exception HeadlessException if GraphicsEnvironment.isHeadless()
 402      * returns true
 403      * @see       java.awt.GraphicsEnvironment#isHeadless
 404      * @see       java.awt.DirectoryDialog
 405      * @see       java.awt.peer.DirectoryDialogPeer
 406      */
 407     protected abstract DirectoryDialogPeer createDirectoryDialog(DirectoryDialog target)
 408         throws HeadlessException;
 409 
 410     /**
 411      * Creates this toolkit's implementation of <code>CheckboxMenuItem</code> using
 412      * the specified peer interface.
 413      * @param     target the checkbox menu item to be implemented.
 414      * @return    this toolkit's implementation of <code>CheckboxMenuItem</code>.
 415      * @exception HeadlessException if GraphicsEnvironment.isHeadless()
 416      * returns true
 417      * @see       java.awt.GraphicsEnvironment#isHeadless
 418      * @see       java.awt.CheckboxMenuItem
 419      * @see       java.awt.peer.CheckboxMenuItemPeer
 420      */
 421     protected abstract CheckboxMenuItemPeer createCheckboxMenuItem(
 422         CheckboxMenuItem target) throws HeadlessException;
 423 
 424     /**
 425      * Obtains this toolkit's implementation of helper class for
 426      * <code>MouseInfo</code> operations.
 427      * @return    this toolkit's implementation of  helper for <code>MouseInfo</code>
 428      * @throws    UnsupportedOperationException if this operation is not implemented
 429      * @see       java.awt.peer.MouseInfoPeer
 430      * @see       java.awt.MouseInfo