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


Java Localized类代码示例

本文整理汇总了Java中it.albertus.util.Localized的典型用法代码示例。如果您正苦于以下问题:Java Localized类的具体用法?Java Localized怎么用?Java Localized使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: getLanguageComboOptions

import it.albertus.util.Localized; //导入依赖的package包/类
public static LocalizedLabelsAndValues getLanguageComboOptions() {
	final Language[] values = Messages.Language.values();
	final LocalizedLabelsAndValues options = new LocalizedLabelsAndValues(values.length);
	for (final Language language : values) {
		final Locale locale = language.getLocale();
		final String value = locale.getLanguage();
		final Localized name = new Localized() {
			@Override
			public String getString() {
				return locale.getDisplayLanguage(locale);
			}
		};
		options.add(name, value);
	}
	return options;
}
 
开发者ID:Albertus82,项目名称:RouterLogger,代码行数:17,代码来源:GeneralPreferencePage.java

示例2: updateTexts

import it.albertus.util.Localized; //导入依赖的package包/类
public void updateTexts() {
	final Table table = tableViewer.getTable();
	for (final Entry<Integer, Localized> e : labelsMap.entrySet()) {
		table.getColumn(e.getKey()).setText(e.getValue().getString());
	}
	contextMenu.updateTexts();
}
 
开发者ID:Albertus82,项目名称:EarthquakeBulletin,代码行数:8,代码来源:ResultsTable.java

示例3: getSeparatorComboOptions

import it.albertus.util.Localized; //导入依赖的package包/类
public static LocalizedLabelsAndValues getSeparatorComboOptions() {
	final Separator[] values = Separator.values();
	final LocalizedLabelsAndValues options = new LocalizedLabelsAndValues(values.length);
	for (final Separator separator : values) {
		final String value = separator.value;
		final Localized name = new Localized() {
			@Override
			public String getString() {
				return Messages.get(separator.resourceKey);
			}
		};
		options.add(name, value);
	}
	return options;
}
 
开发者ID:Albertus82,项目名称:RouterLogger,代码行数:16,代码来源:CsvPreferencePage.java

示例4: getReaderComboOptions

import it.albertus.util.Localized; //导入依赖的package包/类
public static LocalizedLabelsAndValues getReaderComboOptions() {
	final ReaderComboData[] values = ReaderComboData.values();
	final LocalizedLabelsAndValues options = new LocalizedLabelsAndValues(values.length);
	for (final ReaderComboData comboData : values) {
		final String value = comboData.readerClass.getSimpleName();
		final Localized name = new Localized() {
			@Override
			public String getString() {
				return Messages.get(comboData.resourceKey);
			}
		};
		options.add(name, value);
	}
	return options;
}
 
开发者ID:Albertus82,项目名称:RouterLogger,代码行数:16,代码来源:ReaderPreferencePage.java

示例5: getMqttQosComboOptions

import it.albertus.util.Localized; //导入依赖的package包/类
public static LocalizedLabelsAndValues getMqttQosComboOptions() {
	final MqttQos[] values = MqttQos.values();
	final LocalizedLabelsAndValues options = new LocalizedLabelsAndValues(values.length);
	for (final MqttQos qos : values) {
		final byte value = qos.getValue();
		final Localized name = new Localized() {
			@Override
			public String getString() {
				return qos.getDescription();
			}
		};
		options.add(name, value);
	}
	return options;
}
 
开发者ID:Albertus82,项目名称:RouterLogger,代码行数:16,代码来源:MqttPreferencePage.java

示例6: getWriterComboOptions

import it.albertus.util.Localized; //导入依赖的package包/类
public static LocalizedLabelsAndValues getWriterComboOptions() {
	final WriterComboData[] values = WriterComboData.values();
	final LocalizedLabelsAndValues options = new LocalizedLabelsAndValues(values.length);
	for (final WriterComboData comboData : values) {
		final String value = comboData.writerClass.getSimpleName();
		final Localized name = new Localized() {
			@Override
			public String getString() {
				return Messages.get(comboData.resourceKey);
			}
		};
		options.add(name, value);
	}
	return options;
}
 
开发者ID:Albertus82,项目名称:RouterLogger,代码行数:16,代码来源:WriterPreferencePage.java

示例7: ControlValidatorDecoration

import it.albertus.util.Localized; //导入依赖的package包/类
public ControlValidatorDecoration(final ControlValidator<?> validator, final String message) {
	this(validator, new Localized() {
		@Override
		public String getString() {
			return message;
		}
	});
}
 
开发者ID:Albertus82,项目名称:JFaceUtils,代码行数:9,代码来源:ControlValidatorDecoration.java

示例8: directoryDialogMessage

import it.albertus.util.Localized; //导入依赖的package包/类
public FieldEditorDetailsBuilder directoryDialogMessage(final String dialogMessage) {
	this.directoryDialogMessage = new Localized() {
		@Override
		public String getString() {
			return dialogMessage;
		}
	};
	return this;
}
 
开发者ID:Albertus82,项目名称:JFaceUtils,代码行数:10,代码来源:FieldEditorDetails.java

示例9: SearchFormControlValidatorDecoration

import it.albertus.util.Localized; //导入依赖的package包/类
public SearchFormControlValidatorDecoration(final ControlValidator<?> validator, final Localized message) {
	super(validator, message);
}
 
开发者ID:Albertus82,项目名称:EarthquakeBulletin,代码行数:4,代码来源:SearchFormControlValidatorDecoration.java


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