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


Java DefaultProperty.setCategory方法代码示例

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


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

示例1: addBoxProperties

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private void addBoxProperties(Box shape) {
    // Width
    DefaultProperty width = new DefaultProperty();
    width.setCategory(Settings.getMessage("Properties.Box"));
    width.setDisplayName(Settings.getMessage("Properties.Box.Width"));
    width.setName("width");
    width.setType(Float.class);
    width.setValue(shape.getWidth());
    panel.addProperty(width);
    // Height
    DefaultProperty height = new DefaultProperty();
    height.setCategory(Settings.getMessage("Properties.Box"));
    height.setDisplayName(Settings.getMessage("Properties.Box.Height"));
    height.setName("height");
    height.setType(Float.class);
    height.setValue(shape.getHeight());
    panel.addProperty(height);
    // Depth
    DefaultProperty depth = new DefaultProperty();
    depth.setCategory(Settings.getMessage("Properties.Box"));
    depth.setDisplayName(Settings.getMessage("Properties.Box.Depth"));
    depth.setName("depth");
    depth.setType(Float.class);
    depth.setValue(shape.getDepth());
    panel.addProperty(depth);
}
 
开发者ID:navossoc,项目名称:vrmleditor,代码行数:27,代码来源:Properties.java

示例2: addConeProperties

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private void addConeProperties(Cone shape) {
    // Bottom Radius
    DefaultProperty radius = new DefaultProperty();
    radius.setCategory(Settings.getMessage("Properties.Cone"));
    radius.setDisplayName(Settings.getMessage("Properties.Cone.Radius"));
    radius.setName("radius");
    radius.setType(Float.class);
    radius.setValue(shape.getBottomRadius());
    panel.addProperty(radius);
    // Height
    DefaultProperty height = new DefaultProperty();
    height.setCategory(Settings.getMessage("Properties.Cone"));
    height.setDisplayName(Settings.getMessage("Properties.Cone.Height"));
    height.setName("height");
    height.setType(Float.class);
    height.setValue(shape.getHeight());
    panel.addProperty(height);
}
 
开发者ID:navossoc,项目名称:vrmleditor,代码行数:19,代码来源:Properties.java

示例3: addCylinderProperties

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private void addCylinderProperties(Cylinder shape) {
    // Radius
    DefaultProperty radius = new DefaultProperty();
    radius.setCategory(Settings.getMessage("Properties.Cylinder"));
    radius.setDisplayName(Settings.getMessage("Properties.Cylinder.Radius"));
    radius.setName("radius");
    radius.setType(Float.class);
    radius.setValue(shape.getRadius());
    panel.addProperty(radius);
    // Height
    DefaultProperty height = new DefaultProperty();
    height.setCategory(Settings.getMessage("Properties.Cylinder"));
    height.setDisplayName(Settings.getMessage("Properties.Cylinder.Height"));
    height.setName("height");
    height.setType(Float.class);
    height.setValue(shape.getHeight());
    panel.addProperty(height);
}
 
开发者ID:navossoc,项目名称:vrmleditor,代码行数:19,代码来源:Properties.java

