|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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.
Field Summary |
Fields inherited from class org.eclipse.swt.ole.win32.OleClientSite |
appClsid, frame, 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)
|
protected int |
GetWindow(int phwnd)
|
protected int |
OnUIDeactivate(int fUndoable)
|
protected int |
QueryInterface(int riid,
int ppvObject)
|
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. |
Methods inherited from class org.eclipse.swt.ole.win32.OleClientSite |
AddRef, createTempStorage, deactivateInPlaceClient, doVerb, exec, getClassID, getIndent, getProgramID, isDirty, isFocusControl, queryStatus, Release, 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 styles
SWTError
- Method Detail |
public void addEventListener(int eventID, OleListener listener)
eventID
- the id of the eventlistener
- the listener
SWTError
- public void addEventListener(OleAutomation automation, int eventID, OleListener listener)
automation
- the automation object that provides the event notificationeventID
- the id of the eventlistener
- the listener
SWTError
- protected void addObjectReferences()
addObjectReferences
in class OleClientSite
public void addPropertyListener(int propertyID, OleListener listener)
propertyID
- the identifier of the propertylistener
- the listener
SWTError
- protected void createCOMInterfaces()
createCOMInterfaces
in class OleClientSite
protected void disposeCOMInterfaces()
disposeCOMInterfaces
in class OleClientSite
public Color getBackground()
Control
getBackground
in class Control
public Font getFont()
Control
getFont
in class Control
public Color getForeground()
Control
getForeground
in class Control
protected int getLicenseInfo(org.eclipse.swt.internal.ole.win32.GUID clsid)
protected int GetWindow(int phwnd)
GetWindow
in class OleClientSite
protected int OnUIDeactivate(int fUndoable)
protected int QueryInterface(int riid, int ppvObject)
QueryInterface
in class OleClientSite
protected void releaseObjectInterfaces()
releaseObjectInterfaces
in class OleClientSite
public void removeEventListener(int eventID, OleListener listener)
eventID
- the event identifierlistener
- the listener
SWTError
- 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 listener
SWTError
- public void removeEventListener(OleAutomation automation, int eventID, OleListener listener)
automation
- the automation object that provides the event notificationeventID
- the event identifierlistener
- the listener
SWTError
- public void removePropertyListener(int propertyID, OleListener listener)
listener
- the listener
SWTError
- public void setBackground(Color color)
Control
setBackground
in class Control
color
- the new color (or null)public void setFont(Font font)
Control
setFont
in class Control
font
- the new font (or null)public void setForeground(Color color)
Control
setForeground
in class Control
color
- the new color (or null)
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |