|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.eclipse.swt.widgets.Widget
|
+--org.eclipse.swt.widgets.Control
|
+--org.eclipse.swt.widgets.Scrollable
|
+--org.eclipse.swt.widgets.Composite
|
+--org.eclipse.swt.ole.win32.OleClientSite
|
+--org.eclipse.swt.ole.win32.OleControlSite
OleControlSite provides a site to manage an embedded ActiveX Control within a container.
In addition to the behaviour provided by OleClientSite, this object provides the following:
This object implements the OLE Interfaces IOleControlSite, IDispatch, and IPropertyNotifySink.
Note that although this class is a subclass of Composite,
it does not make sense to add Control children to it,
or set a layout on it.
| Fields inherited from class org.eclipse.swt.ole.win32.OleClientSite |
appClsid, frame, objDocumentView, objIOleCommandTarget, objIOleInPlaceObject, objIOleObject, objIUnknown, objIViewObject2, tempStorage |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
OleControlSite(Composite parent,
int style,
String progId)
Create an OleControlSite child widget using style bits to select a particular look or set of properties. |
|
| Method Summary | |
void |
addEventListener(int eventID,
OleListener listener)
Adds the listener to receive events. |
void |
addEventListener(OleAutomation automation,
int eventID,
OleListener listener)
Adds the listener to receive events. |
protected void |
addObjectReferences()
|
void |
addPropertyListener(int propertyID,
OleListener listener)
Adds the listener to receive events. |
protected void |
createCOMInterfaces()
|
protected void |
disposeCOMInterfaces()
|
Color |
getBackground()
Returns the receiver's background color. |
Font |
getFont()
Returns the font that the receiver will use to paint textual information. |
Color |
getForeground()
Returns the foreground color that the receiver will use to draw. |
protected int |
getLicenseInfo(org.eclipse.swt.internal.ole.win32.GUID clsid)
|
Variant |
getSiteProperty(int dispId)
Get the control site property specified by the dispIdMember. |
protected int |
GetWindow(int phwnd)
|
protected int |
OnUIDeactivate(int fUndoable)
|
protected int |
QueryInterface(int riid,
int ppvObject)
|
protected int |
Release()
|
protected void |
releaseObjectInterfaces()
|
void |
removeEventListener(int eventID,
OleListener listener)
Removes the listener. |
void |
removeEventListener(OleAutomation automation,
org.eclipse.swt.internal.ole.win32.GUID guid,
int eventID,
OleListener listener)
Deprecated. - use OleControlSite.removeEventListener(OleAutomation, int, OleListener) |
void |
removeEventListener(OleAutomation automation,
int eventID,
OleListener listener)
Removes the listener. |
void |
removePropertyListener(int propertyID,
OleListener listener)
Removes the listener. |
void |
setBackground(Color color)
Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null. |
void |
setFont(Font font)
Sets the font that the receiver will use to paint textual information to the font specified by the argument, or to the default font for that kind of control if the argument is null. |
void |
setForeground(Color color)
Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null. |
void |
setSiteProperty(int dispId,
Variant value)
Sets the control site property specified by the dispIdMember to a new value. |
| Methods inherited from class org.eclipse.swt.ole.win32.OleClientSite |
AddRef, createTempStorage, deactivateInPlaceClient, doVerb, exec, getClassID, getIndent, getProgramID, isDirty, isFocusControl, queryStatus, save, setIndent, showProperties |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
checkSubclass, computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getStyle, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OleControlSite(Composite parent,
int style,
String progId)
parent - a composite widget; must be an OleFramestyle - the bitwise OR'ing of widget stylesprogID - the unique program identifier which has been registered for this ActiveX Control;
the value of the ProgID key or the value of the VersionIndependentProgID key specified
in the registry for this Control (for example, the VersionIndependentProgID for
Internet Explorer is Shell.Explorer)SWTError - | Method Detail |
public void addEventListener(int eventID,
OleListener listener)
eventID - the id of the eventlistener - the listenerSWTError -
public void addEventListener(OleAutomation automation,
int eventID,
OleListener listener)
automation - the automation object that provides the event notificationeventID - the id of the eventlistener - the listenerSWTError - protected void addObjectReferences()
addObjectReferences in class OleClientSite
public void addPropertyListener(int propertyID,
OleListener listener)
propertyID - the identifier of the propertylistener - the listenerSWTError - protected void createCOMInterfaces()
createCOMInterfaces in class OleClientSiteprotected void disposeCOMInterfaces()
disposeCOMInterfaces in class OleClientSitepublic Color getBackground()
ControlgetBackground in class Controlorg.eclipse.swt.widgets.ControlSWTException - public Font getFont()
ControlgetFont in class Controlorg.eclipse.swt.widgets.ControlSWTException - public Color getForeground()
ControlgetForeground in class Controlorg.eclipse.swt.widgets.ControlSWTException - protected int getLicenseInfo(org.eclipse.swt.internal.ole.win32.GUID clsid)
public Variant getSiteProperty(int dispId)
protected int GetWindow(int phwnd)
GetWindow in class OleClientSiteprotected int OnUIDeactivate(int fUndoable)
protected int QueryInterface(int riid,
int ppvObject)
QueryInterface in class OleClientSiteprotected int Release()
Release in class OleClientSiteprotected void releaseObjectInterfaces()
releaseObjectInterfaces in class OleClientSite
public void removeEventListener(int eventID,
OleListener listener)
eventID - the event identifierlistener - the listenerSWTError -
public void removeEventListener(OleAutomation automation,
org.eclipse.swt.internal.ole.win32.GUID guid,
int eventID,
OleListener listener)
automation - the automation object that provides the event notificationguid - the identifier of the events COM interfaceeventID - the event identifierlistener - the listenerSWTError -
public void removeEventListener(OleAutomation automation,
int eventID,
OleListener listener)
automation - the automation object that provides the event notificationeventID - the event identifierlistener - the listenerSWTError -
public void removePropertyListener(int propertyID,
OleListener listener)
listener - the listenerSWTError - public void setBackground(Color color)
ControlsetBackground in class Controlorg.eclipse.swt.widgets.Controlcolor - the new color (or null)IllegalArgumentException - SWTException - public void setFont(Font font)
ControlsetFont in class Controlorg.eclipse.swt.widgets.Controlfont - the new font (or null)IllegalArgumentException - SWTException - public void setForeground(Color color)
ControlsetForeground in class Controlorg.eclipse.swt.widgets.Controlcolor - the new color (or null)IllegalArgumentException - SWTException -
public void setSiteProperty(int dispId,
Variant value)
dispId - the ID of the property as specified by the IDL of the ActiveX Controlvalue - The new value for the property as expressed in a Variant.
|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||