本文整理汇总了Java中org.openide.nodes.Sheet.Set类的典型用法代码示例。如果您正苦于以下问题:Java Set类的具体用法?Java Set怎么用?Java Set使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Set类属于org.openide.nodes.Sheet包,在下文中一共展示了Set类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getPropertySets
import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
@Override
public PropertySet[] getPropertySets() {
if (sheet != null) {
return sheet.toArray();
}
try {
sheet = Sheet.createDefault();
Set ss = sheet.get(Sheet.PROPERTIES);
final Reflection<String> cnb = new PropertySupport.Reflection<String>(this, String.class, "getCodeName", null); // NOI18N
cnb.setDisplayName(NbBundle.getMessage(ClusterizeInfo.class, "MSG_ClusterizeCodeNameBase"));
cnb.setName("cnb"); // NOI18N
ss.put(cnb); // NOI18N
final Reflection<ClusterizeAction> act = new PropertySupport.Reflection<ClusterizeAction>(this, ClusterizeAction.class, "action"); // NOI18N
act.setDisplayName(NbBundle.getMessage(ClusterizeInfo.class, "MSG_ClusterizeActivateAs"));
act.setName("action"); // NOI18N
ss.put(act); // NOI18N
final Reflection<Integer> count = new PropertySupport.Reflection<Integer>(this, Integer.class, "getSelectedFilesCount", null); // NOI18N
count.setDisplayName(NbBundle.getMessage(ClusterizeInfo.class, "MSG_ClusterizeNumberOfModules"));
count.setName("selectedFilesCount"); // NOI18N
ss.put(act); // NOI18N
return sheet.toArray();
} catch (NoSuchMethodException ex) {
throw new IllegalStateException(ex);
}
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:26,代码来源:ClusterizeInfo.java
示例2: createSheet
import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
protected Sheet createSheet() {
Sheet sheet = Sheet.createDefault();
Set set = sheet.get(Sheet.PROPERTIES);
set.put(createProperty(PROP_NAME, String.class, this,
"getHtmlDisplayName", null));
if (canSelect()) {
set.put(createProperty(PROP_SELECTED, Boolean.TYPE, this,
"isSelected", "setSelected"));
// Node.Property prop = createProperty(PROP_PREFIX, String.class,
// this, "getPrefix", "setPrefix");
// Suppress the [...] button because it is not needed.
// prop.setValue("suppressCustomEditor", Boolean.TRUE);
// set.put(prop);
} /*else {
// Do not include this property so the checkbox is not shown.
//set.put(createProperty(PROP_SELECTED, Boolean.TYPE, this,
// "isSelected", null));
Node.Property prop = createProperty(PROP_PREFIX, String.class,
this, "getPrefix", null);
// Suppress the [...] button because it is not needed.
prop.setValue("suppressCustomEditor", Boolean.TRUE);
set.put(prop);
}*/
return sheet;
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:26,代码来源:ExternalReferenceDataNode.java
示例3: createSheet
import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
@Override
protected Sheet createSheet() {
Sheet sheet = super.createSheet();
Set set = Sheet.createPropertiesSet();
set.put(new ElementAttributeProperty(project, item, "name"));
set.put(new ElementNodeTextProperty(project, item, "description"));
set.put(new ElementAttributeProperty(project, item, "categories"));
set.put(new ElementAttributeProperty(project, item, "tags"));
Element elem = XmlHelper.findChildElement(item, "license");
if ((project.getLookup().lookup(AssetPackLibrary.class) != null) && (elem == null || elem.getTextContent().trim().length() <= 0)) {
set.put(new ElementNodeTextProperty(project, (Element) item.getParentNode().getParentNode(), "license"));
} else {
set.put(new ElementNodeTextProperty(project, item, "license"));
}
set.put(new ElementAttributeProperty(project, item, "type", ASSET_TYPES));
// set.put(new ElementAttributeProperty(project, item, "format", ASSET_FORMATS));
sheet.put(set);
return sheet;
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:20,代码来源:AssetPackBrowserItem.java
示例4: createSheet
import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
/**
* This is the function to create the sheet...
*
*/
@Override
protected Sheet createSheet() {
Sheet sheet = super.createSheet();
Set set = sheet.get(Sheet.PROPERTIES);
Property[] props = set.getProperties();
// Remove all the properties...
for (int i=0; i<props.length; ++i)
{
set.remove(props[i].getName());
}
// Add the missing properties...
set.put(new ConditionExpressionProperty( getConditionalStyle(), jd));
for (int i=0; i<props.length; ++i)
{
set.put(props[i]);
}
return sheet;
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:27,代码来源:ConditionalStyleNode.java
示例5: createSheet
import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
/**
* This is the function to create the sheet...
*
*/
@Override
protected Sheet createSheet() {
Sheet sheet = super.createSheet();
Set set = sheet.get(Sheet.PROPERTIES);
Property[] props = set.getProperties();
// Remove all the properties...
for (int i=0; i<props.length; ++i)
{
set.remove(props[i].getName());
}
// Add the missing properties...
set.put(new NameProperty( getDesignStyle(), jd));
set.put(new DefaultStyleProperty( getDesignStyle(), jd));
set.put(new ParentStyleProperty( getDesignStyle(), jd));
for (int i=0; i<props.length; ++i)
{
set.put(props[i]);
}
return sheet;
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:29,代码来源:StyleNode.java
示例6: createSheet
import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
@Override
protected Sheet createSheet() {
Sheet sheet = super.createSheet();
PropertySet[] sets = sheet.toArray();
for (int i=0; i<sets.length; ++i)
{
sheet.remove(sets[i].getName());
}
Sheet.Set propertySet = Sheet.createPropertiesSet();
propertySet.setName("AXIS_PROPERTIES");
propertySet.setDisplayName(I18n.getString("Global.AxisProperties"));
propertySet.put(new AxisPositionTypeProperty( chartAxis ));
sheet.put(propertySet);
for (int i=0; i<sets.length; ++i)
{
sheet.put((Set)sets[i]);
}
return sheet;
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:27,代码来源:AxisChartNode.java
示例7: categorize
import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
void categorize(java.util.Set<String> autoload, java.util.Set<String> eager, java.util.Set<String> enabled) {
if (Children.LEAF == getChildren()) {
switch (state) {
case ENABLED: enabled.add(path); return;
case AUTOLOAD: autoload.add(path); return;
case EAGER: eager.add(path); return;
}
} else {
for (Node n : getChildren().getNodes()) {
ClusterizeInfo ci = (ClusterizeInfo) n;
ci.categorize(autoload, eager, enabled);
}
}
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:15,代码来源:ClusterizeInfo.java
示例8: createSheet
import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
@Override
protected Sheet createSheet() {
Sheet sheet = super.createSheet();
List<Set> cellPropertiesSets = CrosstabCellPropertiesFactory.getCrosstabCellPropertySets(cellContents, jd);
for (Set s : cellPropertiesSets)
{
sheet.put(s);
}
return sheet;
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:14,代码来源:CellNode.java
示例9: ParameterProperty
import org.openide.nodes.Sheet.Set; //导入依赖的package包/类
public ParameterProperty(FormalParameters.Parameter parameter, Set set) {
super(parameter.getName(), FormalParameters.Parameter.class, parameter.getName(), "Default value of parameter " + parameter.getName());
this.parameter = parameter;
this.set = set;
}
开发者ID:kefik,项目名称:Pogamut3,代码行数:7,代码来源:ParameterProperty.java
注:本文中的org.openide.nodes.Sheet.Set类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论