本文整理汇总了Java中net.sf.memoranda.Task.PRIORITY_LOW属性的典型用法代码示例。如果您正苦于以下问题:Java Task.PRIORITY_LOW属性的具体用法?Java Task.PRIORITY_LOW怎么用?Java Task.PRIORITY_LOW使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类net.sf.memoranda.Task
的用法示例。
在下文中一共展示了Task.PRIORITY_LOW属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPriorityIcon
public static ImageIcon getPriorityIcon(Task t) {
switch (t.getPriority()) {
case Task.PRIORITY_NORMAL:
return PR_NORMAL_ICON;
case Task.PRIORITY_HIGHEST:
return PR_HIGHEST_ICON;
case Task.PRIORITY_HIGH:
return PR_HIGH_ICON;
case Task.PRIORITY_LOW:
return PR_LOW_ICON;
case Task.PRIORITY_LOWEST:
return PR_LOWEST_ICON;
}
System.err.println("Problem finding priority icon");
return null;
}
示例2: getPriorityString
static String getPriorityString(int p) {
switch (p) {
case Task.PRIORITY_NORMAL:
return "<font color=\"green\">" + Local.getString("Normal") + "</font>";
case Task.PRIORITY_LOW:
return "<font color=\"#3333CC\">" + Local.getString("Low") + "</font>";
case Task.PRIORITY_LOWEST:
return "<font color=\"#666699\">" + Local.getString("Lowest") + "</font>";
case Task.PRIORITY_HIGH:
return "<font color=\"#FF9900\">" + Local.getString("High") + "</font>";
case Task.PRIORITY_HIGHEST:
return "<font color=\"red\">" + Local.getString("Highest") + "</font>";
}
return "";
}
示例3: getPriorityString
static String getPriorityString(int p) {
switch (p) {
case Task.PRIORITY_NORMAL :
return "<font color=\"green\">"+Local.getString("Normal")+"</font>";
case Task.PRIORITY_LOW :
return "<font color=\"#3333CC\">"+Local.getString("Low")+"</font>";
case Task.PRIORITY_LOWEST :
return "<font color=\"#666699\">"+Local.getString("Lowest")+"</font>";
case Task.PRIORITY_HIGH :
return "<font color=\"#FF9900\">"+Local.getString("High")+"</font>";
case Task.PRIORITY_HIGHEST :
return "<font color=\"red\">"+Local.getString("Highest")+"</font>";
}
return "";
}