示例4: getForegroundProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getForegroundProperty() {
    DefaultProperty foregroundProp = new DefaultProperty();
    foregroundProp.setName(CHART_FOREGROUND);
    foregroundProp.setDisplayName(FOREGROUND_PARAM_NAME);
    foregroundProp.setType(Color.class);
    foregroundProp.setValue(chart.getForegrounds().get(0));
    foregroundProp.setCategory(I18NSupport.getString("property.category.chart.main"));
    for (int i = 2; i <= Chart.COLORS.length; i++) {
        foregroundProp.addSubProperty(getForegroundProperty(i));
    }
    
    ExtendedColorPropertyEditor colorEditor = new ExtendedColorPropertyEditor();
    editorRegistry.registerEditor(foregroundProp, colorEditor);
    
    return foregroundProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:17,代码来源:ChartPropertyPanel.java

示例5: getWidthProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getWidthProperty() {
    DefaultProperty widthProp = new DefaultProperty();
    widthProp.setName(WIDTH_PARAM_NAME);
    widthProp.setDisplayName(WIDTH_PARAM_NAME);
    widthProp.setType(Integer.class);
    if (reportGridCells.get(0).getValue() instanceof ImageBandElement) {
    	widthProp.setValue(((ImageBandElement) reportGridCells.get(0).getValue()).getWidth());
    } else {
    	widthProp.setValue(((ImageColumnBandElement) reportGridCells.get(0).getValue()).getWidth());
    }
    if (Globals.getAccessibilityHtml()) {
        widthProp.setCategory(I18NSupport.getString("property.category.main"));
    }
    IntegerPropertyEditor widthEditor = new IntegerPropertyEditor();
    editorRegistry.registerEditor(widthProp, widthEditor);

    return widthProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:19,代码来源:PropertyPanel.java

示例6: getXAxisOrientationProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getXAxisOrientationProperty() {
    DefaultProperty orientationProp = new DefaultProperty();
    orientationProp.setName(X_COLUMN_ORIENTATION);
    orientationProp.setDisplayName(COLUMN_ORIENTATION_PARAM_NAME);
    orientationProp.setType(String.class);
    ComboBoxPropertyEditor orientationEditor = new ComboBoxPropertyEditor();
    orientationEditor.setAvailableValues(new String[]{ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL,
            ORIENTATION_DIAGONAL, ORIENTATION_HALF_DIAGONAL});

    byte xOrientation = chart.getXorientation();
    setXOrientation(xOrientation, orientationProp);
    orientationProp.setCategory(I18NSupport.getString("property.category.chart.xcolumn"));

    editorRegistry.registerEditor(orientationProp, orientationEditor);

    return orientationProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:18,代码来源:ChartPropertyPanel.java

示例7: addSphereProperties

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private void addSphereProperties(Sphere shape) {
    // Radius
    DefaultProperty radius = new DefaultProperty();
    radius.setCategory(Settings.getMessage("Properties.Sphere"));
    radius.setDisplayName(Settings.getMessage("Properties.Sphere.Radius"));
    radius.setName("radius");
    radius.setType(Float.class);
    radius.setValue(shape.getRadius());
    panel.addProperty(radius);
}
 
开发者ID:navossoc,项目名称:vrmleditor,代码行数:11,代码来源:Properties.java

示例8: getBorderProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getBorderProperty() {
    DefaultProperty borderProp = new DefaultProperty();
    borderProp.setName(BORDER_PARAM_NAME);
    borderProp.setDisplayName(BORDER_PARAM_NAME);
    borderProp.setType(ro.nextreports.engine.band.Border.class);
    borderProp.setValue(getUniqueBorder());
    if (Globals.getAccessibilityHtml()) {
        borderProp.setCategory(I18NSupport.getString("property.category.main"));
    }
    BorderPropertyEditor borderEditor = new BorderPropertyEditor();
    editorRegistry.registerEditor(borderProp, borderEditor);
    
    return borderProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:15,代码来源:PropertyPanel.java

示例9: getPaddingProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getPaddingProperty() {
    DefaultProperty paddingProp = new DefaultProperty();
    paddingProp.setName(PADDING_PARAM_NAME);
    paddingProp.setDisplayName(PADDING_PARAM_NAME);
    paddingProp.setType(Padding.class);
    paddingProp.setValue(getUniquePadding());
    if (Globals.getAccessibilityHtml()) {
        paddingProp.setCategory(I18NSupport.getString("property.category.main"));
    }
    PaddingPropertyEditor paddingEditor = new PaddingPropertyEditor();
    editorRegistry.registerEditor(paddingProp, paddingEditor);
    
    return paddingProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:15,代码来源:PropertyPanel.java

示例10: getAlignmentProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getAlignmentProperty() {
    DefaultProperty alignmentProp = new DefaultProperty();
    alignmentProp.setName(ALIGNMENT_PARAM_NAME);
    alignmentProp.setDisplayName(ALIGNMENT_PARAM_NAME);
    alignmentProp.setType(String.class);
    ComboBoxPropertyEditor alignmentEditor = new ComboBoxPropertyEditor();
    alignmentEditor.setAvailableValues(new String[] { LEFT, CENTER, RIGHT });
    int alignment = getUniqueAllignment();
    switch (alignment) {
        case BandElement.CENTER:
            alignmentProp.setValue(CENTER);
            break;
        case BandElement.RIGHT:
            alignmentProp.setValue(RIGHT);
            break;
        case BandElement.LEFT:
            alignmentProp.setValue(LEFT);
            break;
        default:
            alignmentProp.setValue(null);
    }
    if (Globals.getAccessibilityHtml()) {
        alignmentProp.setCategory(I18NSupport.getString("property.category.main"));
    }
    editorRegistry.registerEditor(alignmentProp, alignmentEditor);
    
    return alignmentProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:29,代码来源:PropertyPanel.java

示例11: getYAxisLabelColorProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getYAxisLabelColorProperty() {
    DefaultProperty colorProp = new DefaultProperty();
    colorProp.setName(Y_COLUMN_COLOR);
    colorProp.setDisplayName(COLUMN_COLOR_PARAM_NAME);
    colorProp.setType(Color.class);
    colorProp.setValue(chart.getYColor());
    colorProp.setCategory(I18NSupport.getString("property.category.chart.ycolumn"));
    
    ExtendedColorPropertyEditor colorEditor = new ExtendedColorPropertyEditor();
    editorRegistry.registerEditor(colorProp, colorEditor);
    
    return colorProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:14,代码来源:ChartPropertyPanel.java

示例12: getYDualLegendFontProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getYDualLegendFontProperty() {
    DefaultProperty fontProp = new DefaultProperty();
    fontProp.setName(Y_DUAL_LEGEND_FONT);
    fontProp.setDisplayName(FONT_PARAM_NAME);
    fontProp.setType(Font.class);
    if (chart.getyDualLegend() != null) {
    	fontProp.setValue(chart.getyDualLegend().getFont());
    }
    fontProp.setCategory(I18NSupport.getString("property.category.chart.ycolumn"));
    return fontProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:12,代码来源:ChartPropertyPanel.java

示例13: getYStartingFromZeroProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getYStartingFromZeroProperty() {
    DefaultProperty showProp = new DefaultProperty();
    showProp.setName(STARTING_FROM_ZERO_LABEL);
    showProp.setDisplayName(STARTING_FROM_ZERO_NAME);
    showProp.setType(Boolean.class);
    showProp.setValue(chart.getStartingFromZero());
    showProp.setCategory(I18NSupport.getString("property.category.chart.ycolumn"));        
    return showProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:10,代码来源:ChartPropertyPanel.java

示例14: getYLegendFontProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getYLegendFontProperty() {
    DefaultProperty fontProp = new DefaultProperty();
    fontProp.setName(Y_LEGEND_FONT);
    fontProp.setDisplayName(FONT_PARAM_NAME);
    fontProp.setType(Font.class);
    fontProp.setValue(chart.getYLegend().getFont());
    fontProp.setCategory(I18NSupport.getString("property.category.chart.ycolumn"));
    return fontProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:10,代码来源:ChartPropertyPanel.java

示例15: getConditionProperty

import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getConditionProperty(String type) {
    DefaultProperty conditionProp = new DefaultProperty();
    conditionProp.setName(CONDITION_NAME);
    conditionProp.setDisplayName(CONDITION_PARAM_NAME);
    conditionProp.setType(FormattingConditions.class);
    conditionProp.setValue(getUniqueBorder());
    conditionProp.setValue(reportGridCells.get(0).getValue().getFormattingConditions());
    if (Globals.getAccessibilityHtml()) {
        conditionProp.setCategory(I18NSupport.getString("property.category.main"));
    }        
    FormattingConditionsPropertyEditor conditionEditor = new FormattingConditionsPropertyEditor(type, formattingCellBand);
    editorRegistry.registerEditor(conditionProp, conditionEditor);

    return conditionProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:16,代码来源:PropertyPanel.java


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