swingwt.awt
Class AWTSwingWrapper

java.lang.Object
  extended byswingwt.awt.Component
      extended byswingwt.awt.AWTSwingWrapper
All Implemented Interfaces:
ImageObserver, MenuContainer
Direct Known Subclasses:
Button, Choice, TextComponent

public class AWTSwingWrapper
extends Component

Provides convenience functionality for implementing an AWT component by wrapping around the corresponding Swing version.


Field Summary
protected  JComponent swingPeer
           
 
Fields inherited from class swingwt.awt.Component
accessibleContext, actionCommand, actionListeners, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, graphicsConfig, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, parent, pBackground, pCursor, pDoubleBuffered, peer, pEnabled, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, ppeer, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT
 
Fields inherited from interface swingwt.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AWTSwingWrapper()
           
 
Method Summary
 void addActionListener(ActionListener l)
          Add an ActionListener to this component
 void addComponentListener(ComponentListener l)
          Add an ComponentListener to this component
 void addFocusListener(FocusListener l)
          Add a KeyListener to this component
 void addInputMethodListener(InputMethodListener l)
          Add an InputMethodListener to this component
 void addKeyListener(KeyListener l)
          Add a KeyListener to this component
 void addMouseListener(MouseListener l)
          Add a MouseListener to this component
 void addMouseMotionListener(MouseMotionListener l)
          Add a MouseMotionListener to this component
 void addNotify()
           
protected  Dimension calculatePreferredSize()
          Override in subclasses to return the preferred size for a given (non-realised) component.
 void componentOnlyDispose()
          Because dispose() can be overridden to do more, calling this routine guarantees that destruction of the component occurs (and nothing else).
