public abstract class ComObject extends java.lang.Object implements WrappedResource
comhandle
s. Does minimal
management of the COM Object.Modifier and Type | Field and Description |
---|---|
private ControlFrameWidget |
parentControlFrame
The parent
ControlFrameWidget widget. |
private java.lang.Long |
resourceId
The resource id.
|
Constructor and Description |
---|
ComObject()
Build a new COM Object.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getName()
Obtain the name of this COM object.
|
ControlFrameWidget |
getParentControlFrame()
Obtain the
ControlFrameWidget container for this COM, if any. |
java.lang.Long |
id()
Get this resource's ID, if is already set.
|
void |
id(long id)
Set this resource's ID.
|
void |
init()
Initialization of the object.
|
abstract void |
release()
Perform actual delete of all resources.
|
void |
setParentControlFrame(ControlFrameWidget pcf)
Sets the
ControlFrameWidget container for this COM. |
boolean |
unknown()
Reports if this object is unknown.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
valid
private java.lang.Long resourceId
WrappedResource
management.private ControlFrameWidget parentControlFrame
ControlFrameWidget
widget. This container is used during the dispatch of
the events generated by this COM Object.public void init()
handle.resourceId(com.goldencode.p2j.util.WrappedResource)
after the object was
fully created and avoid calling virtual methods (namely WrappedResource.valid()
) with uninitialized
fields.public boolean unknown()
unknown
in interface WrappedResource
true
if object is unknown.public java.lang.Long id()
id
in interface WrappedResource
null
if not set.public void id(long id)
id
in interface WrappedResource
id
- The resource's ID.public abstract java.lang.String getName()
public abstract void release()
public ControlFrameWidget getParentControlFrame()
ControlFrameWidget
container for this COM, if any.public void setParentControlFrame(ControlFrameWidget pcf)
ControlFrameWidget
container for this COM.pcf
- The container for this COM.