Beispiel #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"));
 }
Beispiel #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"));
 }
Beispiel #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());
 }
Beispiel #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());
 }