org.arakhne.afc.vmutil.locale.Locale.getString()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(8.3k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中org.arakhne.afc.vmutil.locale.Locale.getString()方法的一些代码示例,展示了Locale.getString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Locale.getString()方法的具体详情如下:
包路径:org.arakhne.afc.vmutil.locale.Locale
类名称:Locale
方法名:getString

Locale.getString介绍

暂无

代码示例

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public INIFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(INIFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_INI);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public PDFFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(PDFFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_PDF);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public GXLFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(GXLFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_GXL);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public JPEGFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(JPEGFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_JPG, EXTENSION_JPEG, EXTENSION_JPE);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public D3DSFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(D3DSFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_3DS);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public GIFFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(GIFFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_GIF);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public GraphMLFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(GraphMLFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_GRAPHML, EXTENSION_GRL);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public PNGFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(PNGFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_PNG);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public JARFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(JARFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_JAR);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public DOTFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(DOTFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_DOT);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public JAVAFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(JAVAFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_JAVA);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public NGRFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(NGRFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_NGR, EXTENSION_NED);
  12. }

代码示例来源:origin: org.arakhne.afc.core/inputoutput

  1. /** Constructor.
  2. * @param acceptDirectories is <code>true</code> to
  3. * permit to this file filter to accept directories;
  4. * <code>false</code> if the directories should not
  5. * match.
  6. */
  7. public CSVFileFilter(boolean acceptDirectories) {
  8. super(
  9. acceptDirectories,
  10. Locale.getString(CSVFileFilter.class, "FILE_FILTER_NAME"), //$NON-NLS-1$
  11. EXTENSION_CSV);
  12. }

代码示例来源:origin: org.arakhne.afc.ui/vector

  1. /** Replies the current drawing context.
  2. *
  3. * @return the current drawing context, never <code>null</code>.
  4. */
  5. public VectorGraphics2D getCurrentDrawingContext() {
  6. VectorGraphics2D g = this.currentContext;
  7. if (g==null) {
  8. throw new IllegalStateException(
  9. Locale.getString("NO_PRE_DRAWING")); //$NON-NLS-1$
  10. }
  11. return g;
  12. }

代码示例来源:origin: org.arakhne.afc.core/mathgeom

  1. private void ensureSlots(boolean needMove, int nbSlots) {
  2. if (needMove && this.numTypes == 0) {
  3. throw new IllegalStateException(Locale.getString("E1")); //$NON-NLS-1$
  4. }
  5. if (this.types.length == this.numTypes) {
  6. this.types = Arrays.copyOf(this.types, this.types.length + GROW_SIZE);
  7. }
  8. while ((this.numCoords + nbSlots) >= this.coords.length) {
  9. this.coords = Arrays.copyOf(this.coords, this.coords.length + GROW_SIZE);
  10. }
  11. }

代码示例来源:origin: org.arakhne.afc.core/mathgeom

  1. private void ensureSlots(boolean needMove, int nbSlots) {
  2. if (needMove && this.numTypes == 0) {
  3. throw new IllegalStateException(Locale.getString("E1")); //$NON-NLS-1$
  4. }
  5. if (this.types.length == this.numTypes) {
  6. this.types = Arrays.copyOf(this.types, this.types.length + GROW_SIZE);
  7. }
  8. while ((this.numCoords + nbSlots) >= this.coords.length) {
  9. this.coords = Arrays.copyOf(this.coords, this.coords.length + GROW_SIZE);
  10. }
  11. }

代码示例来源:origin: org.arakhne.afc.core/mathgeom

  1. private void ensureSlots(boolean needMove, int nbSlots) {
  2. if (needMove && this.numTypes == 0) {
  3. throw new IllegalStateException(Locale.getString("E1")); //$NON-NLS-1$
  4. }
  5. if (this.types.length == this.numTypes) {
  6. this.types = Arrays.copyOf(this.types, this.types.length + GROW_SIZE);
  7. }
  8. while ((this.numCoords + nbSlots) >= this.coords.length) {
  9. this.coords = Arrays.copyOf(this.coords, this.coords.length + GROW_SIZE);
  10. }
  11. }

代码示例来源:origin: org.arakhne.afc.core/mathgeom

  1. private void ensureSlots(boolean needMove, int nbSlots) {
  2. if (needMove && this.numTypes == 0) {
  3. throw new IllegalStateException(Locale.getString("E1")); //$NON-NLS-1$
  4. }
  5. if (this.types.length == this.numTypes) {
  6. this.types = Arrays.copyOf(this.types, this.types.length + GROW_SIZE);
  7. }
  8. while ((this.numCoords + nbSlots) >= this.coords.length) {
  9. this.coords = Arrays.copyOf(this.coords, this.coords.length + GROW_SIZE);
  10. }
  11. }

代码示例来源:origin: org.arakhne.afc.ui/base

  1. @Override
  2. public synchronized String getUndoPresentationName() {
  3. if (canUndo())
  4. return Locale.getString("UNDO", this.undoes.getLast().getPresentationName()); //$NON-NLS-1$
  5. return Locale.getString("NO_UNDO"); //$NON-NLS-1$
  6. }

代码示例来源:origin: org.arakhne.afc.bootique/bootique-log4j

  1. @Override
  2. protected void configure() {
  3. // Binding a dummy class to trigger eager init of Log4j as
  4. // @Provides below can not be invoked eagerly.
  5. binder().bind(LogInitTrigger.class).asEagerSingleton();
  6. VariableDecls.extend(binder()).declareVar(LEVEL);
  7. extend(binder()).addOption(OptionMetadata.builder(
  8. "log", //$NON-NLS-1$
  9. Locale.getString("LOG_OPT", Level.getLabels())) //$NON-NLS-1$
  10. .configPath(LEVEL)
  11. .valueRequired(Locale.getString("LEVEL")) //$NON-NLS-1$
  12. .build());
  13. }

相关文章

Locale类方法