本文整理汇总了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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
});
}
示例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;
}
示例9: SearchFormControlValidatorDecoration
import it.albertus.util.Localized; //导入依赖的package包/类
public SearchFormControlValidatorDecoration(final ControlValidator<?> validator, final Localized message) {
super(validator, message);
}