StarOffice 5.2 API
reverse engineered by classdoc

com.sun.star.comp.jawt.peer
Class ComponentPeer

java.lang.Object
  |
  +--com.sun.star.comp.jawt.peer.ComponentPeer
All Implemented Interfaces:
java.awt.peer.ComponentPeer, sun.awt.UpdateClient, com.sun.star.comp.jawt.peer.WinArgs
Direct Known Subclasses:
com.sun.star.comp.jawt.peer.ButtonPeer, com.sun.star.comp.jawt.peer.CanvasPeer, com.sun.star.comp.jawt.peer.ChoicePeer, com.sun.star.comp.jawt.peer.ContainerPeer, com.sun.star.comp.jawt.peer.LabelPeer, com.sun.star.comp.jawt.peer.ListPeer, com.sun.star.comp.jawt.peer.RadioButtonPeer, com.sun.star.comp.jawt.peer.ScrollbarPeer, com.sun.star.comp.jawt.peer.TextComponentPeer, com.sun.star.comp.jawt.peer.XCheckboxPeer

public synchronized class ComponentPeer
extends java.lang.Object
implements java.awt.peer.ComponentPeer, sun.awt.UpdateClient, com.sun.star.comp.jawt.peer.WinArgs


Field Summary
(package private) static short POSSIZE_HEIGHT
           
(package private) static short POSSIZE_POS
           
(package private) static short POSSIZE_POSSIZE
           
(package private) static short POSSIZE_SIZE
           
(package private) static short POSSIZE_WIDTH
           
(package private) static short POSSIZE_X
           
(package private) static short POSSIZE_Y
           
(package private) static int VCL_BUTTONLEFT_MASK
           
(package private) static int VCL_BUTTONMIDDLE_MASK
           
(package private) static int VCL_BUTTONRIGHT_MASK
           
(package private) static int VCL_MOD1_MASK
           
(package private) static int VCL_MOD2_MASK
           
(package private) static int VCL_SHIFT_MASK
           
protected  boolean disposed
           
private  int focusListenerId
           
private  java.awt.Font font
           
private  com.sun.star.comp.jawt.image.FontMetricsImpl fontMetricsImpl
           
private static int instances
           
private  int keyListenerId
           
protected  boolean listenersAdded
           
private  com.sun.star.comp.jawt.peer.MouseListener mouseListener
           
private  int mouseMotionListenerId
           
private  int paintListenerId
           
protected  java.awt.Component target
           
protected  com.sun.star.comp.jawt.peer.Toolkit toolkit
           
private  int updateX1
           
private  int updateX2
           
private  int updateY1
           
private  int updateY2
           
private  com.sun.star.comp.jawt.peer.WindowListener windowListener
           
private  int xDeviceRef
           
protected  int xInterfaceRef
           
protected  int xLayoutConstraintsRef
           
protected  int xVclWindowPeerRef
           
protected  int xWindowPeerRef
           
protected  int xWindowRef
           
 
Fields inherited from interface com.sun.star.comp.jawt.peer.WinArgs
WA_BORDER, WA_CENTER, WA_CLOSEABLE, WA_DEFBUTTON, WA_DEF_CANCEL, WA_DEF_NO, WA_DEF_OK, WA_DEF_RETRY, WA_DEF_YES, WA_DROPDOWN, WA_FULLSIZE, WA_GROUP, WA_HSCROLL, WA_LEFT, WA_MINSIZE, WA_MOVEABLE, WA_NONE, WA_OK, WA_OK_CANCEL, WA_OPTIMUMSIZE, WA_PASSWORD, WA_READONLY, WA_RETRY_CANCEL, WA_RIGHT, WA_SHOW, WA_SIZEABLE, WA_SORT, WA_SPIN, WA_VSCROLL, WA_YES_NO, WA_YES_NO_CANCEL
 
Constructor Summary
ComponentPeer(com.sun.star.comp.jawt.peer.Toolkit t)
           
ComponentPeer(int i, java.awt.Component c, com.sun.star.comp.jawt.peer.Toolkit t)
           
 
Method Summary
protected  void addListener()
           
