程序包 weka.gui

类 GenericArrayEditor

所有已实现的接口:
ImageObserver, MenuContainer, PropertyEditor, Serializable, Accessible

public class GenericArrayEditor extends JPanel implements PropertyEditor
A PropertyEditor for arrays of objects that themselves have property editors.
版本:
$Revision: 7917 $
作者:
Len Trigg (trigg@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • GenericArrayEditor

      public GenericArrayEditor()
      Sets up the array editor.
  • 方法详细资料

    • setValue

      public void setValue(Object o)
      Sets the current object array.
      指定者:
      setValue 在接口中 PropertyEditor
      参数:
      o - an object that must be an array.
    • getValue

      public Object getValue()
      Gets the current object array.
      指定者:
      getValue 在接口中 PropertyEditor
      返回:
      the current object array
    • getJavaInitializationString

      public String getJavaInitializationString()
      Supposedly returns an initialization string to create a classifier identical to the current one, including it's state, but this doesn't appear possible given that the initialization string isn't supposed to contain multiple statements.
      指定者:
      getJavaInitializationString 在接口中 PropertyEditor
      返回:
      the java source code initialisation string
    • isPaintable

      public boolean isPaintable()
      Returns true to indicate that we can paint a representation of the string array.
      指定者:
      isPaintable 在接口中 PropertyEditor
      返回:
      true
    • paintValue

      public void paintValue(Graphics gfx, Rectangle box)
      Paints a representation of the current classifier.
      指定者:
      paintValue 在接口中 PropertyEditor
      参数:
      gfx - the graphics context to use
      box - the area we are allowed to paint into
    • getAsText

      public String getAsText()
      Returns null as we don't support getting/setting values as text.
      指定者:
      getAsText 在接口中 PropertyEditor
      返回:
      null
    • setAsText

      public void setAsText(String text)
      Returns null as we don't support getting/setting values as text.
      指定者:
      setAsText 在接口中 PropertyEditor
      参数:
      text - the text value
      抛出:
      IllegalArgumentException - as we don't support getting/setting values as text.
    • getTags

      public String[] getTags()
      Returns null as we don't support getting values as tags.
      指定者:
      getTags 在接口中 PropertyEditor
      返回:
      null
    • supportsCustomEditor

      public boolean supportsCustomEditor()
      Returns true because we do support a custom editor.
      指定者:
      supportsCustomEditor 在接口中 PropertyEditor
      返回:
      true
    • getCustomEditor

      public Component getCustomEditor()
      Returns the array editing component.
      指定者:
      getCustomEditor 在接口中 PropertyEditor
      返回:
      a value of type 'java.awt.Component'
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener l)
      Adds a PropertyChangeListener who will be notified of value changes.
      指定者:
      addPropertyChangeListener 在接口中 PropertyEditor
      覆盖:
      addPropertyChangeListener 在类中 Container
      参数:
      l - a value of type 'PropertyChangeListener'
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener l)
      Removes a PropertyChangeListener.
      指定者:
      removePropertyChangeListener 在接口中 PropertyEditor
      覆盖:
      removePropertyChangeListener 在类中 Component
      参数:
      l - a value of type 'PropertyChangeListener'
    • makeCopy

      public static Object makeCopy(Object source)
      Makes a copy of an object using serialization.
      参数:
      source - the object to copy
      返回:
      a copy of the source object, null if copying fails
    • main

      public static void main(String[] args)
      Tests out the array editor from the command line.
      参数:
      args - ignored