com.sencha.gxt.widget.core.client.form
Class DateTimePropertyEditor

java.lang.Object
  extended by com.sencha.gxt.widget.core.client.form.PropertyEditor<java.util.Date>
      extended by com.sencha.gxt.widget.core.client.form.DateTimePropertyEditor
All Implemented Interfaces:
Parser<java.util.Date>, Renderer<java.util.Date>

public class DateTimePropertyEditor
extends PropertyEditor<java.util.Date>


Field Summary
 
Fields inherited from class com.sencha.gxt.widget.core.client.form.PropertyEditor
DEFAULT
 
Constructor Summary
DateTimePropertyEditor()
          Creates a new date time property editor.
DateTimePropertyEditor(DateTimeFormat format)
          Creates a new date time property editor.
DateTimePropertyEditor(java.lang.String pattern)
          Creates a new date time property editor.
 
Method Summary
 DateTimeFormat getFormat()
          Returns the date time format.
 boolean isParseStrict()
          Returns true if parsing strictly.
 java.util.Date parse(java.lang.CharSequence text)
           
 java.lang.String render(java.util.Date value)
           
 void setParseStrict(boolean parseStrict)
          True to parse dates strictly (defaults to true).
 
Methods inherited from class com.sencha.gxt.widget.core.client.form.PropertyEditor
render
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimePropertyEditor

public DateTimePropertyEditor()
Creates a new date time property editor.


DateTimePropertyEditor

public DateTimePropertyEditor(DateTimeFormat format)
Creates a new date time property editor.

Parameters:
format - the date time format

DateTimePropertyEditor

public DateTimePropertyEditor(java.lang.String pattern)
Creates a new date time property editor.

Parameters:
pattern - the pattern used to create a new @link DateTimeFormat.
Method Detail

getFormat

public DateTimeFormat getFormat()
Returns the date time format.

Returns:
the date time format

isParseStrict

public boolean isParseStrict()
Returns true if parsing strictly.

Returns:
the parse strict state

parse

public java.util.Date parse(java.lang.CharSequence text)
                     throws java.text.ParseException
Throws:
java.text.ParseException

render

public java.lang.String render(java.util.Date value)

setParseStrict

public void setParseStrict(boolean parseStrict)
True to parse dates strictly (defaults to true). See @link DateTimeFormat.parseStrict(String).

Parameters:
parseStrict - true to parse strictly


Copyright © 2012. All Rights Reserved.