Examples of Formatter


Examples of ar.rules.Legend.Formatter

      }


      @Override
      public Map select(Aggregates inAggs, Aggregates outAggs) {
        Formatter inner = decide(inAggs.defaultValue());
        return inner.select(inAggs, outAggs);
      }
View Full Code Here

Examples of cfml.formatting.Formatter

    formatprefs.setCloseTagsList(prefs.getCloseTagsList());
    CFMLPropertyManager props = new CFMLPropertyManager();
    formatprefs.setDictionaryDir(props.getDictionaryDir());
    formatprefs.setCFDictionary("ColdFusion9");

    fFormatter = new Formatter(formatprefs);
    String formatted = fFormatter.format(contents);
    return formatted;

  }
View Full Code Here

Examples of com.bazaarvoice.snitch.Formatter

    }

    @Test
    @SuppressWarnings("unchecked")
    public void testFormatterOverride() {
        Formatter formatter = mock(Formatter.class);
        _registry.registerFormatter(Object.class, (Formatter<Object>) formatter);
        assertEquals(formatter, _registry.getFormatter(Object.class));
    }
View Full Code Here

Examples of com.dci.intellij.dbn.common.locale.Formatter

        try {
            Locale locale = getSelectedLocale();
            DBDateFormat dateFormat = getSelectedDateFormat();
            DBNumberFormat numberFormat = getSelectedNumberFormat();
            boolean customSettings = customPatternsRadioButton.isSelected();
            Formatter formatter = null;
            if (customSettings) {
                try {
                    formatter = new Formatter(
                            locale,
                            customDateFormatTextField.getText(),
                            customTimeFormatTextField.getText(),
                            customNumberFormatTextField.getText());
                    errorLabel.setVisible(false);
                } catch (Exception e) {
                    errorLabel.setText("Invalid pattern: " + e.getMessage());
                    errorLabel.setIcon(Icons.STMT_EXECUTION_ERROR);
                    errorLabel.setVisible(true);
                }
            } else {
                formatter = new Formatter(locale, dateFormat, numberFormat);
                customNumberFormatTextField.setText(formatter.getNumberFormatPattern());
                customDateFormatTextField.setText(formatter.getDateFormatPattern());
                customTimeFormatTextField.setText(formatter.getTimeFormatPattern());
            }

            if (formatter != null) {
                datePreviewLabel.setText(formatter.formatDate(previewDate));
                timePreviewLabel.setText(formatter.formatTime(previewDate));
                numberPreviewLabel.setText(formatter.formatNumber(previewNumber));
                integerPreviewLabel.setText(formatter.formatInteger(previewNumber));
            }

            shortRadioButton.setEnabled(!customSettings);
            mediumRadioButton.setEnabled(!customSettings);
            longRadioButton.setEnabled(!customSettings);
View Full Code Here

Examples of com.dyuproject.protostuff.parser.Formatter

     * If the formatter with the name does not exist, the input string will be
     * appended with the formatName.
     */
    public static String format(String str, String formatName)
    {
        final Formatter formatter = DEFAULT_FORMATTERS.get(formatName);
        if(formatter != null)
            return formatter.format(str);
       
        // regex replace
        int eq = formatName.indexOf("==");
        if(eq > 0)
        {
View Full Code Here

Examples of com.jada.content.Formatter

          break;
        }
      }
    }
    siteDomainParamBean = SiteDomainDAO.getSiteDomainParamBean(siteDomain.getSiteDomainLanguage(), siteDomainLanguage);
    formatter = new Formatter(siteProfile, siteCurrency);
    currencyConverter = new CurrencyConverter(siteCurrency);
    if (ContentLookupDispatchAction.isCustomerSession(request)) {
      custId = ContentLookupDispatchAction.getCustId(request);
    }
    dataApi = DataApi.getInstance();
View Full Code Here

Examples of com.sun.appserv.management.util.misc.Formatter

    public LBConfigHelper(final DomainRoot domainRoot) {
        mDomainConfig = domainRoot.getDomainConfig();
        mDomainRoot = domainRoot;
        mLogger = Logger.getLogger(domainRoot.getMBeanLoggerName());
        resBundle = ResourceBundle.getBundle(this.getClass().getPackage().getName()+".LocalStrings");
        formatter = new Formatter(new StringSourceBase());
    }
View Full Code Here

Examples of de.willuhn.jameica.gui.formatter.Formatter

    super(konten,action);

    this.i18n = Application.getPluginLoader().getPlugin(HBCI.class).getResources().getI18N();

    addColumn(i18n.tr("Kontonummer"),"kontonummer",null,false,Column.ALIGN_RIGHT);
    addColumn(i18n.tr("Bankleitzahl"),"blz", new Formatter() {
      public String format(Object o)
      {
        if (o == null)
          return null;
        try
        {
          String blz = o.toString();
          String name = HBCIProperties.getNameForBank(blz);
          if (name == null || name.length() == 0)
            return blz;
          return blz + " [" + name + "]";
        }
        catch (Exception e)
        {
          Logger.error("error while formatting blz",e);
          return o.toString();
        }
      }
    });
    addColumn(i18n.tr("Bezeichnung"),"bezeichnung");
    addColumn(i18n.tr("Gruppe"),"kategorie");
    addColumn(i18n.tr("Notiz"),"kommentar");
    addColumn(i18n.tr("HBCI-Medium"),"passport_class", new Formatter() {
      public String format(Object o)
      {
        if (o == null || !(o instanceof String))
          return null;
        Passport p;
View Full Code Here

Examples of gherkin.formatter.Formatter

    }

    public String transform(String storyAsText) {
      final StringBuffer out = new StringBuffer();

      Formatter formatter = new Formatter(){
        public void uri(String uri) {
          out.append(uri).append("\n");
        }

        public void feature(Feature feature) {
View Full Code Here

Examples of java.util.Formatter

        private final String className;
        private boolean dynamicAware;

        private ClassBuilderImpl(Class<T> type) {
            className = type.getSimpleName() + "_Generated";
            src = new Formatter();
            this.type = type;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.