protected  Dimension computePreferredSize()
          This is called by getPreferredSize() when we want the peer to compute it's own size.
 boolean contains(int x, int y)
           
 Image createImage(int width, int height)
          Creates and returns an image
 VolatileImage createVolatileImage(int width, int height)
          Creates and returns a volatile image
 void dispatchEvent(AWTEvent awtEvent)
           
 void dispose()
          Destroys the component and stops all listeners
 AccessibleContext getAccessibleContext()
          Returns the component's accessible context
 java.lang.String getActionCommand()
          Returns the action command for this component
 float getAlignmentX()
          NOT IMPLEMENTED
 float getAlignmentY()
          NOT IMPLEMENTED
 Color getBackground()
          Returns the background colour of the component
 Rectangle getBounds()
          Returns the actual bounds of the component (or 0,0,0,0 if it isn't realised yet)
 ComponentOrientation getComponentOrientation()
           
 Cursor getCursor()
          Returns the components cursor
 Font getFont()
          Returns the Font used on the component
 FontMetrics getFontMetrics(Font f)
          Returns the font metrics for the given font
 Color getForeground()
          Returns the foreground colour of the component
 Graphics getGraphics()
          Return a graphics context for drawing on this object.
 GraphicsConfiguration getGraphicsConfiguration()
          Gets the GraphicsConfiguration for this component
 int getHeight()
          Returns the height of the component
 Point getLocation()
          Returns the component's location on screen
 Point getLocationOnScreen()
          FIXME: Bad algorithm here, but can't find appropriate routine.
 Dimension getMaximumSize()
          Returns the maximum size of the component
 Dimension getMinimumSize()
          Returns the minimum size of the component
 java.lang.String getName()
          Returns the components name
 Container getParent()
          Returns the component's parent
 ComponentPeer getPeer()
           
 Dimension getPeerSize()
          Returns the peers actual size, or 0,0 if it hasn't been created yet/is invisible
 Dimension getPreferredSize()
          Returns the preferred size the component would like to be displayed at - very important for proper layout managers.
 Dimension getSize()
          Returns the peers actual size.
 org.eclipse.swt.widgets.Control getSWTPeer()
          Returns the SWT peer
 Toolkit getToolkit()
          Gets the Toolkit for this component
 java.lang.String getToolTipText()
          Returns the tooltip text used on the component
 java.lang.Object getTreeLock()
          For compatibility with 3rd party layout managers - SwingWT doesn't need this as all laying out is marshalled onto a queued single thread
 int getWidth()
          Returns the width of the component
 int getX()
          Returns the component's X position in it's parent container
 int getY()
          Returns the component's Y position in it's parent container
 void grabFocus()
          Forces keyboard focus to the component
 boolean hasFocus()
          Returns true if this component has the focus
 boolean hasSetFont()
          Returns true if a calling process has set the font on this component.
 void hide()
          Makes the component invisible
 boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
          Here for compatibility - I'm not sure what it's for.
 void invalidate()
          Override in container classes to relayout child components - calls repaint here
 boolean isEnabled()
          Returns true if the component is enabled
 boolean isFocusable()
          Returns true if the component can receive the focus
 boolean isMinimumSizeSet()
           
 boolean isShowing()
          Returns true if the component is visible
 boolean isVisible()
          Returns true if the component is visible
 Dimension minimumSize()
           
 Dimension preferredSize()
           
 void removeActionListener(ActionListener l)
          Remove an ActionListener from the component
 void removeComponentListener(ComponentListener l)
          Remove an ComponentListener from the component
 void removeFocusListener(FocusListener l)
          Remove an KeyListener from the component
 void removeInputMethodListener(InputMethodListener l)
          Remove an InputMethodListener to this component
 void removeKeyListener(KeyListener l)
          Remove an KeyListener from the component
 void removeMouseListener(MouseListener l)
          Remove an MouseListener from the component
 void removeMouseMotionListener(MouseMotionListener l)
          Remove an MouseMotionListener from the component
 void removeNotify()
           
 void repaint()
          Redraws the component
 void repaint(int x, int y, int width, int height)
           
 void repaint(long tm, int x, int y, int width, int height)
           
 void requestFocus()
          Requests the component receives the focus
 void setActionCommand(java.lang.String command)
          Sets the action command for this component
 void setAlignmentX(float val)
          NOT IMPLEMENTED
 void setAlignmentY(float val)
          NOT IMPLEMENTED
 void setBackground(Color c)
          Sets the background colour of the component
 void setBounds(int x, int y, int width, int height)
          Sets the physical bounds of the component - used by layout managers
 void setBounds(Rectangle r)
          Sets the physical bounds of the component
 void setComponentOrientation(ComponentOrientation o)
           
 void setCursor(Cursor c)
          Sets the components cursor
 void setEnabled(boolean b)
          Change the enabled state of the component
 void setFocusable(boolean b)
          Set whether the component can be focused
 void setFocusTraversalKeysEnabled(boolean b)
          FIXME: NOT IMPLEMENTED
 void setFont(Font f)
          Sets the font used by the component
 void setForeground(Color c)
          Sets the foreground colour of the component
 void setHeight(int height)
          Sets the height of the component.
 void setLocation(int x, int y)
          Sets the component's location in it's container
 void setLocation(Point p)
          Sets the component's location in it's container
 void setMaximumSize(Dimension d)
          Sets the maximum size of the component
 void setMinimumSize(Dimension d)
          Sets the minimum size of the component
 void setName(java.lang.String newName)
          Sets the components name
 void setPreferredSize(Dimension d)
          Sets the preferred size of the object for layout purposes
 void setSize(Dimension d)
          Sets the peer's actual size
 void setSize(int width, int height)
          Sets the peer's actual size
 void setSwingWTParent(Container parent)
          Once a parent component receives an "add" call for a child, this being the child, this should be called to tell us to instantiate the peer and load in any cached properties.
 void setToolTipText(java.lang.String text)
          Sets the tooltip text used on the component
 void setVisible(boolean b)
          Change the visibility of the component
 void setWidth(int width)
          Sets the width of the component.
 void show()
          Makes the component visible
 void transferFocus()
          Sets the focus to the next component as if tab was pressed
 void transferFocusBackward()
          Sets the focus to the next component as if shift+tab was pressed
 void transferFocusUpCycle()
          NOT IMPLEMENTED: FIXME - focusCycleRoot not done
 void validate()
          NOT IMPLEMENTED
 
Methods inherited from class swingwt.awt.Component
add, addMouseWheelListener, contains, createListenerArrayFromVector, getListeners, getSize, inside, paint, paintComponent, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeMouseWheelListener, setCachedProperties, setComponentRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swingPeer

protected JComponent swingPeer
Constructor Detail

AWTSwingWrapper

public AWTSwingWrapper()
Method Detail

setSwingWTParent

public void setSwingWTParent(Container parent)
                      throws java.lang.Exception
Description copied from class: Component
Once a parent component receives an "add" call for a child, this being the child, this should be called to tell us to instantiate the peer and load in any cached properties.

Overrides:
setSwingWTParent in class Component
Throws:
java.lang.Exception

getSWTPeer

public org.eclipse.swt.widgets.Control getSWTPeer()
Description copied from class: Component
Returns the SWT peer

Overrides:
getSWTPeer in class Component

getPeer

public ComponentPeer getPeer()
Overrides:
getPeer in class Component

show

public void show()
Description copied from class: Component
Makes the component visible

Overrides:
show in class Component

hide

public void hide()
Description copied from class: Component
Makes the component invisible

Overrides:
hide in class Component

setVisible

public void setVisible(boolean b)
Description copied from class: Component
Change the visibility of the component

Overrides:
setVisible in class Component

isVisible

public boolean isVisible()
Description copied from class: Component
Returns true if the component is visible

Overrides:
isVisible in class Component

isShowing

public boolean isShowing()
Description copied from class: Component
Returns true if the component is visible

Overrides:
isShowing in class Component

setEnabled

public void setEnabled(boolean b)
Description copied from class: Component
Change the enabled state of the component

Overrides:
setEnabled in class Component

isEnabled

public boolean isEnabled()
Description copied from class: Component
Returns true if the component is enabled

Overrides:
isEnabled in class Component

requestFocus

public void requestFocus()
Description copied from class: Component
Requests the component receives the focus

Overrides:
requestFocus in class Component

grabFocus

public void grabFocus()
Description copied from class: Component
Forces keyboard focus to the component

Overrides:
grabFocus in class Component

repaint

public void repaint(int x,
                    int y,
                    int width,
                    int height)
Overrides:
repaint in class Component

repaint

public void repaint(long tm,
                    int x,
                    int y,
                    int width,
                    int height)
Overrides:
repaint in class Component

repaint

public void repaint()
Description copied from class: Component
Redraws the component

Overrides:
repaint in class Component

getBackground

public Color getBackground()
Description copied from class: Component
Returns the background colour of the component

Overrides:
getBackground in class Component

setBackground

public void setBackground(Color c)
Description copied from class: Component
Sets the background colour of the component

Overrides:
setBackground in class Component

getForeground

public Color getForeground()
Description copied from class: Component
Returns the foreground colour of the component

Overrides:
getForeground in class Component

setForeground

public void setForeground(Color c)
Description copied from class: Component
Sets the foreground colour of the component

Overrides:
setForeground in class Component

getWidth

public int getWidth()
Description copied from class: Component
Returns the width of the component

Overrides:
getWidth in class Component

getHeight

public int getHeight()
Description copied from class: Component
Returns the height of the component

Overrides:
getHeight in class Component

setWidth

public void setWidth(int width)
Description copied from class: Component
Sets the width of the component.

Overrides:
setWidth in class Component

setHeight

public void setHeight(int height)
Description copied from class: Component
Sets the height of the component.

Overrides:
setHeight in class Component

getGraphics

public Graphics getGraphics()
Description copied from class: Component
Return a graphics context for drawing on this object. Note that only instances of JComponent are allowed

Overrides:
getGraphics in class Component

getPreferredSize

public Dimension getPreferredSize()
Description copied from class: Component
Returns the preferred size the component would like to be displayed at - very important for proper layout managers.

Overrides:
getPreferredSize in class Component

computePreferredSize

protected Dimension computePreferredSize()
Description copied from class: Component
This is called by getPreferredSize() when we want the peer to compute it's own size. This base method delegates to the peer, but some components may want to override this value hence the reason we have a separate method here. NOTE THAT THIS ROUTINE IS DIFFERENT FROM calculatePreferredSize() - this routine is called by getPreferredSize() when none has been set by the user and allows the peer to compute it's size, calculatePreferredSize() is used when no peer has been created and we need to guess an appropriate size.

Overrides:
computePreferredSize in class Component

setPreferredSize

public void setPreferredSize(Dimension d)
Description copied from class: Component
Sets the preferred size of the object for layout purposes

Overrides:
setPreferredSize in class Component

calculatePreferredSize

protected Dimension calculatePreferredSize()
Description copied from class: Component
Override in subclasses to return the preferred size for a given (non-realised) component. Note that you should use setSize() to whatever this routine returns once called to prevent inconsistency with null layout managers. Also note that this is different from the computePreferredSize() method, which is used for calculating the preferredSize of a realised component (this one is for unrealised components)

Overrides:
calculatePreferredSize in class Component

getMaximumSize

public Dimension getMaximumSize()
Description copied from class: Component
Returns the maximum size of the component

Overrides:
getMaximumSize in class Component

setMaximumSize

public void setMaximumSize(Dimension d)
Description copied from class: Component
Sets the maximum size of the component

Overrides:
setMaximumSize in class Component

getMinimumSize

public Dimension getMinimumSize()
Description copied from class: Component
Returns the minimum size of the component

Overrides:
getMinimumSize in class Component

setMinimumSize

public void setMinimumSize(Dimension d)
Description copied from class: Component
Sets the minimum size of the component

Overrides:
setMinimumSize in class Component

isMinimumSizeSet

public boolean isMinimumSizeSet()
Overrides:
isMinimumSizeSet in class Component

minimumSize

public Dimension minimumSize()

preferredSize

public Dimension preferredSize()

setSize

public void setSize(int width,
                    int height)
Description copied from class: Component
Sets the peer's actual size

Overrides:
setSize in class Component

setSize

public void setSize(Dimension d)
Description copied from class: Component
Sets the peer's actual size

Overrides:
setSize in class Component

getSize

public Dimension getSize()
Description copied from class: Component
Returns the peers actual size. Or, if the peer is embedded inside a ScrollPane component, the larger of the preferredSize/peers actual size. This works rather nicely for handling layouts inside a scrollbar as we can simply offset a large composite according to the scrollbar positions inside JScrollPane. One note - if the component is JTree, JTable, JTextArea or JEditorPane, then we return the size as usual since these components handle their own scrolling and we don't want the JScrollPane behaving weirdly.

Overrides:
getSize in class Component

getPeerSize

public Dimension getPeerSize()
Description copied from class: Component
Returns the peers actual size, or 0,0 if it hasn't been created yet/is invisible

Overrides:
getPeerSize in class Component

setFocusTraversalKeysEnabled

public void setFocusTraversalKeysEnabled(boolean b)
Description copied from class: Component
FIXME: NOT IMPLEMENTED

Overrides:
setFocusTraversalKeysEnabled in class Component

getLocation

public Point getLocation()
Description copied from class: Component
Returns the component's location on screen

Overrides:
getLocation in class Component

getLocationOnScreen

public Point getLocationOnScreen()
Description copied from class: Component
FIXME: Bad algorithm here, but can't find appropriate routine. Display.map() looks interesting, but it is undocumented.

Overrides:
getLocationOnScreen in class Component

createImage

public Image createImage(int width,
                         int height)
Description copied from class: Component
Creates and returns an image

Overrides:
createImage in class Component

createVolatileImage

public VolatileImage createVolatileImage(int width,
                                         int height)
Description copied from class: Component
Creates and returns a volatile image

Overrides:
createVolatileImage in class Component

getFontMetrics

public FontMetrics getFontMetrics(Font f)
Description copied from class: Component
Returns the font metrics for the given font

Overrides:
getFontMetrics in class Component

getFont

public Font getFont()
Description copied from class: Component
Returns the Font used on the component

Specified by:
getFont in interface MenuContainer
Overrides:
getFont in class Component

setFont

public void setFont(Font f)
Description copied from class: Component
Sets the font used by the component

Overrides:
setFont in class Component

hasSetFont

public boolean hasSetFont()
Description copied from class: Component
Returns true if a calling process has set the font on this component. So other parts of SwingWT know when to override the standard font as part of your system theme.

Overrides:
hasSetFont in class Component

getToolTipText

public java.lang.String getToolTipText()
Description copied from class: Component
Returns the tooltip text used on the component

Overrides:
getToolTipText in class Component

setToolTipText

public void setToolTipText(java.lang.String text)
Description copied from class: Component
Sets the tooltip text used on the component

Overrides:
setToolTipText in class Component

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Description copied from class: Component
Sets the physical bounds of the component - used by layout managers

Overrides:
setBounds in class Component

setBounds

public void setBounds(Rectangle r)
Description copied from class: Component
Sets the physical bounds of the component

Overrides:
setBounds in class Component

getBounds

public Rectangle getBounds()
Description copied from class: Component
Returns the actual bounds of the component (or 0,0,0,0 if it isn't realised yet)

Overrides:
getBounds in class Component

getAlignmentX

public float getAlignmentX()
Description copied from class: Component
NOT IMPLEMENTED

Overrides:
getAlignmentX in class Component

getAlignmentY

public float getAlignmentY()
Description copied from class: Component
NOT IMPLEMENTED

Overrides:
getAlignmentY in class Component

setAlignmentX

public void setAlignmentX(float val)
Description copied from class: Component
NOT IMPLEMENTED

Overrides:
setAlignmentX in class Component

setAlignmentY

public void setAlignmentY(float val)
Description copied from class: Component
NOT IMPLEMENTED

Overrides:
setAlignmentY in class Component

transferFocus

public void transferFocus()
Description copied from class: Component
Sets the focus to the next component as if tab was pressed

Overrides:
transferFocus in class Component

transferFocusBackward

public void transferFocusBackward()
Description copied from class: Component
Sets the focus to the next component as if shift+tab was pressed

Overrides:
transferFocusBackward in class Component

transferFocusUpCycle

public void transferFocusUpCycle()
Description copied from class: Component
NOT IMPLEMENTED: FIXME - focusCycleRoot not done

Overrides:
transferFocusUpCycle in class Component

contains

public boolean contains(int x,
                        int y)
Overrides:
contains in class Component

invalidate

public void invalidate()
Description copied from class: Component
Override in container classes to relayout child components - calls repaint here

Overrides:
invalidate in class Component

validate

public void validate()
Description copied from class: Component
NOT IMPLEMENTED

Overrides:
validate in class Component

getActionCommand

public java.lang.String getActionCommand()
Description copied from class: Component
Returns the action command for this component

Overrides:
getActionCommand in class Component

setActionCommand

public void setActionCommand(java.lang.String command)
Description copied from class: Component
Sets the action command for this component

Overrides:
setActionCommand in class Component

setLocation

public void setLocation(Point p)
Description copied from class: Component
Sets the component's location in it's container

Overrides:
setLocation in class Component

setLocation

public void setLocation(int x,
                        int y)
Description copied from class: Component
Sets the component's location in it's container

Overrides:
setLocation in class Component

getX

public int getX()
Description copied from class: Component
Returns the component's X position in it's parent container

Overrides:
getX in class Component

getY

public int getY()
Description copied from class: Component
Returns the component's Y position in it's parent container

Overrides:
getY in class Component

getParent

public Container getParent()
Description copied from class: Component
Returns the component's parent

Overrides:
getParent in class Component

getName

public java.lang.String getName()
Description copied from class: Component
Returns the components name

Overrides:
getName in class Component

setName

public void setName(java.lang.String newName)
Description copied from class: Component
Sets the components name

Overrides:
setName in class Component

setCursor

public void setCursor(Cursor c)
Description copied from class: Component
Sets the components cursor

Overrides:
setCursor in class Component

isFocusable

public boolean isFocusable()
Description copied from class: Component
Returns true if the component can receive the focus

Overrides:
isFocusable in class Component

setFocusable

public void setFocusable(boolean b)
Description copied from class: Component
Set whether the component can be focused

Overrides:
setFocusable in class Component

getCursor

public Cursor getCursor()
Description copied from class: Component
Returns the components cursor

Overrides:
getCursor in class Component

getToolkit

public Toolkit getToolkit()
Description copied from class: Component
Gets the Toolkit for this component

Overrides:
getToolkit in class Component

getGraphicsConfiguration

public GraphicsConfiguration getGraphicsConfiguration()
Description copied from class: Component
Gets the GraphicsConfiguration for this component

Overrides:
getGraphicsConfiguration in class Component

getComponentOrientation

public ComponentOrientation getComponentOrientation()
Overrides:
getComponentOrientation in class Component

setComponentOrientation

public void setComponentOrientation(ComponentOrientation o)
Overrides:
setComponentOrientation in class Component

dispose

public void dispose()
Description copied from class: Component
Destroys the component and stops all listeners

Overrides:
dispose in class Component

componentOnlyDispose

public void componentOnlyDispose()
Description copied from class: Component
Because dispose() can be overridden to do more, calling this routine guarantees that destruction of the component occurs (and nothing else).

Overrides:
componentOnlyDispose in class Component

addActionListener

public void addActionListener(ActionListener l)
Description copied from class: Component
Add an ActionListener to this component

Overrides:
addActionListener in class Component

removeActionListener

public void removeActionListener(ActionListener l)
Description copied from class: Component
Remove an ActionListener from the component

Overrides:
removeActionListener in class Component

addComponentListener

public void addComponentListener(ComponentListener l)
Description copied from class: Component
Add an ComponentListener to this component

Overrides:
addComponentListener in class Component

removeComponentListener

public void removeComponentListener(ComponentListener l)
Description copied from class: Component
Remove an ComponentListener from the component

Overrides:
removeComponentListener in class Component

addMouseListener

public void addMouseListener(MouseListener l)
Description copied from class: Component
Add a MouseListener to this component

Overrides:
addMouseListener in class Component

removeMouseListener

public void removeMouseListener(MouseListener l)
Description copied from class: Component
Remove an MouseListener from the component

Overrides:
removeMouseListener in class Component

addMouseMotionListener

public void addMouseMotionListener(MouseMotionListener l)
Description copied from class: Component
Add a MouseMotionListener to this component

Overrides:
addMouseMotionListener in class Component

removeMouseMotionListener

public void removeMouseMotionListener(MouseMotionListener l)
Description copied from class: Component
Remove an MouseMotionListener from the component

Overrides:
removeMouseMotionListener in class Component

addKeyListener

public void addKeyListener(KeyListener l)
Description copied from class: Component
Add a KeyListener to this component

Overrides:
addKeyListener in class Component

removeKeyListener

public void removeKeyListener(KeyListener l)
Description copied from class: Component
Remove an KeyListener from the component

Overrides:
removeKeyListener in class Component

addFocusListener

public void addFocusListener(FocusListener l)
Description copied from class: Component
Add a KeyListener to this component

Overrides:
addFocusListener in class Component

removeFocusListener

public void removeFocusListener(FocusListener l)
Description copied from class: Component
Remove an KeyListener from the component

Overrides:
removeFocusListener in class Component

addInputMethodListener

public void addInputMethodListener(InputMethodListener l)
Description copied from class: Component
Add an InputMethodListener to this component

Overrides:
addInputMethodListener in class Component

removeInputMethodListener

public void removeInputMethodListener(InputMethodListener l)
Description copied from class: Component
Remove an InputMethodListener to this component

Overrides:
removeInputMethodListener in class Component

dispatchEvent

public void dispatchEvent(AWTEvent awtEvent)
Overrides:
dispatchEvent in class Component

addNotify

public void addNotify()
Overrides:
addNotify in class Component

removeNotify

public void removeNotify()
Overrides:
removeNotify in class Component

imageUpdate

public boolean imageUpdate(Image img,
                           int infoflags,
                           int x,
                           int y,
                           int width,
                           int height)
Description copied from class: Component
Here for compatibility - I'm not sure what it's for. Doesn't do anything anyway. :-)

Specified by:
imageUpdate in interface ImageObserver
Overrides:
imageUpdate in class Component

hasFocus

public boolean hasFocus()
Description copied from class: Component
Returns true if this component has the focus

Overrides:
hasFocus in class Component

getTreeLock

public java.lang.Object getTreeLock()
Description copied from class: Component
For compatibility with 3rd party layout managers - SwingWT doesn't need this as all laying out is marshalled onto a queued single thread

Overrides:
getTreeLock in class Component

getAccessibleContext

public AccessibleContext getAccessibleContext()
Description copied from class: Component
Returns the component's accessible context

Overrides:
getAccessibleContext in class Component