Examples of FormatCallback


Examples of org.jboss.forge.shell.util.FormatCallback

         {
            attr = GeneralUtils.calculateOutputAttributs(entry.getValue(), shell, attr);
         }
      }

      FormatCallback formatCallback = new FormatCallback()
      {
         @Override
         public String format(final int column, final String value)
         {
            return value.endsWith("*") ? pipeOut.renderColor(ShellColor.BOLD, value) : value;
View Full Code Here

Examples of org.jboss.forge.shell.util.FormatCallback

       * print the results.
       */

      if (list)
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if ((column == 7) && value.endsWith("/"))
               {
                  return shell.renderColor(ShellColor.BLUE, value);
               }
               else
               {
                  return value;
               }
            }
         };

         printOutTables(
                  listBuild,
                  new boolean[] { false, false, false, true, false, false, true, false },
                  out,
                  formatCallback);
      }
      else
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if (value.endsWith("/"))
View Full Code Here

Examples of org.jboss.forge.shell.util.FormatCallback

         {
            attr = GeneralUtils.calculateOutputAttributs(entry.getValue(), shell, attr);
         }
      }

      FormatCallback formatCallback = new FormatCallback()
      {
         @Override
         public String format(final int column, final String value)
         {
            return value.endsWith("*") ? pipeOut.renderColor(ShellColor.BOLD, value) : value;
View Full Code Here

Examples of org.jboss.forge.shell.util.FormatCallback

       * print the results.
       */

      if (list)
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if ((column == 7) && value.endsWith("/"))
               {
                  return shell.renderColor(ShellColor.BLUE, value);
               }
               else
               {
                  return value;
               }
            }
         };

         try
         {
            shell.bufferingMode();
            printOutTables(
                     listBuild,
                     new boolean[]{false, false, false, true, false, false, true, false},
                     out,
                     formatCallback);
         }
         finally
         {
            shell.directWriteMode();
         }
      }
      else
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if (value.endsWith("/"))
View Full Code Here

Examples of org.jboss.forge.shell.util.FormatCallback

         {
            attr = GeneralUtils.calculateOutputAttributs(entry.getValue(), shell, attr);
         }
      }

      FormatCallback formatCallback = new FormatCallback()
      {
         @Override
         public String format(final int column, final String value)
         {
            return value.endsWith("*") ? pipeOut.renderColor(ShellColor.BOLD, value) : value;
View Full Code Here

Examples of org.jboss.forge.shell.util.FormatCallback

         {
            attr = GeneralUtils.calculateOutputAttributs(entry.getValue(), shell, attr);
         }
      }

      FormatCallback formatCallback = new FormatCallback()
      {
         @Override
         public String format(final int column, final String value)
         {
            return value.endsWith("*") ? pipeOut.renderColor(ShellColor.BOLD, value) : value;
View Full Code Here

Examples of org.jboss.forge.shell.util.FormatCallback

       * print the results.
       */

      if (list)
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if ((column == 7) && value.endsWith("/"))
               {
                  return shell.renderColor(ShellColor.BLUE, value);
               }
               else
               {
                  return value;
               }
            }
         };

         try
         {
            shell.bufferingMode();
            printOutTables(
                     listBuild,
                     new boolean[] { false, false, false, true, false, false, true, false },
                     out,
                     formatCallback);
         }
         finally
         {
            shell.directWriteMode();
         }
      }
      else
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if (value.endsWith("/"))
View Full Code Here

Examples of uk.gov.nationalarchives.droid.signature.FormatCallback

        SignatureParser sigParser = new SaxSignatureFileParser(signatureFileUri);

        // Dummy format for 'no id'
        profileDao.saveFormat(Format.NULL);

        FormatCallback callback = new FormatCallback() {
            @Override
            public void onFormat(Format format) {
                profileDao.saveFormat(format);
            }
        };
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.