本文整理汇总了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());
}
示例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);
}
}
示例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);
}
}
示例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());
}
示例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());
}
示例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
}
}
示例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);
}
}
示例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());
}
示例9: updateProperties
import org.openide.nodes.PropertySupport; //导入方法依赖的package包/类
private void updateProperties(View view) {
PropertySupport.Name ps = new PropertySupport.Name(this);
addProperty(ps);
}
示例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());
}