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


Java ComboBoxPropertyEditor.setAvailableValues方法代码示例

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


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

示例1: getHtmlAccScopeProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getHtmlAccScopeProperty() {
    DefaultProperty scopeProp = new DefaultProperty();
    scopeProp.setName(HTML_ACC_SCOPE);
    scopeProp.setDisplayName(HTML_ACC_SCOPE);
    scopeProp.setType(String.class);
    ComboBoxPropertyEditor alignmentEditor = new ComboBoxPropertyEditor();
    alignmentEditor.setAvailableValues(new String[] { HTML_SCOPE_NONE, HTML_SCOPE_ROW, HTML_SCOPE_COL });
    String scope = getUniqueHtmlAccScope();
    if (HTML_SCOPE_ROW.equals(scope)) {
        scopeProp.setValue(HTML_SCOPE_ROW);
    } else if (HTML_SCOPE_COL.equals(scope)) {
        scopeProp.setValue(HTML_SCOPE_COL);
    } else {
        scopeProp.setValue(null);
    }
    if (Globals.getAccessibilityHtml()) {
        scopeProp.setCategory(I18NSupport.getString("property.category.accessibility.html"));
    }
    editorRegistry.registerEditor(scopeProp, alignmentEditor);

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

示例2: getXAxisOrientationProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的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

示例3: getYAxisColumnProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getYAxisColumnProperty(List<NameType> columns) {
    DefaultProperty columnProp = new DefaultProperty();
    columnProp.setName(Y_COLUMN_COL);
    columnProp.setDisplayName(COLUMN_COL_PARAM_NAME);
    columnProp.setType(String.class);
    ComboBoxPropertyEditor columnEditor = new ComboBoxPropertyEditor();
    JComboBox combo = (JComboBox) columnEditor.getCustomEditor();
    combo.setRenderer(new ChartColumnListCellRenderer(columns));
    List<String> names = new ArrayList<String>();
    for (NameType nt : columns) {
        names.add(nt.getName());
    }
    columnEditor.setAvailableValues(names.toArray(new String[names.size()]));
    String column = null;
    if ((chart.getYColumns() != null) && (chart.getYColumns().size() > 0)) {
        column = chart.getYColumns().get(0);
    }
    columnProp.setValue(column);
    columnProp.setCategory(I18NSupport.getString("property.category.chart.ycolumn"));
    editorRegistry.registerEditor(columnProp, columnEditor);
    for (int i = 2; i <= 10; i++) {
        columnProp.addSubProperty(getYAxisColumnProperty(getListWithSelect(columns), i));
    }
    return columnProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:26,代码来源:ChartPropertyPanel.java

示例4: getAlignmentProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的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 = bandElement.getHorizontalAlign();
    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);
    }
    editorRegistry.registerEditor(alignmentProp, alignmentEditor);

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

