aboutsummaryrefslogtreecommitdiffstats
path: root/tests/static/resizable/default.html
blob: 69ea6bf733f748592b8178d5ba09b1a7470ebf63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Resizable Static Test : Default</title>
	<link rel="stylesheet" href="../static.css" type="text/css" />
	<link rel="stylesheet" href="../../../themes/base/jquery.ui.base.css" type="text/css" />
	<link rel="stylesheet" href="../../../themes/base/jquery.ui.theme.css" type="text/css" title="ui-theme" />
	<script type="text/javascript" src="../../../jquery-1.4.4.js"></script>
	<script type="text/javascript" src="../static.js"></script>
</head>
<body>

<div class="ui-resizable">
	<p>
		Resizable
	</p>
	<div class="ui-resizable-handle ui-resizable-e"></div>
	<div class="ui-resizable-handle ui-resizable-s"></div>
	<div class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se"></div>
</div>

</body>
</html>
ckground-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
package com.itmill.toolkit.tests.featurebrowser;

import java.text.SimpleDateFormat;
import java.util.Date;

public class FeatureUtil {

    private static boolean statistics = false;

    public static final SimpleDateFormat format = new SimpleDateFormat(
            "yyyyMMdd HHmmss");

    public static void debug(String userIdentity, String msg) {
        if (statistics) {
            System.out.println("[" + userIdentity + "] " + msg);
        }
    }

    public static String getTimestamp() {
        if (statistics) {
            try {
                return format.format(new Date());
            } catch (Exception e) {
                // ignored, should never happen
            }
        }
        return "";
    }

    public static void setStatistics(boolean statistics) {
        FeatureUtil.statistics = statistics;
    }
}