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


Java Property.setValue方法代码示例

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


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

示例1: propertyChange

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
public void propertyChange(PropertyChangeEvent evt)
{
	if(!(evt.getSource() instanceof Property)) return;
	Property prop = (Property) evt.getSource();
	try
	{
		prop.writeToObject(getPainter());
	}
	catch (RuntimeException e)
	{
		if (e.getCause() instanceof PropertyVetoException)
		{
			UIManager.getLookAndFeel().provideErrorFeedback(
					PainterPropsPanel.this);
			prop.setValue(evt.getOldValue());
		}
	}
}
 
开发者ID:hypergraphdb,项目名称:viewer,代码行数:19,代码来源:PainterPropsPanel.java

示例2: adjustYColumns

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
private void adjustYColumns(Property prop, int index) {
    String propValue = (String) prop.getValue();
    List<String> columns = chart.getYColumns();
    if (columns.size() > index) {
        columns.set(index, propValue);
    } else if (index > columns.size()) {
        prop.setValue(null);
        return;
    } else {
        columns.add(index, propValue);
    }

    // if already a numeric function is selected we do not allow for non-numeric columns
    // for first column (index == 0) the function is modified to COUNT
    if (index > 0) {
        if (Globals.getChartLayoutPanel().getMarked(propValue) &&
                !FunctionFactory.isCountFunction(chart.getYFunction())) {
            prop.setValue(null);
            Show.info(I18NSupport.getString("chart.undefined.ycolumn.type"));
            return;
        }
    }

    chart.setYColumns(columns);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:26,代码来源:ChartPropertyPanel.java

示例3: setXOrientation

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
private void setXOrientation(byte orientation, Property styleProp) {
    String orientationS;
    switch (orientation) {
        case Chart.VERTICAL:
            orientationS = ORIENTATION_VERTICAL;
            break;
        case Chart.DIAGONAL:
            orientationS = ORIENTATION_DIAGONAL;
            break;
        case Chart.HALF_DIAGONAL:
            orientationS = ORIENTATION_HALF_DIAGONAL;
            break;
        default:
            orientationS = ORIENTATION_HORIZONTAL;
            break;
    }
    styleProp.setValue(orientationS);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:19,代码来源:ChartPropertyPanel.java

示例4: setTransparency

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
private void setTransparency(byte transparency, Property transparencyProp) {
    String transparencyS;
    switch (transparency) {
        case Chart.LOW_TRANSPARENCY:
            transparencyS = LOW_TRANSPARENCY;
            break;
        case Chart.AVG_TRANSPARENCY:
            transparencyS = AVG_TRANSPARENCY;
            break;
        case Chart.HIGH_TRANSPARENCY:
            transparencyS = HIGH_TRANSPARENCY;
            break;
        default:
            transparencyS = NONE_TRANSPARENCY;
            break;
    }
    transparencyProp.setValue(transparencyS);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:19,代码来源:ChartPropertyPanel.java

示例5: setGridStyle

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
private void setGridStyle(byte style, Property styleProp) {
    String styleS;
    switch (style) {
        case Chart.LINE_STYLE_DOT:
            styleS = LINE_STYLE_DOT;
            break;
        case Chart.LINE_STYLE_DASH:
            styleS = LINE_STYLE_DASH;
            break;
        case Chart.LINE_STYLE_LINE:
        default:            
            styleS = LINE_STYLE_LINE;
            break;
    }
    styleProp.setValue(styleS);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:17,代码来源:ChartPropertyPanel.java

示例6: setAlignment

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
private void setAlignment(byte alignment, Property alignmentprop) {
    String alignmentS;
    switch (alignment) {
        case ChartTitle.CENTRAL_ALIGNMENT:
            alignmentS = CENTER;
            break;
        case ChartTitle.RIGHT_ALIGNMENT:
            alignmentS = RIGHT;
            break;
        case ChartTitle.LEFT_ALIGNMENT:
            alignmentS = LEFT;
            break;
        default:
            alignmentS = CENTER;
            break;
    }
    alignmentprop.setValue(alignmentS);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:19,代码来源:ChartPropertyPanel.java

示例7: setReportType

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
private void setReportType(int type, Property typeProp) {
    String typeS;
    switch (type) {
        case ResultExporter.ALARM_TYPE:
        	typeS = ALARM_TYPE;
            break;
        case ResultExporter.TABLE_TYPE:
        	typeS = TABLE_TYPE;
            break;
        case ResultExporter.INDICATOR_TYPE:
        	typeS = INDICATOR_TYPE;
            break;    
        case ResultExporter.DISPLAY_TYPE:
        	typeS = DISPLAY_TYPE;
            break;        
        default:
        	typeS = DEFAULT_TYPE;
            break;
    }
    typeProp.setValue(typeS);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:22,代码来源:PropertyPanel.java

示例8: onPropertyChange

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
@Override
public void onPropertyChange(DefaultBeanBinder binder, PropertyChangeEvent event, Object object) {
  Property prop = (Property) event.getSource();
  try {
    ForgE.log(TAG, "Revert from " + event.getNewValue() + " to " + event.getOldValue()+ " for " + object);
    prop.setValue(event.getNewValue());
    prop.writeToObject(object);
  } catch (Exception e) {
    e.printStackTrace();
  }
}
 
开发者ID:macbury,项目名称:ForgE,代码行数:12,代码来源:TerrainToolsController.java

示例9: adjustYColumnsLegends

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
private void adjustYColumnsLegends(Property prop, int index) {
    String propValue = (String) prop.getValue();
    List<String> legends = chart.getYColumnsLegends();
    if (legends.size() > index) {
        legends.set(index, propValue);
    } else if (index > legends.size()) {
        prop.setValue(null);
        return;
    } else {
        legends.add(index, propValue);
    }
    chart.setYColumnsLegends(legends);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:14,代码来源:ChartPropertyPanel.java

示例10: setStyle

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
private void setStyle(byte style, Property styleProp) {
    String styleS;
    switch (style) {
        case ChartType.STYLE_BAR_GLASS:
            styleS = STYLE_BAR_GLASS;
            break;
        case ChartType.STYLE_BAR_CYLINDER:
            styleS = STYLE_BAR_CYLINDER;
            break;
        case ChartType.STYLE_BAR_PARALLELIPIPED:
            styleS = STYLE_BAR_PARALLELIPIPED;
            break;
        case ChartType.STYLE_BAR_DOME:
            styleS = STYLE_BAR_DOME;
            break;
        case ChartType.STYLE_LINE_DOT_SOLID:
            styleS = STYLE_LINE_DOT_SOLID;
            break;
        case ChartType.STYLE_LINE_DOT_HOLLOW:
            styleS = STYLE_LINE_DOT_HOLLOW;
            break;
        case ChartType.STYLE_LINE_DOT_ANCHOR:
            styleS = STYLE_LINE_DOT_ANCHOR;
            break;
        case ChartType.STYLE_LINE_DOT_BOW:
            styleS = STYLE_LINE_DOT_BOW;
            break;
        case ChartType.STYLE_LINE_DOT_STAR:
            styleS = STYLE_LINE_DOT_STAR;
            break;
        default:
            styleS = STYLE_NORMAL;
            break;
    }
    styleProp.setValue(styleS);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:37,代码来源:ChartPropertyPanel.java

示例11: setOrientation

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
private void setOrientation(int orientation, Property orientationProp) {
    String orientationS;
    switch (orientation) {
        case ResultExporter.LANDSCAPE:
            orientationS = LANDSCAPE;
            break;
        default:
            orientationS = PORTRAIT;
            break;
    }
    orientationProp.setValue(orientationS);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:13,代码来源:PropertyPanel.java

示例12: setChartType

import com.l2fprod.common.propertysheet.Property; //导入方法依赖的package包/类
private void setChartType(byte type, Property typeProp) {
    String typeS;
    switch (type) {
        case ChartType.BAR:
            typeS = BAR;
            break;
        case ChartType.NEGATIVE_BAR:
            typeS = NEGATIVE_BAR;
            break;    
        case ChartType.BAR_COMBO:
            typeS = BAR_COMBO;
            break;    
        case ChartType.HORIZONTAL_BAR:
            typeS = HORIZONTAL_BAR;
            break;
        case ChartType.STACKED_BAR:
            typeS = STACKED_BAR;
            break;
        case ChartType.STACKED_BAR_COMBO:
            typeS = STACKED_BAR_COMBO;
            break;    
        case ChartType.HORIZONTAL_STACKED_BAR:
            typeS = HORIZONTAL_STACKED_BAR;
            break;    
        case ChartType.PIE:
            typeS = PIE;
            break;
        case ChartType.LINE:
            typeS = LINE;
            break;
        case ChartType.AREA:
            typeS = AREA;
            break;
        case ChartType.BUBBLE:
            typeS = BUBBLE;
            break;    
        default:
            typeS = null;
            break;
    }
    typeProp.setValue(typeS);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:43,代码来源:ChartPropertyPanel.java


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