Java Month toAnotherMonthColor(String value, String type)

Here you can find the source of toAnotherMonthColor(String value, String type)

Description

to Another Month Color

License

Open Source License

Declaration

public static String toAnotherMonthColor(String value, String type) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final String ANSI_RESET = "\u001B[0m";
    public static final String ANSI_YELLOW = "\u001B[33m";
    public static final String WEB_VIEW = "web";
    public static final String CONSOLE_VIEW = "console";

    public static String toAnotherMonthColor(String value, String type) {
        if (type.equals(WEB_VIEW))
            return "<td class=\"anotherMonthColor\">" + value + "</td>";
        else if (type.equals(CONSOLE_VIEW))
            return ANSI_YELLOW + value + ANSI_RESET;
        else// w  w  w.  j a va 2  s. c o  m
            return value;
    }
}

Related

  1. returnMonth(String month)
  2. roundMonthUnits(final int defaultUnitValue)
  3. setStatis_month(String year_month)
  4. startDaemonThread(Runnable runnable)
  5. stringToMonth(String m)
  6. toCalendarMonth(int month)
  7. toMonths(int years, int months)
  8. validateMonth(int month)
  9. yyyymm2month(String yyyymm)