private  void addRepaintArea(int i1, int i2, int i3, int i4)
           
 void cb_focusGained(boolean b)
           
 void cb_focusLost(boolean b)
           
 void cb_keyPressed(int i, short s1, char c, short s2)
           
 void cb_keyReleased(int i, short s1, char c, short s2)
           
 void cb_keyTyped(int i, short s1, char c, short s2)
           
 void cb_mouseDragged(int i1, int i2, int i3, int i4, int i5, boolean b)
           
 void cb_mouseMoved(int i1, int i2, int i3, int i4, int i5, boolean b)
           
 void cb_repaint(int i1, int i2, int i3, int i4, int i5)
           
 int checkImage(java.awt.Image i1, int i2, int i3, java.awt.image.ImageObserver io)
           
 java.awt.Image createImage(int i1, int i2)
           
 java.awt.Image createImage(java.awt.image.ImageProducer ip)
           
protected  void createInterface()
           
protected  void createListener()
           
(package private) static com.sun.star.comp.jawt.vcl.TKTWindowDescriptor createWindowDescriptor(java.awt.Component c, int i, java.lang.String s)
           
protected  void deleteListener()
           
 void disable()
           
 void dispose()
           
 void enable()
           
 void finalize()
           
protected  void freeInterface()
           
 java.awt.Rectangle getBounds()
           
 java.awt.image.ColorModel getColorModel()
           
 java.awt.FontMetrics getFontMetrics(java.awt.Font f)
           
 java.awt.Graphics getGraphics()
           
 java.awt.Point getLocationOnScreen()
           
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getPreferredSize()
           
(package private)  java.awt.Component getTarget()
           
 java.awt.Toolkit getToolkit()
           
 int getXDeviceRef()
           
 int getXInterfaceRef()
           
 int getXVclWindowPeerRef()
           
 int getXWindowPeerRef()
           
 int getXWindowRef()
           
 void handleEvent(java.awt.AWTEvent awte)
           
 void hide()
           
protected  boolean inherit()
           
protected  void init(int i, java.awt.Component c)
           
 void invalidate()
           
 boolean isFocusTraversable()
           
(package private) static int mapModifiers(int i1, int i2)
           
 java.awt.Dimension minimumSize()
           
 void paint(java.awt.Graphics g)
           
(package private)  void postEvent(java.awt.AWTEvent awte)
           
 java.awt.Dimension preferredSize()
           
 boolean prepareImage(java.awt.Image i1, int i2, int i3, java.awt.image.ImageObserver io)
           
 void print(java.awt.Graphics g)
           
protected  void removeListener()
           
 void repaint(long l, int i1, int i2, int i3, int i4)
           
 void requestFocus()
           
 void reshape(int i1, int i2, int i3, int i4)
           
 void setBackground(java.awt.Color c)
           
 void setBounds(int i1, int i2, int i3, int i4)
           
 void setCursor(java.awt.Cursor c)
           
 void setEnabled(boolean b)
           
 void setFont(java.awt.Font f)
           
 void setForeground(java.awt.Color c)
           
