예제 #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());
 }