Package system.componentmodel.design
Class IDesignerHostImplementation
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.componentmodel.design.IDesignerHostImplementation
-
- All Implemented Interfaces:
IJCOBridgeReflected
,IDesignerHost
,IServiceContainer
,IServiceProvider
public class IDesignerHostImplementation extends NetObject implements IDesignerHost
The base .NET class managing System.ComponentModel.Design.IDesignerHost, System.ComponentModel.TypeConverter, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.ComponentModel.Design.IDesignerHost
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.ComponentModel.TypeConverter, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.ComponentModel.TypeConverterstatic String
className
Qualified class name: System.ComponentModel.Design.IDesignerHoststatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description IDesignerHostImplementation(Object instance)
Internal constructor.
-
Method Summary
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
cast, Equals, Equals, GetHashCode, GetType, hashCode, setJCOInstance, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.ComponentModel.TypeConverter, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.ComponentModel.TypeConverter- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.ComponentModel.Design.IDesignerHost- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDesignerHost
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceIServiceContainer
- Specified by:
getJCOAssemblyName
in interfaceIServiceProvider
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIDesignerHost
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOClassName
in interfaceIServiceContainer
- Specified by:
getJCOClassName
in interfaceIServiceProvider
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIDesignerHost
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOObjectName
in interfaceIServiceContainer
- Specified by:
getJCOObjectName
in interfaceIServiceProvider
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIDesignerHost
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Specified by:
getJCOInstance
in interfaceIServiceContainer
- Specified by:
getJCOInstance
in interfaceIServiceProvider
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDesignerHost
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceIServiceContainer
- Specified by:
getJCOType
in interfaceIServiceProvider
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
ToIDesignerHost
public static IDesignerHost ToIDesignerHost(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoIDesignerHost
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
IDesignerHost
instance- Throws:
Throwable
- in case of error during cast operation
-
CreateTransaction
public DesignerTransaction CreateTransaction() throws Throwable
- Specified by:
CreateTransaction
in interfaceIDesignerHost
- Throws:
Throwable
-
CreateTransaction
public DesignerTransaction CreateTransaction(String description) throws Throwable
- Specified by:
CreateTransaction
in interfaceIDesignerHost
- Throws:
Throwable
-
GetDesigner
public IDesigner GetDesigner(IComponent component) throws Throwable
- Specified by:
GetDesigner
in interfaceIDesignerHost
- Throws:
Throwable
-
CreateComponent
public IComponent CreateComponent(NetType componentClass, String name) throws Throwable
- Specified by:
CreateComponent
in interfaceIDesignerHost
- Throws:
Throwable
-
CreateComponent
public IComponent CreateComponent(NetType componentClass) throws Throwable
- Specified by:
CreateComponent
in interfaceIDesignerHost
- Throws:
Throwable
-
GetService
public NetObject GetService(NetType serviceType) throws Throwable
- Specified by:
GetService
in interfaceIServiceProvider
- Throws:
Throwable
-
GetType
public NetType GetType(String typeName) throws Throwable
- Specified by:
GetType
in interfaceIDesignerHost
- Throws:
Throwable
-
Activate
public void Activate() throws Throwable
- Specified by:
Activate
in interfaceIDesignerHost
- Throws:
Throwable
-
AddService
public void AddService(NetType serviceType, ServiceCreatorCallback callback, boolean promote) throws Throwable
- Specified by:
AddService
in interfaceIServiceContainer
- Throws:
Throwable
-
AddService
public void AddService(NetType serviceType, ServiceCreatorCallback callback) throws Throwable
- Specified by:
AddService
in interfaceIServiceContainer
- Throws:
Throwable
-
AddService
public void AddService(NetType serviceType, NetObject serviceInstance, boolean promote) throws Throwable
- Specified by:
AddService
in interfaceIServiceContainer
- Throws:
Throwable
-
AddService
public void AddService(NetType serviceType, NetObject serviceInstance) throws Throwable
- Specified by:
AddService
in interfaceIServiceContainer
- Throws:
Throwable
-
DestroyComponent
public void DestroyComponent(IComponent component) throws Throwable
- Specified by:
DestroyComponent
in interfaceIDesignerHost
- Throws:
Throwable
-
RemoveService
public void RemoveService(NetType serviceType, boolean promote) throws Throwable
- Specified by:
RemoveService
in interfaceIServiceContainer
- Throws:
Throwable
-
RemoveService
public void RemoveService(NetType serviceType) throws Throwable
- Specified by:
RemoveService
in interfaceIServiceContainer
- Throws:
Throwable
-
getInTransaction
public boolean getInTransaction() throws Throwable
- Specified by:
getInTransaction
in interfaceIDesignerHost
- Throws:
Throwable
-
getLoading
public boolean getLoading() throws Throwable
- Specified by:
getLoading
in interfaceIDesignerHost
- Throws:
Throwable
-
getRootComponent
public IComponent getRootComponent() throws Throwable
- Specified by:
getRootComponent
in interfaceIDesignerHost
- Throws:
Throwable
-
getContainer
public IContainer getContainer() throws Throwable
- Specified by:
getContainer
in interfaceIDesignerHost
- Throws:
Throwable
-
getRootComponentClassName
public String getRootComponentClassName() throws Throwable
- Specified by:
getRootComponentClassName
in interfaceIDesignerHost
- Throws:
Throwable
-
getTransactionDescription
public String getTransactionDescription() throws Throwable
- Specified by:
getTransactionDescription
in interfaceIDesignerHost
- Throws:
Throwable
-
addTransactionClosed
public void addTransactionClosed(DesignerTransactionCloseEventHandler handler) throws Throwable
- Specified by:
addTransactionClosed
in interfaceIDesignerHost
- Throws:
Throwable
-
removeTransactionClosed
public void removeTransactionClosed(DesignerTransactionCloseEventHandler handler) throws Throwable
- Specified by:
removeTransactionClosed
in interfaceIDesignerHost
- Throws:
Throwable
-
addTransactionClosing
public void addTransactionClosing(DesignerTransactionCloseEventHandler handler) throws Throwable
- Specified by:
addTransactionClosing
in interfaceIDesignerHost
- Throws:
Throwable
-
removeTransactionClosing
public void removeTransactionClosing(DesignerTransactionCloseEventHandler handler) throws Throwable
- Specified by:
removeTransactionClosing
in interfaceIDesignerHost
- Throws:
Throwable
-
addActivated
public void addActivated(EventHandler handler) throws Throwable
- Specified by:
addActivated
in interfaceIDesignerHost
- Throws:
Throwable
-
removeActivated
public void removeActivated(EventHandler handler) throws Throwable
- Specified by:
removeActivated
in interfaceIDesignerHost
- Throws:
Throwable
-
addDeactivated
public void addDeactivated(EventHandler handler) throws Throwable
- Specified by:
addDeactivated
in interfaceIDesignerHost
- Throws:
Throwable
-
removeDeactivated
public void removeDeactivated(EventHandler handler) throws Throwable
- Specified by:
removeDeactivated
in interfaceIDesignerHost
- Throws:
Throwable
-
addLoadComplete
public void addLoadComplete(EventHandler handler) throws Throwable
- Specified by:
addLoadComplete
in interfaceIDesignerHost
- Throws:
Throwable
-
removeLoadComplete
public void removeLoadComplete(EventHandler handler) throws Throwable
- Specified by:
removeLoadComplete
in interfaceIDesignerHost
- Throws:
Throwable
-
addTransactionOpened
public void addTransactionOpened(EventHandler handler) throws Throwable
- Specified by:
addTransactionOpened
in interfaceIDesignerHost
- Throws:
Throwable
-
removeTransactionOpened
public void removeTransactionOpened(EventHandler handler) throws Throwable
- Specified by:
removeTransactionOpened
in interfaceIDesignerHost
- Throws:
Throwable
-
addTransactionOpening
public void addTransactionOpening(EventHandler handler) throws Throwable
- Specified by:
addTransactionOpening
in interfaceIDesignerHost
- Throws:
Throwable
-
removeTransactionOpening
public void removeTransactionOpening(EventHandler handler) throws Throwable
- Specified by:
removeTransactionOpening
in interfaceIDesignerHost
- Throws:
Throwable
-
-