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

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

本文整理了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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/** Replies the current drawing context.
 * 
 * @return the current drawing context, never <code>null</code>.
 */
public VectorGraphics2D getCurrentDrawingContext() {
  VectorGraphics2D g = this.currentContext;
  if (g==null) {
    throw new IllegalStateException(
        Locale.getString("NO_PRE_DRAWING"));  //$NON-NLS-1$
  }
  return g;
}

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

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

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

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

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

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

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

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

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

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

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

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

相关文章

微信公众号

最新文章

更多

Locale类方法