APIdia Launch Partner
Top Fields Constructors Methods
sun.awt.X11

public final Class XButtonPeer

extends XComponentPeer
implements ButtonPeer
Class Inheritance
All Implemented Interfaces
java.awt.peer.ButtonPeer, java.awt.peer.ComponentPeer
Imports
java.awt.*, java.awt.peer.*, java.awt.event.MouseEvent, .FocusEvent, .KeyEvent, .ActionEvent, javax.swing.plaf.basic.*, javax.swing.SwingUtilities, .SwingConstants

Field Summary

Modifier and TypeField and Description
private boolean
private Insets
private Insets
private boolean
protected Color
private Insets
pack-priv String
private boolean
private static final String
Inherited from sun.awt.X11.XComponentPeer:
backgroundBACKGROUND_COLORbHasFocusboundsOperationdarkShadowfontforegroundFOREGROUND_COLORHIGHLIGHT_COLORisLayoutinglightShadowpaintPendingselectColorSHADOW_COLORsystemColors

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
action(final long when, final int modifiers)

public void
dispose()

Overrides sun.awt.X11.XWindow.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer.

public void
focusGained(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusGained.

Called when component receives focus

public void
focusLost(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusLost.

Called when component loses focus

public Dimension
getMinimumSize()

Overrides sun.awt.X11.XComponentPeer.getMinimumSize.

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Determines the minimum size of the component.

protected String
pack-priv void
pack-priv void
public boolean
isFocusable()

Overrides sun.awt.X11.XComponentPeer.isFocusable.

Implements java.awt.peer.ComponentPeer.isFocusable.

Returns true when the component takes part in the focus traversal, false otherwise.

public void
paintBorder(Graphics g, int x, int y, int w, int h)

protected void
protected void
paintFocus(Graphics g, int x, int y, int w, int h)

pack-priv void
paintPeer(final Graphics g)

Overrides sun.awt.X11.XWindow.paintPeer.

This method is called from Toolkit Thread and so it should not call any client code.

protected void
pack-priv void
preInit(XCreateWindowParams params)

Overrides sun.awt.X11.XComponentPeer.preInit.

Called before window creation, descendants should override to initialize the data, initialize params.

public void
setBackground(Color c)

Overrides sun.awt.X11.XComponentPeer.setBackground.

Implements java.awt.peer.ComponentPeer.setBackground.

Sets the background color of this component.

public void
setLabel(String label)

Implements java.awt.peer.ButtonPeer.setLabel.

Sets the label that is displayed on the button.

Inherited from sun.awt.X11.XComponentPeer:
addDropTargetapplyShapebeginLayoutbeginValidatecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdraw3DOvaldraw3DOvaldraw3DRectdraw3DRectdrawMotif3DRectdrawScrollbarendLayoutendValidateflipgetBackBuffergetBackBufferCapsgetFontgetFontMetricsgetGraphicsgetGUIcolorsgetInsetsgetParentTopLevelgetPeerBackgroundgetPeerFontgetPeerForegroundgetPeerSizegetPreferredSizegetRGBvalsgetSystemColorsgetWinBackgroundhandleEventhandleF10JavaKeyEventhandleJavaFocusEventhandleJavaInputMethodEventhandleJavaMouseWheelEventhandleJavaWindowFocusEventhandlesWheelScrollinghasFocushideisEnabledisEventDisabledisInitialReshapeisObscuredisPaintPendingisReparentSupportedlayoutnotifyTextComponentChangeoperationToStringpaintpostInitprintpSetCursorpSetCursorremoveDropTargetreparentrequestFocusreshapesetBoundssetBoundsOperationsetEnabledsetFontsetForegroundsetVisiblesetZOrderupdateCursorImmediatelyupdateGraphicsDataupdateMotifColorswrapInSequenced

Field Detail

armedback to summary
private boolean armed
borderInsetsback to summary
private Insets borderInsets
contentAreaInsetsback to summary
private Insets contentAreaInsets
disposedback to summary
private boolean disposed

Hides sun.awt.X11.XBaseWindow.disposed.

focusColorback to summary
protected Color focusColor
focusInsetsback to summary
private Insets focusInsets
labelback to summary
pack-priv String label
pressedback to summary
private boolean pressed
propertyPrefixback to summary
private static final String propertyPrefix

Constructor Detail

XButtonPeerback to summary
public XButtonPeer(Button target)

Method Detail

actionback to summary
public void action(final long when, final int modifiers)
disposeback to summary
public void dispose()

Overrides sun.awt.X11.XWindow.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Doc from java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer. This is called when the component has been disconnected from the component hierarchy and is about to be garbage collected.

Annotations
@Override
focusGainedback to summary
public void focusGained(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusGained.

Doc from sun.awt.X11.XComponentPeer.focusGained.

Called when component receives focus

Annotations
@Override
focusLostback to summary
public void focusLost(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusLost.

Doc from sun.awt.X11.XComponentPeer.focusLost.

Called when component loses focus

Annotations
@Override
getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides sun.awt.X11.XComponentPeer.getMinimumSize.

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Doc from java.awt.peer.ComponentPeer.getMinimumSize.

Determines the minimum size of the component.

Annotations
@Override
getPropertyPrefixback to summary
protected String getPropertyPrefix()
handleJavaKeyEventback to summary
pack-priv void handleJavaKeyEvent(KeyEvent e)

Overrides sun.awt.X11.XComponentPeer.handleJavaKeyEvent.

Annotations
@Override
handleJavaMouseEventback to summary
pack-priv void handleJavaMouseEvent(MouseEvent e)

Overrides sun.awt.X11.XComponentPeer.handleJavaMouseEvent.

Annotations
@Override
isFocusableback to summary
public boolean isFocusable()

Overrides sun.awt.X11.XComponentPeer.isFocusable.

Implements java.awt.peer.ComponentPeer.isFocusable.

Doc from java.awt.peer.ComponentPeer.isFocusable.

Returns true when the component takes part in the focus traversal, false otherwise.

Annotations
@Override
paintBorderback to summary
public void paintBorder(Graphics g, int x, int y, int w, int h)
paintButtonPressedback to summary
protected void paintButtonPressed(Graphics g, Component b)
paintFocusback to summary
protected void paintFocus(Graphics g, int x, int y, int w, int h)
paintPeerback to summary
pack-priv void paintPeer(final Graphics g)

Overrides sun.awt.X11.XWindow.paintPeer.

This method is called from Toolkit Thread and so it should not call any client code.

Annotations
@Override
paintTextback to summary
protected void paintText(Graphics g, Component c, Rectangle textRect, String text)
preInitback to summary
pack-priv void preInit(XCreateWindowParams params)

Overrides sun.awt.X11.XComponentPeer.preInit.

Doc from sun.awt.X11.XBaseWindow.preInit.

Called before window creation, descendants should override to initialize the data, initialize params.

Annotations
@Override
setBackgroundback to summary
public void setBackground(Color c)

Overrides sun.awt.X11.XComponentPeer.setBackground.

Implements java.awt.peer.ComponentPeer.setBackground.

Doc from java.awt.peer.ComponentPeer.setBackground.

Sets the background color of this component.

Annotations
@Override
setLabelback to summary
public void setLabel(String label)

Implements java.awt.peer.ButtonPeer.setLabel.

Doc from java.awt.peer.ButtonPeer.setLabel.

Sets the label that is displayed on the button. Can be null when the button should not display a label.

Annotations
@Override