示例5: getVerticalAlignmentProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getVerticalAlignmentProperty() {
    DefaultProperty alignmentProp = new DefaultProperty();
    alignmentProp.setName(V_ALIGNMENT_PARAM_NAME);
    alignmentProp.setDisplayName(V_ALIGNMENT_PARAM_NAME);
    alignmentProp.setType(String.class);
    ComboBoxPropertyEditor alignmentEditor = new ComboBoxPropertyEditor();
    alignmentEditor.setAvailableValues(new String[]{TOP, MIDDLE, BOTTOM});
    int alignment = bandElement.getVerticalAlign();
    switch (alignment) {
        case BandElement.TOP:
            alignmentProp.setValue(TOP);
            break;
        case BandElement.MIDDLE:
            alignmentProp.setValue(MIDDLE);
            break;
        case BandElement.BOTTOM:
            alignmentProp.setValue(BOTTOM);
            break;
        default:
            alignmentProp.setValue(null);
    }
    editorRegistry.registerEditor(alignmentProp, alignmentEditor);

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

示例6: getTitleAlignmentProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getTitleAlignmentProperty() {
    DefaultProperty alignmentProp = new DefaultProperty();
    alignmentProp.setName(TITLE_ALIGNMENT);
    alignmentProp.setDisplayName(ALIGNMENT_PARAM_NAME);
    alignmentProp.setType(String.class);
    ComboBoxPropertyEditor alignmentEditor = new ComboBoxPropertyEditor();
    alignmentEditor.setAvailableValues(new String[]{LEFT, CENTER, RIGHT});
    byte alignment = chart.getTitle().getAlignment();
    setAlignment(alignment, alignmentProp);
    alignmentProp.setCategory(I18NSupport.getString("property.category.chart.title"));
    editorRegistry.registerEditor(alignmentProp, alignmentEditor);
    return alignmentProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:14,代码来源:ChartPropertyPanel.java

示例7: getTypeProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getTypeProperty() {
    DefaultProperty typeProp = new DefaultProperty();
    typeProp.setName(CHART_TYPE);
    typeProp.setDisplayName(TYPE_PARAM_NAME);
    typeProp.setType(String.class);
    ComboBoxPropertyEditor typeEditor = new ComboBoxPropertyEditor();
    typeEditor.setAvailableValues(new String[]{BAR, NEGATIVE_BAR, BAR_COMBO, HORIZONTAL_BAR, STACKED_BAR, STACKED_BAR_COMBO, HORIZONTAL_STACKED_BAR, PIE, LINE, AREA, BUBBLE});
    typeEditor.setAvailableIcons(new Icon[]{
            ImageUtil.getImageIcon("chart_bar"),
            ImageUtil.getImageIcon("chart_negative_bar"),
            ImageUtil.getImageIcon("chart_bar_combo"),
            ImageUtil.getImageIcon("chart_horizontal_bar"),
            ImageUtil.getImageIcon("chart_stacked_bar"),
            ImageUtil.getImageIcon("chart_stacked_bar_combo"),
            ImageUtil.getImageIcon("chart_horizontal_stacked_bar"),
            ImageUtil.getImageIcon("chart_pie"),
            ImageUtil.getImageIcon("chart_line"),
            ImageUtil.getImageIcon("chart_area"),
            ImageUtil.getImageIcon("chart_bubble")}); 
    JComboBox cb = (JComboBox)typeEditor.getCustomEditor();
    cb.setMaximumRowCount(11);
    ChartType chartType = chart.getType();
    byte type = ChartType.NONE;
    if (chartType != null) {
        type = chartType.getType();
    }
    setChartType(type, typeProp);
    typeProp.setCategory(I18NSupport.getString("property.category.main"));

    editorRegistry.registerEditor(typeProp, typeEditor);

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

示例8: getStyleProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getStyleProperty() {
    DefaultProperty styleProp = new DefaultProperty();
    styleProp.setName(CHART_STYLE);
    styleProp.setDisplayName(STYLE_PARAM_NAME);
    styleProp.setType(String.class);
    ComboBoxPropertyEditor styleEditor = new ComboBoxPropertyEditor();
    String[] availableValues = new String[]{STYLE_NORMAL};
    Object type = getTypeProperty().getValue();
    if (BAR.equals(type) || STACKED_BAR.equals(type) || HORIZONTAL_STACKED_BAR.equals(type)
    		|| BAR_COMBO.equals(type) || STACKED_BAR_COMBO.equals(type)) {
        availableValues = new String[]{STYLE_NORMAL, STYLE_BAR_GLASS, STYLE_BAR_CYLINDER,
                STYLE_BAR_PARALLELIPIPED, STYLE_BAR_DOME};
    } else if (NEGATIVE_BAR.equals(type)) {
    	availableValues = new String[]{STYLE_NORMAL, STYLE_BAR_GLASS};
    } else if (LINE.equals(type)) {
        availableValues = new String[]{STYLE_NORMAL, STYLE_LINE_DOT_SOLID, STYLE_LINE_DOT_HOLLOW,
                STYLE_LINE_DOT_ANCHOR, STYLE_LINE_DOT_BOW, STYLE_LINE_DOT_STAR};
    }
    styleEditor.setAvailableValues(availableValues);

    ChartType chartType = chart.getType();
    setStyle(chartType.getStyle(), styleProp);
    styleProp.setCategory(I18NSupport.getString("property.category.main"));

    editorRegistry.registerEditor(styleProp, styleEditor);

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

示例9: getTransparencyProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getTransparencyProperty() {
    DefaultProperty transparencyProp = new DefaultProperty();
    transparencyProp.setName(CHART_TRANSPARENCY);
    transparencyProp.setDisplayName(TRANSPARENCY_PARAM_NAME);
    transparencyProp.setType(String.class);
    ComboBoxPropertyEditor transparencyEditor = new ComboBoxPropertyEditor();
    String[] availableValues = new String[]{NONE_TRANSPARENCY, LOW_TRANSPARENCY, AVG_TRANSPARENCY, HIGH_TRANSPARENCY};
    transparencyEditor.setAvailableValues(availableValues);
    setTransparency(chart.getTransparency(), transparencyProp);
    transparencyProp.setCategory(I18NSupport.getString("property.category.main"));
    editorRegistry.registerEditor(transparencyProp, transparencyEditor);
    return transparencyProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:14,代码来源:ChartPropertyPanel.java

示例10: getStyleGridXProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getStyleGridXProperty() {
    DefaultProperty styleProp = new DefaultProperty();
    styleProp.setName(STYLE_GRID_X);
    styleProp.setDisplayName(STYLE_GRID_PARAM_NAME);
    styleProp.setType(String.class);
    ComboBoxPropertyEditor styleEditor = new ComboBoxPropertyEditor();
    String[] availableValues = new String[]{LINE_STYLE_LINE, LINE_STYLE_DOT, LINE_STYLE_DASH};
    styleEditor.setAvailableValues(availableValues);
    setGridStyle(chart.getStyleGridX(), styleProp);
    styleProp.setCategory(I18NSupport.getString("property.category.chart.xcolumn"));
    editorRegistry.registerEditor(styleProp, styleEditor);
    return styleProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:14,代码来源:ChartPropertyPanel.java

示例11: getStyleGridYProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getStyleGridYProperty() {
    DefaultProperty styleProp = new DefaultProperty();
    styleProp.setName(STYLE_GRID_Y);
    styleProp.setDisplayName(STYLE_GRID_PARAM_NAME);
    styleProp.setType(String.class);
    ComboBoxPropertyEditor styleEditor = new ComboBoxPropertyEditor();
    String[] availableValues = new String[]{LINE_STYLE_LINE, LINE_STYLE_DOT, LINE_STYLE_DASH};
    styleEditor.setAvailableValues(availableValues);
    setGridStyle(chart.getStyleGridY(), styleProp);
    styleProp.setCategory(I18NSupport.getString("property.category.chart.ycolumn"));
    editorRegistry.registerEditor(styleProp, styleEditor);
    return styleProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:14,代码来源:ChartPropertyPanel.java

示例12: getXLegendAlignmentProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getXLegendAlignmentProperty() {
    DefaultProperty alignmentProp = new DefaultProperty();
    alignmentProp.setName(X_LEGEND_ALIGNMENT);
    alignmentProp.setDisplayName(ALIGNMENT_PARAM_NAME);
    alignmentProp.setType(String.class);
    ComboBoxPropertyEditor alignmentEditor = new ComboBoxPropertyEditor();
    alignmentEditor.setAvailableValues(new String[]{LEFT, CENTER, RIGHT});
    byte alignment = chart.getXLegend().getAlignment();
    setAlignment(alignment, alignmentProp);
    alignmentProp.setCategory(I18NSupport.getString("property.category.chart.xcolumn"));
    editorRegistry.registerEditor(alignmentProp, alignmentEditor);
    return alignmentProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:14,代码来源:ChartPropertyPanel.java

示例13: getYLegendAlignmentProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getYLegendAlignmentProperty() {
    DefaultProperty alignmentProp = new DefaultProperty();
    alignmentProp.setName(Y_LEGEND_ALIGNMENT);
    alignmentProp.setDisplayName(ALIGNMENT_PARAM_NAME);
    alignmentProp.setType(String.class);
    ComboBoxPropertyEditor alignmentEditor = new ComboBoxPropertyEditor();
    alignmentEditor.setAvailableValues(new String[]{LEFT, CENTER, RIGHT});
    byte alignment = chart.getYLegend().getAlignment();
    setAlignment(alignment, alignmentProp);
    alignmentProp.setCategory(I18NSupport.getString("property.category.chart.ycolumn"));
    editorRegistry.registerEditor(alignmentProp, alignmentEditor);
    return alignmentProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:14,代码来源:ChartPropertyPanel.java

示例14: getPageFormatProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getPageFormatProperty(ReportLayout reportLayout) {
    DefaultProperty pageFormatProp = new DefaultProperty();
    pageFormatProp.setName(PAGE_FORMAT_NAME);
    pageFormatProp.setDisplayName(PAGE_FORMAT_PARAM_NAME);
    pageFormatProp.setType(String.class);
    ComboBoxPropertyEditor editor = new ComboBoxPropertyEditor();
    editor.setAvailableValues(ReportLayout.getPageFormats());
    pageFormatProp.setValue(reportLayout.getPageFormat());
    editorRegistry.registerEditor(pageFormatProp, editor);
    return pageFormatProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:12,代码来源:PropertyPanel.java

示例15: getOrientationProperty

import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor; //导入方法依赖的package包/类
private Property getOrientationProperty(ReportLayout reportLayout) {
    DefaultProperty orientationProp = new DefaultProperty();
    orientationProp.setName(ORIENTATION_NAME);
    orientationProp.setDisplayName(ORIENTATION_PARAM_NAME);
    orientationProp.setType(String.class);
    ComboBoxPropertyEditor editor = new ComboBoxPropertyEditor();
    editor.setAvailableValues(new String[] { PORTRAIT, LANDSCAPE });
    setOrientation(reportLayout.getOrientation(), orientationProp);
    editorRegistry.registerEditor(orientationProp, editor);
    return orientationProp;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:12,代码来源:PropertyPanel.java


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