程序包 weka.gui

类 SimpleDateFormatEditor

java.lang.Object
weka.gui.SimpleDateFormatEditor
所有已实现的接口:
PropertyEditor

public class SimpleDateFormatEditor extends Object implements PropertyEditor
Class for editing SimpleDateFormat strings.
版本:
$Revision: 7059 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 字段详细资料

    • DEFAULT_FORMAT

      public static final String DEFAULT_FORMAT
      the default format
      另请参阅:
  • 构造器详细资料

    • SimpleDateFormatEditor

      public SimpleDateFormatEditor()
      Constructs a new SimpleDateFormatEditor.
  • 方法详细资料

    • setValue

      public void setValue(Object value)
      Sets the value of the date format to be edited.
      指定者:
      setValue 在接口中 PropertyEditor
      参数:
      value - a SimpleDateFormat object to be edited
    • getValue

      public Object getValue()
      Gets the date format that is being edited.
      指定者:
      getValue 在接口中 PropertyEditor
      返回:
      the edited SimpleDateFormat object
    • isPaintable

      public boolean isPaintable()
      Indicates whether the object can be represented graphically. In this case it can.
      指定者:
      isPaintable 在接口中 PropertyEditor
      返回:
      true
    • paintValue

      public void paintValue(Graphics gfx, Rectangle box)
      Paints a graphical representation of the object. It just prints the format.
      指定者:
      paintValue 在接口中 PropertyEditor
      参数:
      gfx - the graphics context to draw the representation to
      box - the bounds within which the representation should fit.
    • getJavaInitializationString

      public String getJavaInitializationString()
      Returns the Java code that generates an object the same as the one being edited.
      指定者:
      getJavaInitializationString 在接口中 PropertyEditor
      返回:
      the initialization string
    • getAsText

      public String getAsText()
      Returns the date format string.
      指定者:
      getAsText 在接口中 PropertyEditor
      返回:
      the date format string
    • setAsText

      public void setAsText(String text)
      Sets the date format string.
      指定者:
      setAsText 在接口中 PropertyEditor
      参数:
      text - the date format string
    • getTags

      public String[] getTags()
      Some objects can return tags, but a date format cannot.
      指定者:
      getTags 在接口中 PropertyEditor
      返回:
      null
    • getCustomEditor

      public Component getCustomEditor()
      Gets a GUI component with which the user can edit the date format.
      指定者:
      getCustomEditor 在接口中 PropertyEditor
      返回:
      an editor GUI component
    • supportsCustomEditor

      public boolean supportsCustomEditor()
      Indicates whether the date format can be edited in a GUI, which it can.
      指定者:
      supportsCustomEditor 在接口中 PropertyEditor
      返回:
      true
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
      Adds an object to the list of those that wish to be informed when the date format changes.
      指定者:
      addPropertyChangeListener 在接口中 PropertyEditor
      参数:
      listener - a new listener to add to the list
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
      Removes an object from the list of those that wish to be informed when the date format changes.
      指定者:
      removePropertyChangeListener 在接口中 PropertyEditor
      参数:
      listener - the listener to remove from the list