com.develop.jawin
Class JAXComponent

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--com.develop.jawin.JAXComponent
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ComponentListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class JAXComponent
extends javax.swing.JPanel
implements java.awt.event.ComponentListener

Author:
Cyril
See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent, javax.swing.JComponent.ActionStandin, javax.swing.JComponent.IntVector, javax.swing.JComponent.KeyboardState
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
private  java.lang.String coClass
           
private  java.lang.Class comProxyClass
           
private  DispatchPtr control
           
private  boolean created
           
 int host
           
 int hwnd
           
private  GUID iid
           
private  java.util.Vector impls
           
private  java.util.Vector itfs
           
private  int thread
           
 
Fields inherited from class javax.swing.JPanel
defaultLayout, uiClassID
 
Fields inherited from class javax.swing.JComponent
_bounds, accessibleContext, actionMap, ACTIONMAP_CREATED, alignmentX, alignmentY, ANCESTOR_INPUTMAP_CREATED, ANCESTOR_USING_BUFFER, ancestorInputMap, ancestorNotifier, autoscroller, border, changeSupport, clientProperties, CREATED_DOUBLE_BUFFER, flags, FOCUS_INPUTMAP_CREATED, focusInputMap, HAS_FOCUS, htmlKey, htmlView, inputVerifier, IS_DOUBLE_BUFFERED, IS_OPAQUE, IS_PAINTING_TILE, IS_PRINTING, IS_PRINTING_ALL, KEY_EVENTS_ENABLED, KEYBOARD_BINDINGS_KEY, listenerList, maximumSize, minimumSize, NEXT_FOCUS, paintImmediatelyClip, paintingChild, preferredSize, readObjectCallbacks, REQUEST_FOCUS_DISABLED, tmpRect, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, verifyInputWhenFocusTarget, vetoableChangeSupport, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, WHEN_IN_FOCUSED_WINDOW_BINDINGS, WIF_INPUTMAP_CREATED, windowInputMap
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JAXComponent(GUID iid)
           
JAXComponent(java.lang.String coClass)
           
 
Method Summary
 void addNotify()
           
static void callInit(JAXComponent obj)
           
protected  void close()
           
 void componentHidden(java.awt.event.ComponentEvent componentEvent)
           
 void componentMoved(java.awt.event.ComponentEvent componentEvent)
           
 void componentResized(java.awt.event.ComponentEvent componentEvent)
           
 void componentShown(java.awt.event.ComponentEvent componentEvent)
           
private  void create()
           
static int createControl(JAXComponent obj)
           
private static int createControl(JAXComponent obj, int host, int window, int w, int h)
           
(package private)  void createHost(GUID iid)
           
private static int createHost(JAXComponent obj, byte[] guid)
           
(package private)  void createHost(java.lang.String coClass)
           
private static int createHostStr(JAXComponent obj, java.lang.String guid)
           
private  void deleteHost(int host)
           
private  void destroy()
           
protected  void exitInstance()
           
protected  void finalize()
           
 DispatchPtr getControl()
           
private  int getControl(int host)
           
private  int getHWND(java.awt.Component obj)
           
protected  void initInstance()
           
 void invalidate(boolean eraseBkg)
           
private static void invalidate(JAXComponent obj, boolean eraseBkg)
           
static int newHost(JAXComponent obj, byte[] guid)
           
static int newHost(JAXComponent obj, java.lang.String guid)
           
 void onWindowMsg(int msgID, long w, long l)
           
 void paint(java.awt.Graphics g)
           
 void preCreateInit()
           
private  void redrawHost()
           
 void removeNotify()
           
 void reshape(int x, int y, int w, int h)
           
private  void resizeHost(int x, int y, int w, int h)
           
 void setBounds(int x, int y, int width, int height)
           
 void setBounds(java.awt.Rectangle r)
           
 void setLocation(int x, int y)
           
 void setLocation(java.awt.Point p)
           
 void setSize(java.awt.Dimension d)
           
 void setSize(int width, int height)
           
 
Methods inherited from class javax.swing.JPanel
, getAccessibleContext, getUIClassID, paramString, updateUI, writeObject
 