protected  void setProperties()
           
 void setVisible(boolean b)
           
 void show()
           
 java.lang.String toString()
           
 void update(java.awt.Graphics g)
           
 void updateClient(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POSSIZE_HEIGHT

static final short POSSIZE_HEIGHT

POSSIZE_POS

static final short POSSIZE_POS

POSSIZE_POSSIZE

static final short POSSIZE_POSSIZE

POSSIZE_SIZE

static final short POSSIZE_SIZE

POSSIZE_WIDTH

static final short POSSIZE_WIDTH

POSSIZE_X

static final short POSSIZE_X

POSSIZE_Y

static final short POSSIZE_Y

VCL_BUTTONLEFT_MASK

static final int VCL_BUTTONLEFT_MASK

VCL_BUTTONMIDDLE_MASK

static final int VCL_BUTTONMIDDLE_MASK

VCL_BUTTONRIGHT_MASK

static final int VCL_BUTTONRIGHT_MASK

VCL_MOD1_MASK

static final int VCL_MOD1_MASK

VCL_MOD2_MASK

static final int VCL_MOD2_MASK

VCL_SHIFT_MASK

static final int VCL_SHIFT_MASK

disposed

protected boolean disposed

focusListenerId

private int focusListenerId

font

private java.awt.Font font

fontMetricsImpl

private com.sun.star.comp.jawt.image.FontMetricsImpl fontMetricsImpl

instances

private static int instances

keyListenerId

private int keyListenerId

listenersAdded

protected boolean listenersAdded

mouseListener

private com.sun.star.comp.jawt.peer.MouseListener mouseListener

mouseMotionListenerId

private int mouseMotionListenerId

paintListenerId

private int paintListenerId

target

protected java.awt.Component target

toolkit

protected com.sun.star.comp.jawt.peer.Toolkit toolkit

updateX1

private int updateX1

updateX2

private int updateX2

updateY1

private int updateY1

updateY2

private int updateY2

windowListener

private com.sun.star.comp.jawt.peer.WindowListener windowListener

xDeviceRef

private int xDeviceRef

xInterfaceRef

protected int xInterfaceRef

xLayoutConstraintsRef

protected int xLayoutConstraintsRef

xVclWindowPeerRef

protected int xVclWindowPeerRef

xWindowPeerRef

protected int xWindowPeerRef

xWindowRef

protected int xWindowRef
Constructor Detail

ComponentPeer

public ComponentPeer(com.sun.star.comp.jawt.peer.Toolkit t)

ComponentPeer

public ComponentPeer(int i,
                     java.awt.Component c,
                     com.sun.star.comp.jawt.peer.Toolkit t)
Method Detail

addListener

protected void addListener()

addRepaintArea

private void addRepaintArea(int i1,
                            int i2,
                            int i3,
                            int i4)

cb_focusGained

public void cb_focusGained(boolean b)

cb_focusLost

public void cb_focusLost(boolean b)

cb_keyPressed

public void cb_keyPressed(int i,
                          short s1,
                          char c,
                          short s2)

cb_keyReleased

public void cb_keyReleased(int i,
                           short s1,
                           char c,
                           short s2)

cb_keyTyped

public void cb_keyTyped(int i,
                        short s1,
                        char c,
                        short s2)

cb_mouseDragged

public void cb_mouseDragged(int i1,
                            int i2,
                            int i3,
                            int i4,
                            int i5,
                            boolean b)

cb_mouseMoved

public void cb_mouseMoved(int i1,
                          int i2,
                          int i3,
                          int i4,
                          int i5,
                          boolean b)

cb_repaint

public void cb_repaint(int i1,
                       int i2,
                       int i3,
                       int i4,
                       int i5)

checkImage

public int checkImage(java.awt.Image i1,
                      int i2,
                      int i3,
                      java.awt.image.ImageObserver io)
Specified by:
checkImage in interface java.awt.peer.ComponentPeer

createImage

public java.awt.Image createImage(int i1,
                                  int i2)
Specified by:
createImage in interface java.awt.peer.ComponentPeer

createImage

public java.awt.Image createImage(java.awt.image.ImageProducer ip)
Specified by:
createImage in interface java.awt.peer.ComponentPeer

createInterface

protected void createInterface()

createListener

protected void createListener()

createWindowDescriptor

static com.sun.star.comp.jawt.vcl.TKTWindowDescriptor createWindowDescriptor(java.awt.Component c,
                                                                             int i,
                                                                             java.lang.String s)

deleteListener

protected void deleteListener()

disable

public void disable()
Specified by:
disable in interface java.awt.peer.ComponentPeer

dispose

public void dispose()
Specified by:
dispose in interface java.awt.peer.ComponentPeer

enable

public void enable()
Specified by:
enable in interface java.awt.peer.ComponentPeer

finalize

public void finalize()

freeInterface

protected void freeInterface()

getBounds

public java.awt.Rectangle getBounds()

getColorModel

public java.awt.image.ColorModel getColorModel()
Specified by:
getColorModel in interface java.awt.peer.ComponentPeer

getFontMetrics

public java.awt.FontMetrics getFontMetrics(java.awt.Font f)
Specified by:
getFontMetrics in interface java.awt.peer.ComponentPeer

getGraphics

public java.awt.Graphics getGraphics()
Specified by:
getGraphics in interface java.awt.peer.ComponentPeer

getLocationOnScreen

public java.awt.Point getLocationOnScreen()
Specified by:
getLocationOnScreen in interface java.awt.peer.ComponentPeer

getMinimumSize

public java.awt.Dimension getMinimumSize()
Specified by:
getMinimumSize in interface java.awt.peer.ComponentPeer

getPreferredSize

public java.awt.Dimension getPreferredSize()
Specified by:
getPreferredSize in interface java.awt.peer.ComponentPeer

getTarget

java.awt.Component getTarget()

getToolkit

public java.awt.Toolkit getToolkit()
Specified by:
getToolkit in interface java.awt.peer.ComponentPeer

getXDeviceRef

public int getXDeviceRef()

getXInterfaceRef

public int getXInterfaceRef()

getXVclWindowPeerRef

public int getXVclWindowPeerRef()

getXWindowPeerRef

public int getXWindowPeerRef()

getXWindowRef

public int getXWindowRef()

handleEvent

public void handleEvent(java.awt.AWTEvent awte)
Specified by:
handleEvent in interface java.awt.peer.ComponentPeer

hide

public void hide()
Specified by:
hide in interface java.awt.peer.ComponentPeer

inherit

protected boolean inherit()

init

protected void init(int i,
                    java.awt.Component c)

invalidate

public void invalidate()

isFocusTraversable

public boolean isFocusTraversable()
Specified by:
isFocusTraversable in interface java.awt.peer.ComponentPeer

mapModifiers

static int mapModifiers(int i1,
                        int i2)

minimumSize

public java.awt.Dimension minimumSize()
Specified by:
minimumSize in interface java.awt.peer.ComponentPeer

paint

public void paint(java.awt.Graphics g)
Specified by:
paint in interface java.awt.peer.ComponentPeer

postEvent

void postEvent(java.awt.AWTEvent awte)

preferredSize

public java.awt.Dimension preferredSize()
Specified by:
preferredSize in interface java.awt.peer.ComponentPeer

prepareImage

public boolean prepareImage(java.awt.Image i1,
                            int i2,
                            int i3,
                            java.awt.image.ImageObserver io)
Specified by:
prepareImage in interface java.awt.peer.ComponentPeer

print

public void print(java.awt.Graphics g)
Specified by:
print in interface java.awt.peer.ComponentPeer

removeListener

protected void removeListener()

repaint

public void repaint(long l,
                    int i1,
                    int i2,
                    int i3,
                    int i4)
Specified by:
repaint in interface java.awt.peer.ComponentPeer

requestFocus

public void requestFocus()
Specified by:
requestFocus in interface java.awt.peer.ComponentPeer

reshape

public void reshape(int i1,
                    int i2,
                    int i3,
                    int i4)
Specified by:
reshape in interface java.awt.peer.ComponentPeer

setBackground

public void setBackground(java.awt.Color c)
Specified by:
setBackground in interface java.awt.peer.ComponentPeer

setBounds

public void setBounds(int i1,
                      int i2,
                      int i3,
                      int i4)
Specified by:
setBounds in interface java.awt.peer.ComponentPeer

setCursor

public void setCursor(java.awt.Cursor c)
Specified by:
setCursor in interface java.awt.peer.ComponentPeer

setEnabled

public void setEnabled(boolean b)
Specified by:
setEnabled in interface java.awt.peer.ComponentPeer

setFont

public void setFont(java.awt.Font f)
Specified by:
setFont in interface java.awt.peer.ComponentPeer

setForeground

public void setForeground(java.awt.Color c)
Specified by:
setForeground in interface java.awt.peer.ComponentPeer

setProperties

protected void setProperties()

setVisible

public void setVisible(boolean b)
Specified by:
setVisible in interface java.awt.peer.ComponentPeer

show

public void show()
Specified by:
show in interface java.awt.peer.ComponentPeer

toString

public java.lang.String toString()
Overrides:
toString in class ProgramElementDocImpl

update

public void update(java.awt.Graphics g)

updateClient

public void updateClient(java.lang.Object o)
Specified by:
updateClient in interface sun.awt.UpdateClient

StarOffice 5.2 API
reverse engineered by classdoc