56 default LightweightPeer createComponent(Component target) { 57 return LightweightPeerHolder.lightweightMarker; 58 } 59 60 /** 61 * Creates this toolkit's implementation of the {@code Desktop} using the 62 * specified peer interface. 63 * 64 * @param target the desktop to be implemented 65 * @return this toolkit's implementation of the {@code Desktop} 66 * @throws HeadlessException if GraphicsEnvironment.isHeadless() returns 67 * true 68 * @see java.awt.GraphicsEnvironment#isHeadless 69 * @see java.awt.Desktop 70 * @see java.awt.peer.DesktopPeer 71 * @since 1.6 72 */ 73 default DesktopPeer createDesktopPeer(Desktop target) { 74 throw new HeadlessException(); 75 } 76 77 /** 78 * Creates this toolkit's implementation of {@code Button} using the 79 * specified peer interface. 80 * 81 * @param target the button to be implemented 82 * @return this toolkit's implementation of {@code Button} 83 * @throws HeadlessException if GraphicsEnvironment.isHeadless() returns 84 * true 85 * @see java.awt.GraphicsEnvironment#isHeadless 86 * @see java.awt.Button 87 * @see java.awt.peer.ButtonPeer 88 */ 89 default ButtonPeer createButton(Button target) { 90 throw new HeadlessException(); 91 } 92 93 /** 94 * Creates this toolkit's implementation of {@code TextField} using the 95 * specified peer interface. | 56 default LightweightPeer createComponent(Component target) { 57 return LightweightPeerHolder.lightweightMarker; 58 } 59 60 /** 61 * Creates this toolkit's implementation of the {@code Desktop} using the 62 * specified peer interface. 63 * 64 * @param target the desktop to be implemented 65 * @return this toolkit's implementation of the {@code Desktop} 66 * @throws HeadlessException if GraphicsEnvironment.isHeadless() returns 67 * true 68 * @see java.awt.GraphicsEnvironment#isHeadless 69 * @see java.awt.Desktop 70 * @see java.awt.peer.DesktopPeer 71 * @since 1.6 72 */ 73 default DesktopPeer createDesktopPeer(Desktop target) { 74 throw new HeadlessException(); 75 } 76 77 /** 78 * Creates this toolkit's implementation of the {@code Taskbar} using the 79 * specified peer interface. 80 * 81 * @param target the taskbar to be implemented 82 * @return this toolkit's implementation of the {@code Taskbar} 83 * @throws HeadlessException if GraphicsEnvironment.isHeadless() returns 84 * true 85 * @see java.awt.GraphicsEnvironment#isHeadless 86 * @see java.awt.Taskbar 87 * @see java.awt.peer.TaskbarPeer 88 * @since 1.9 89 */ 90 default TaskbarPeer createTaskbarPeer(Taskbar target) { 91 throw new HeadlessException(); 92 } 93 94 /** 95 * Creates this toolkit's implementation of {@code Button} using the 96 * specified peer interface. 97 * 98 * @param target the button to be implemented 99 * @return this toolkit's implementation of {@code Button} 100 * @throws HeadlessException if GraphicsEnvironment.isHeadless() returns 101 * true 102 * @see java.awt.GraphicsEnvironment#isHeadless 103 * @see java.awt.Button 104 * @see java.awt.peer.ButtonPeer 105 */ 106 default ButtonPeer createButton(Button target) { 107 throw new HeadlessException(); 108 } 109 110 /** 111 * Creates this toolkit's implementation of {@code TextField} using the 112 * specified peer interface. |