本文整理汇总了Java中com.l2fprod.common.propertysheet.DefaultProperty.setName方法的典型用法代码示例。如果您正苦于以下问题:Java DefaultProperty.setName方法的具体用法?Java DefaultProperty.setName怎么用?Java DefaultProperty.setName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.l2fprod.common.propertysheet.DefaultProperty
的用法示例。
在下文中一共展示了DefaultProperty.setName方法的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);
}
示例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);
}
示例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);
}
示例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;
}
示例5: 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);
}
示例6: getSeparatorProperty
import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getSeparatorProperty() {
DefaultProperty prop = new DefaultProperty();
prop.setName(SEPARATOR_NAME);
prop.setDisplayName(SEPARATOR_PARAM_NAME);
prop.setType(String.class);
String s = (String)properties.get(SEPARATOR_NAME);
if (s == null) {
s = ",";
}
prop.setValue(s);
return prop;
}
示例7: getFileExtensionProperty
import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getFileExtensionProperty() {
DefaultProperty prop = new DefaultProperty();
prop.setName(FILE_EXTENSION_NAME);
prop.setDisplayName(FILE_EXTENSION_PARAM_NAME);
prop.setType(String.class);
String s = (String)properties.get(FILE_EXTENSION_NAME);
if (s == null) {
s = ".csv";
}
prop.setValue(s);
return prop;
}
示例8: getVerticalAlignmentProperty
import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的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 = getUniqueVAllignment();
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);
}
if (Globals.getAccessibilityHtml()) {
alignmentProp.setCategory(I18NSupport.getString("property.category.main"));
}
editorRegistry.registerEditor(alignmentProp, alignmentEditor);
return alignmentProp;
}
示例9: getHtmlAccHeadersProperty
import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getHtmlAccHeadersProperty() {
DefaultProperty accHeaders = new DefaultProperty();
accHeaders.setName(HTML_ACC_HEADERS);
accHeaders.setDisplayName(HTML_ACC_HEADERS);
accHeaders.setType(String.class);
accHeaders.setValue(getUniqueHtmlAccHeaders());
if (Globals.getAccessibilityHtml()) {
accHeaders.setCategory(I18NSupport.getString("property.category.accessibility.html"));
}
return accHeaders;
}
示例10: getBackgroundImageProperty
import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getBackgroundImageProperty(ReportLayout reportLayout) {
DefaultProperty imageProp = new DefaultProperty();
imageProp.setName(BG_IMAGE_NAME);
imageProp.setDisplayName(BG_IMAGE_PARAM_NAME);
imageProp.setType(String.class);
imageProp.setValue(reportLayout.getBackgroundImage());
ImagePropertyEditor imageEditor = new ImagePropertyEditor();
editorRegistry.registerEditor(imageProp, imageEditor);
return imageProp;
}
示例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;
}
示例12: getLineSpaceProperty
import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getLineSpaceProperty() {
DefaultProperty lineSpaceProp = new DefaultProperty();
lineSpaceProp.setName(LINE_SPACING_PARAM_NAME);
lineSpaceProp.setDisplayName(LINE_SPACING_PARAM_NAME);
lineSpaceProp.setType(Integer.class);
lineSpaceProp.setValue(getUniquePercentLineSpacing());
if (Globals.getAccessibilityHtml()) {
lineSpaceProp.setCategory(I18NSupport.getString("property.category.main"));
}
return lineSpaceProp;
}
示例13: getXGridColorProperty
import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getXGridColorProperty() {
DefaultProperty textProp = new DefaultProperty();
textProp.setName(X_GRID_COLOR);
textProp.setDisplayName(GRID_COLOR_PARAM_NAME);
textProp.setType(Color.class);
textProp.setValue(chart.getXGridColor());
textProp.setCategory(I18NSupport.getString("property.category.chart.xcolumn"));
ExtendedColorPropertyEditor colorEditor = new ExtendedColorPropertyEditor();
editorRegistry.registerEditor(textProp, colorEditor);
return textProp;
}
示例14: getForReportSqlProperty
import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的package包/类
private Property getForReportSqlProperty() {
DefaultProperty queryProp = new DefaultProperty();
queryProp.setName(FOR_REPORT_PARAM_NAME);
queryProp.setDisplayName(FOR_REPORT_PARAM_NAME);
queryProp.setType(String.class);
queryProp.setValue(getUniqueForReportSql());
if (Globals.getAccessibilityHtml()) {
queryProp.setCategory(I18NSupport.getString("property.category.main"));
}
SqlPropertyEditor sqlEditor = new SqlPropertyEditor();
editorRegistry.registerEditor(queryProp, sqlEditor);
return queryProp;
}
示例15: getTitleAlignmentProperty
import com.l2fprod.common.propertysheet.DefaultProperty; //导入方法依赖的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;
}