Methods inherited from class javax.swing.JComponent
_paintImmediately, addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, adjustPaintFlags, alwaysOnTop, checkIfChildObscuredBySibling, clearFocusOwners, componentInputMapChanged, computeVisibleRect, computeVisibleRect, compWriteObjectNotify, contains, createToolTip, disable, enable, enableSerialization, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperties, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getCreatedDoubleBuffer, getDebugGraphicsOptions, getFlag, getGraphics, getHeight, getInputMap, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paintWithBuffer, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyBindings, processKeyBindingsForAllComponents, processKeyEvent, processMouseMotionEvent, putClientProperty, readObject, rectangleIsObscured, rectangleIsObscuredBySibling, registerKeyboardAction, registerKeyboardAction, registerWithKeyboardManager, registerWithKeyboardManager, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setCreatedDoubleBuffer, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFlag, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPaintingChild, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, shouldDebugGraphics, superProcessMouseMotionEvent, unregisterKeyboardAction, unregisterWithKeyboardManager, unregisterWithKeyboardManager, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getLayout, getMouseEventTarget, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paintComponents, paintHeavyweightComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFocusOwner, setLayout, transferFocus, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, constructComponentName, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getToolkit, getToolkitImpl, getTreeLock, getWindowForObject, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isEnabledImpl, isLightweight, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resetGC, resize, resize, setComponentOrientation, setCursor, setDropTarget, setLocale, setName, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

hwnd

public int hwnd

host

public int host

thread

private int thread

control

private DispatchPtr control

iid

private GUID iid

coClass

private java.lang.String coClass

comProxyClass

private java.lang.Class comProxyClass

created

private boolean created

itfs

private java.util.Vector itfs

impls

private java.util.Vector impls
Constructor Detail

JAXComponent

public JAXComponent(GUID iid)
             throws COMException

JAXComponent

public JAXComponent(java.lang.String coClass)
             throws COMException
Method Detail

createHost

void createHost(java.lang.String coClass)
          throws COMException

createHost

void createHost(GUID iid)
          throws COMException

newHost

public static int newHost(JAXComponent obj,
                          byte[] guid)
                   throws COMException

newHost

public static int newHost(JAXComponent obj,
                          java.lang.String guid)

setLocation

public void setLocation(int x,
                        int y)
Overrides:
setLocation in class java.awt.Component

setLocation

public void setLocation(java.awt.Point p)
Overrides:
setLocation in class java.awt.Component

setSize

public void setSize(int width,
                    int height)
Overrides:
setSize in class java.awt.Component

setSize

public void setSize(java.awt.Dimension d)
Overrides:
setSize in class java.awt.Component

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Overrides:
setBounds in class java.awt.Component

setBounds

public void setBounds(java.awt.Rectangle r)
Overrides:
setBounds in class java.awt.Component

create

private final void create()
                   throws COMException

createControl

public static int createControl(JAXComponent obj)
                         throws COMException

callInit

public static void callInit(JAXComponent obj)
                     throws COMException

preCreateInit

public final void preCreateInit()
                         throws COMException

initInstance

protected void initInstance()
                     throws COMException

exitInstance

protected void exitInstance()
                     throws COMException

invalidate

public final void invalidate(boolean eraseBkg)

onWindowMsg

public void onWindowMsg(int msgID,
                        long w,
                        long l)

reshape

public void reshape(int x,
                    int y,
                    int w,
                    int h)
Overrides:
reshape in class javax.swing.JComponent

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object

addNotify

public void addNotify()
Overrides:
addNotify in class javax.swing.JComponent

destroy

private final void destroy()
                    throws COMException

close

protected void close()

removeNotify

public void removeNotify()
Overrides:
removeNotify in class javax.swing.JComponent

getControl

public final DispatchPtr getControl()

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class javax.swing.JComponent

componentHidden

public void componentHidden(java.awt.event.ComponentEvent componentEvent)
Specified by:
componentHidden in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent componentEvent)
Specified by:
componentMoved in interface java.awt.event.ComponentListener

componentResized

public void componentResized(java.awt.event.ComponentEvent componentEvent)
Specified by:
componentResized in interface java.awt.event.ComponentListener

componentShown

public void componentShown(java.awt.event.ComponentEvent componentEvent)
Specified by:
componentShown in interface java.awt.event.ComponentListener

getHWND

private final int getHWND(java.awt.Component obj)

deleteHost

private final void deleteHost(int host)

resizeHost

private final void resizeHost(int x,
                              int y,
                              int w,
                              int h)

redrawHost

private final void redrawHost()

getControl

private final int getControl(int host)

createHostStr

private static final int createHostStr(JAXComponent obj,
                                       java.lang.String guid)

createHost

private static final int createHost(JAXComponent obj,
                                    byte[] guid)

createControl

private static final int createControl(JAXComponent obj,
                                       int host,
                                       int window,
                                       int w,
                                       int h)

invalidate

private static final void invalidate(JAXComponent obj,
                                     boolean eraseBkg)


New Jawin designed by Vitally Shelest. This product includes software developed by the DevelopMentor OpenSource Project (http://www.develop.com/OpenSource).