Examples of JsDate


Examples of com.google.gwt.core.client.JsDate

  public final native boolean getBoolean(String key) /*-{
    return this[key];
  }-*/;

  public final Date getDate(String key) {
    JsDate jsDate = getObject(key).cast();
    return DateHelper.getDate(jsDate);
  }
View Full Code Here

Examples of com.google.gwt.core.client.JsDate

    @Override
    public void ready(YuiContext Y) {
     
      //parse and format some dates
     
      JsDate now = JsDate.create();
      Window.alert(Y.DataTypeDate().format(now, "%x %X"));      

      JsDate date3 = Y.DataTypeDate().parse(new int[]{1995,11,17,3,24,0});
      Window.alert(Y.DataTypeDate().format(date3, "century: %c"));
     
      //now parse and format some numbers
      double pi = Y.DataTypeNumber().parseDouble(" 3.1415 ");
      String formated = Y.DataTypeNumber().format(pi, NumberFormat.create().decimalSeparator(" . "));
View Full Code Here

Examples of com.google.gwt.core.client.JsDate

   *
   * @param key the name of the property.
   * @return the property value
   */
  public final Date getDate(String key) {
    JsDate jsDate = getObject(key).cast();
    return DateHelper.getDate(jsDate);
  }
View Full Code Here

Examples of com.google.gwt.core.client.JsDate

   *
   * @param key The name of the option to retrieve. May be a qualified name, such as 'vAxis.title'
   * @return the value specified by key
   */
  public final Date getOptionDate(String key) {
    JsDate jsDate = this.getOptionObject(key).cast();
    return DateHelper.getDate(jsDate);
  }
View Full Code Here

Examples of com.google.gwt.core.client.JsDate

   * @param key The name of the option to retrieve. May be a qualified name, such as 'vAxis.title'
   * @param defaultValue If the specified value is undefined or null, this value will be returned.
   * @return the value specified by key
   */
  public final Date getOptionDate(String key, Date defaultValue) {
    JsDate jsDate = this.getOptionObject(key, DateHelper.getJsDate(defaultValue)).cast();
    return DateHelper.getDate(jsDate);
  }
View Full Code Here

Examples of com.google.gwt.core.client.JsDate

   * @param columnIndex is the cell's column index.
   * @param name is a string with the property name.
   * @return the value of a named property or null
   */
  public final Date getPropertyDate(int rowIndex, int columnIndex, String name) {
    JsDate jsDate = getPropertyObject(rowIndex, columnIndex, name).cast();
    return DateHelper.getDate(jsDate);
  }
View Full Code Here

Examples of com.google.gwt.core.client.JsDate

   * @param rowIndex is the cell's row index.
   * @param name is a string with the property name.
   * @return the value of a named property or null
   */
  public final Date getRowPropertyDate(int rowIndex, String name) {
    JsDate jsDate = getRowPropertyObject(rowIndex, name).cast();
    return DateHelper.getDate(jsDate);
  }
View Full Code Here

Examples of com.google.gwt.core.client.JsDate

   *
   * @param name is a string with the property name.
   * @return the value of a named property or null
   */
  public final Date getTablePropertyDate(String name) {
    JsDate jsDate = getTablePropertyObject(name).cast();
    return DateHelper.getDate(jsDate);
  }
View Full Code Here

Examples of com.google.gwt.core.client.JsDate

   * @param rowIndex should be a number greater than or equal to zero, and less than the number of rows
   * @param columnIndex should be a number greater than or equal to zero, and less than the number of columns
   * @return value of the specified cell
   */
  public final Date getValueDate(int rowIndex, int columnIndex) {
    JsDate jsDate = getValueObject(rowIndex, columnIndex).cast();
    return DateHelper.getDate(jsDate);
  }
View Full Code Here

Examples of com.google.gwt.core.client.JsDate

    object[name] = value;
  }-*/;

  @SuppressWarnings("deprecation")
  public static Date getDateProperty(JavaScriptObject object, String name) {
    JsDate date = getObjectProperty(object, name).cast();

    if (date == null)
      return null;

    return new Date(date.getYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.