|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--com.develop.jawin.AXComponent
ActiveX holder component. Should be inherited by developer class. Creates ActiveX container.
Inner classes inherited from class java.awt.Canvas |
java.awt.Canvas.AccessibleAWTCanvas |
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
container object |
int |
hwnd
canvas (base component) window handle |
private GUID |
iid
|
private java.util.Vector |
impls
|
private java.util.Vector |
itfs
|
private int |
thread
|
Fields inherited from class java.awt.Canvas |
base, nameCounter, serialVersionUID |
Fields inherited from class java.awt.Component |
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dbg, 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 | |
AXComponent(GUID iid)
Creates a new instance of AXComponent |
|
AXComponent(java.lang.String coClass)
Creates a new instance of AXComponent |
Method Summary | |
private int |
_getHWND()
|
void |
addEventListener(java.lang.Class itf,
java.lang.Object impl)
Adds listener to COM Object |
void |
addNotify()
Creates ActiveX |
static void |
callInit(AXComponent obj)
For internal use |
protected void |
close()
|
void |
componentHidden(java.awt.event.ComponentEvent componentEvent)
Canvas listener function |
void |
componentMoved(java.awt.event.ComponentEvent componentEvent)
Canvas listener function |
void |
componentResized(java.awt.event.ComponentEvent componentEvent)
Canvas listener function |
void |
componentShown(java.awt.event.ComponentEvent componentEvent)
Canvas listener function |
private void |
create()
|
static int |
createControl(AXComponent obj)
For internal usage |
private static int |
createControl(AXComponent obj,
int host,
int window,
int w,
int h)
|
private static int |
createHost(AXComponent obj,
byte[] guid)
|
(package private) void |
createHost(GUID iid)
|
(package private) void |
createHost(java.lang.String coClass)
|
private static int |
createHostStr(AXComponent obj,
java.lang.String guid)
|
private void |
deleteHost(int host)
|
private void |
destroy()
|
protected void |
exitInstance()
|
protected void |
finalize()
Finalize object |
DispatchPtr |
getControl()
Returns ActiveX object from host ActiveX container. |
private int |
getControl(int host)
|
private int |
getHWND()
|
protected void |
initInstance()
Called by ActiveX container (host) before showing COM Object. |
private static void |
invalidate(AXComponent obj,
boolean eraseBkg)
|
void |
invalidate(boolean eraseBkg)
|
static int |
newHost(AXComponent obj,
byte[] guid)
For internal usage |
static int |
newHost(AXComponent obj,
java.lang.String guid)
For internal usage |
void |
onWindowMsg(int msgID,
long w,
long l)
|
void |
preCreateInit()
For internal usage |
private void |
redrawHost()
|
void |
removeNotify()
|
void |
reshape(int x,
int y,
int w,
int h)
|
private void |
resizeHost(int w,
int h)
|
Methods inherited from class java.awt.Canvas |
|
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkGD, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createChildHierarchyEvents, createHierarchyEvents, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, doLayout, enable, enable, enableEvents, enableInputMethods, eventEnabled, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, initIDs, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, layout, lightweightPaint, lightweightPrint, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, numListening, paintAll, paintHeavyweightComponents, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, printHeavyweightComponents, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, readObject, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate, writeObject |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
public int hwnd
public int host
private int thread
private DispatchPtr control
private GUID iid
private java.lang.String coClass
private java.lang.Class comProxyClass
private boolean created
private java.util.Vector itfs
private java.util.Vector impls
Constructor Detail |
public AXComponent(GUID iid) throws COMException
iid
- ActiveX GUIDCOMException
- JNI/COM errorpublic AXComponent(java.lang.String coClass) throws COMException
coClass
- COM ProgIDCOMException
- JNI/COM errorMethod Detail |
void createHost(java.lang.String coClass) throws COMException
void createHost(GUID iid) throws COMException
public final void addEventListener(java.lang.Class itf, java.lang.Object impl) throws COMException
itf
- class object of interface implementedimpl
- object which implements interfaceCOMException
- JNI/COM errorprotected void initInstance() throws COMException
COMException
- JNI/COM errorprotected void exitInstance() throws COMException
public final void preCreateInit() throws COMException
COMException
- JNI/COM errorprivate final void create() throws COMException
public void componentHidden(java.awt.event.ComponentEvent componentEvent)
componentHidden
in interface java.awt.event.ComponentListener
componentEvent
- canvas eventpublic void componentMoved(java.awt.event.ComponentEvent componentEvent)
componentMoved
in interface java.awt.event.ComponentListener
componentEvent
- canvas eventpublic void componentResized(java.awt.event.ComponentEvent componentEvent)
componentResized
in interface java.awt.event.ComponentListener
componentEvent
- canvas eventpublic void componentShown(java.awt.event.ComponentEvent componentEvent)
componentShown
in interface java.awt.event.ComponentListener
componentEvent
- canvas eventpublic void reshape(int x, int y, int w, int h)
reshape
in class java.awt.Component
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
COMException
- JNI/COM errorpublic void addNotify()
addNotify
in class java.awt.Canvas
private final void destroy() throws COMException
COMException
- protected void close()
public void removeNotify()
removeNotify
in class java.awt.Component
public final DispatchPtr getControl()
public static int newHost(AXComponent obj, byte[] guid) throws COMException
obj
- guid
- COMException
- JNI/COM errorpublic static int newHost(AXComponent obj, java.lang.String guid)
obj
- guid
- public static int createControl(AXComponent obj) throws COMException
obj
- COMException
- JNI/COM errorpublic static void callInit(AXComponent obj) throws COMException
obj
- COMException
- JNI/COM errorpublic final void invalidate(boolean eraseBkg)
public void onWindowMsg(int msgID, long w, long l)
private int _getHWND()
private final int getHWND()
private final void deleteHost(int host)
private final void resizeHost(int w, int h)
private final void redrawHost()
private final int getControl(int host)
private static final int createHostStr(AXComponent obj, java.lang.String guid)
private static final int createHost(AXComponent obj, byte[] guid)
private static final int createControl(AXComponent obj, int host, int window, int w, int h)
private static final void invalidate(AXComponent obj, boolean eraseBkg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |