示例#1
0
 /**
  * What format should this item's time string be presented in?
  *
  * @return TimeDisplayFormat
  */
 public TimeDisplayFormat getDisplayFormat() {
   return EnumUtil.getEnum(TimeDisplayFormat.values(), getAttribute("displayFormat"));
 }
示例#2
0
 /**
  * What format should this item's time string be presented in? If unset the format will be derived
  * from {@link com.smartgwt.client.widgets.form.DynamicForm#getTimeFormatter timeFormatter} or the
  * system-side
  *
  * @return TimeDisplayFormat
  */
 public TimeDisplayFormat getTimeFormatter() {
   return EnumUtil.getEnum(TimeDisplayFormat.values(), getAttribute("timeFormatter"));
 }
示例#3
0
 /**
  * What format should this item's time string be presented in?
  *
  * @param TimeDisplayFormat displayFormat Default value is "toShort24HourTime"
  */
 public void setDisplayFormat(TimeDisplayFormat timeFormatter) {
   setAttribute("displayFormat", timeFormatter.getValue());
 }
示例#4
0
 /**
  * What format should this item's time string be presented in? If unset the format will be derived
  * from {@link com.smartgwt.client.widgets.form.DynamicForm#getTimeFormatter timeFormatter} or the
  * system-side
  *
  * @param timeFormatter timeFormatter Default value is "toShort24HourTime"
  */
 public void setTimeFormatter(TimeDisplayFormat timeFormatter) {
   setAttribute("timeFormatter", timeFormatter == null ? null : timeFormatter.getValue());
 }