当前位置: 首页>>代码示例>>Java>>正文


Java PropertySupport.Name方法代码示例

本文整理汇总了Java中org.openide.nodes.PropertySupport.Name方法的典型用法代码示例。如果您正苦于以下问题:Java PropertySupport.Name方法的具体用法?Java PropertySupport.Name怎么用?Java PropertySupport.Name使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.openide.nodes.PropertySupport的用法示例。


在下文中一共展示了PropertySupport.Name方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: updateProperties

import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
private void updateProperties(Parameter param) {
    PropertySupport<String> ps = new PropertySupport.Name(this);
    addProperty(ps);

    switch (param.getDirection()) {
        case IN:
            addProperty(TYPE, TYPEDESC, String.class, false, NbBundle.getMessage (ProcedureParamNode.class, "In")); // NOI18N
            break;
        case OUT:
            addProperty(TYPE, TYPEDESC, String.class, false, NbBundle.getMessage (ProcedureParamNode.class, "Out")); // NOI18N
            break;
        case INOUT:
            addProperty(TYPE, TYPEDESC, String.class, false, NbBundle.getMessage (ProcedureParamNode.class, "InOut")); // NOI18N
            break;
    }

    addProperty(DATATYPE, DATATYPEDESC, String.class, false, param.getType() == null ? "null" : param.getType().toString()); // NOI18N

    addProperty(DBDATATYPE, DBDATATYPEDESC, String.class, false,
            param.getTypeName() == null ? "" : param.getTypeName());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:ProcedureParamNode.java

示例2: updateProperties

import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
private void updateProperties(ForeignKeyColumn column) {
    PropertySupport ps = new PropertySupport.Name(this);
    addProperty(ps);

    try {
        Column referred = column.getReferredColumn();
        Column referring = column.getReferringColumn();

        addProperty(FKPOSITION, FKPOSITIONDESC, Integer.class, false, column.getPosition());
        addProperty(FKREFERRINGSCHEMA, FKREFERRINGSCHEMADESC, String.class, false, referring.getParent().getParent().getName());
        addProperty(FKREFERRINGTABLE, FKREFERRINGTABLEDESC, String.class, false, referring.getParent().getName());
        addProperty(FKREFERRINGCOLUMN, FKREFERRINGCOLUMNDESC, String.class, false, referring.getName());
        addProperty(FKREFERREDSCHEMA, FKREFERREDSCHEMADESC, String.class, false, referred.getParent().getParent().getName());
        addProperty(FKREFERREDTABLE, FKREFERREDTABLEDESC, String.class, false, referred.getParent().getName());
        addProperty(FKREFERREDCOLUMN, FKREFERREDCOLUMNDESC, String.class, false, referred.getName());

    } catch (Exception e) {
        Exceptions.printStackTrace(e);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:21,代码来源:ForeignKeyColumnNode.java

示例3: modifySheetSet

import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
/** Modifies the sheet set to contain name of property and name of
* original object.
*/
private void modifySheetSet (Sheet.Set ss) {
    Property p = ss.remove (DataObject.PROP_NAME);
    if (p != null) {
        p = new PropertySupport.Name (this);
        ss.put (p);

        p = new Name ();
        ss.put (p);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:14,代码来源:BrokenDataShadow.java

示例4: updateProperties

import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
private void updateProperties(Table table) {
    PropertySupport.Name ps = new PropertySupport.Name(TableNode.this);
    addProperty(ps);

    addProperty(CATALOG, CATALOGDESC, String.class, false, getCatalogName());
    addProperty(SCHEMA, SCHEMADESC, String.class, false, getSchemaName());
    addProperty(SYSTEM, SYSTEMDESC, Boolean.class, false, isSystem());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:TableNode.java

示例5: updateProperties

import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
private void updateProperties(Value param) {
    PropertySupport ps = new PropertySupport.Name(this);
    addProperty(ps);

    addProperty(TYPE, TYPEDESC, String.class, false, NbBundle.getMessage (ReturnValueNode.class, "Return")); // NOI18N
    addProperty(DATATYPE, DATATYPEDESC, String.class, false, param.getType().toString());

    addProperty(DBDATATYPE, DBDATATYPEDESC, String.class, false,
            param.getTypeName() == null ? "" : param.getTypeName());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:11,代码来源:ReturnValueNode.java

示例6: updateProperties

import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
private void updateProperties(Procedure proc) {
    PropertySupport.Name ps = new PropertySupport.Name(this);
    addProperty(ps);

    if (proc.getReturnValue() == null) {
        addProperty(TYPE, TYPEDESC, String.class, false, NbBundle.getMessage (ProcedureNode.class, "StoredProcedure")); // NOI18N
    } else {
        addProperty(TYPE, TYPEDESC, String.class, false, NbBundle.getMessage (ProcedureNode.class, "StoredFunction")); // NOI18N
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:11,代码来源:ProcedureNode.java

示例7: modifySheetSet

import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
/** Modifies the sheet set to contain name of property and name of
* original object.
*/
private void modifySheetSet (Sheet.Set ss) {
    Property p = ss.remove (DataObject.PROP_NAME);
    if (p != null) {
        p = new PropertySupport.Name (this);
        ss.put (p);

        p = new Name ();
        ss.put (p);
        
        p = new FileSystemProperty ();
        ss.put (p);
    }
}
 
开发者ID:CharlesSkelton,项目名称:studio,代码行数:17,代码来源:BrokenDataShadow.java

示例8: updateProperties

import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
private void updateProperties(Index index) {
    PropertySupport.Name ps = new PropertySupport.Name(this);
    addProperty(ps);

    addProperty(UNIQUE, UNIQUEDESC, Boolean.class, false, index.isUnique());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:7,代码来源:IndexNode.java

示例9: updateProperties

import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
private void updateProperties(View view) {
    PropertySupport.Name ps = new PropertySupport.Name(this);
    addProperty(ps);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:ViewNode.java

示例10: updateProperties

import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
private void updateProperties(IndexColumn column) {
    PropertySupport ps = new PropertySupport.Name(this);
    addProperty(ps);

    addProperty(POSITION, POSITIONDESC, Integer.class, false, column.getPosition());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:7,代码来源:IndexColumnNode.java


注:本文中的org.openide.nodes.PropertySupport.Name方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。