當前位置: 首頁>>代碼示例>>Java>>正文


Java OleAutomation類代碼示例

本文整理匯總了Java中org.eclipse.swt.ole.win32.OleAutomation的典型用法代碼示例。如果您正苦於以下問題:Java OleAutomation類的具體用法?Java OleAutomation怎麽用?Java OleAutomation使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


OleAutomation類屬於org.eclipse.swt.ole.win32包,在下文中一共展示了OleAutomation類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getAutomation

import org.eclipse.swt.ole.win32.OleAutomation; //導入依賴的package包/類
@Override
public IOleAutomation getAutomation() {
    if (oleAutomationLazy == null) {
        oleAutomationLazy = new OleAutomationImpl(new OleAutomation(getOleControlSite()));
    }
    return oleAutomationLazy;
}
 
開發者ID:jo-source,項目名稱:jo-widgets,代碼行數:8,代碼來源:OleControlImpl.java

示例2: getTypeInfo

import org.eclipse.swt.ole.win32.OleAutomation; //導入依賴的package包/類
static String getTypeInfo(final OleAutomation auto) {
    final StringBuilder result = new StringBuilder();
    final TYPEATTR typeattr = auto.getTypeInfoAttributes();
    if (typeattr != null) {
        if (typeattr.cFuncs > 0) {
            result.append("Functions :\n");
        }
        for (int i = 0; i < typeattr.cFuncs; i++) {
            final OleFunctionDescription description = auto.getFunctionDescription(i);
            result.append(getInvokeKind(description.invokeKind)
                + " (id = "
                + description.id
                + ") : "
                + "\n\tSignature   : "
                + getTypeName(description.returnType)
                + " "
                + description.name
                + "("
                + getFunctionDescription(description)
                + ")"
                + "\n\tDescription : "
                + description.documentation
                + "\n\tHelp File   : "
                + description.helpFile
                + "\n");
        }

        if (typeattr.cVars > 0) {
            result.append("\n\nVariables  :\n");
        }
        for (int i = 0; i < typeattr.cVars; i++) {
            final OlePropertyDescription data = auto.getPropertyDescription(i);
            result.append("PROPERTY (id = "
                + data.id
                + ") :"
                + "\n\tName : "
                + data.name
                + "\n\tType : "
                + getTypeName(data.type)
                + "\n");
        }
    }
    return result.toString();
}
 
開發者ID:jo-source,項目名稱:jo-widgets,代碼行數:45,代碼來源:OleAutomationTypeInfoUtil.java

示例3: OleAutomationImpl

import org.eclipse.swt.ole.win32.OleAutomation; //導入依賴的package包/類
OleAutomationImpl(final OleAutomation oleAutomation) {
    Assert.paramNotNull(oleAutomation, "oleAutomation");
    this.oleAutomation = oleAutomation;
    this.oleEventObservable = new OleEventObservable(oleAutomation);
    this.oleEventObservable.setSwtOleControlSite(getOleControlSite());
}
 
開發者ID:jo-source,項目名稱:jo-widgets,代碼行數:7,代碼來源:OleControlImpl.java

示例4: OleEventObservable

import org.eclipse.swt.ole.win32.OleAutomation; //導入依賴的package包/類
OleEventObservable(final OleAutomation oleAutomation) {
    this.oleAutomation = oleAutomation;
    this.listenersMap = new HashMap<Integer, Tuple<OleListener, Set<IOleEventListener>>>();
}
 
開發者ID:jo-source,項目名稱:jo-widgets,代碼行數:5,代碼來源:OleControlImpl.java


注:本文中的org.eclipse.swt.ole.win32.OleAutomation類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。