|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.GenericArrayEditor
public class GenericArrayEditor
A PropertyEditor for arrays of objects that themselves have property editors.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GenericArrayEditor()
Sets up the array editor. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener who will be notified of value changes. |
String |
getAsText()
Returns null as we don't support getting/setting values as text. |
Component |
getCustomEditor()
Returns the array editing component. |
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. |
String[] |
getTags()
Returns null as we don't support getting values as tags. |
Object |
getValue()
Gets the current object array. |
boolean |
isPaintable()
Returns true to indicate that we can paint a representation of the string array. |
static void |
main(String[] args)
Tests out the array editor from the command line. |
static Object |
makeCopy(Object source)
Makes a copy of an object using serialization. |
void |
paintValue(Graphics gfx,
Rectangle box)
Paints a representation of the current classifier. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener. |
void |
setAsText(String text)
Returns null as we don't support getting/setting values as text. |
void |
setValue(Object o)
Sets the current object array. |
boolean |
supportsCustomEditor()
Returns true because we do support a custom editor. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GenericArrayEditor()
| Method Detail |
|---|
public void setValue(Object o)
setValue in interface PropertyEditoro - an object that must be an array.public Object getValue()
getValue in interface PropertyEditorpublic String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorpublic boolean isPaintable()
isPaintable in interface PropertyEditor
public void paintValue(Graphics gfx,
Rectangle box)
paintValue in interface PropertyEditorgfx - the graphics context to usebox - the area we are allowed to paint intopublic String getAsText()
getAsText in interface PropertyEditorpublic void setAsText(String text)
setAsText in interface PropertyEditortext - the text value
IllegalArgumentException - as we don't support
getting/setting values as text.public String[] getTags()
getTags in interface PropertyEditorpublic boolean supportsCustomEditor()
supportsCustomEditor in interface PropertyEditorpublic Component getCustomEditor()
getCustomEditor in interface PropertyEditorpublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in interface PropertyEditoraddPropertyChangeListener in class Containerl - a value of type 'PropertyChangeListener'public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in interface PropertyEditorremovePropertyChangeListener in class Componentl - a value of type 'PropertyChangeListener'public static Object makeCopy(Object source)
source - the object to copy
public static void main(String[] args)
args - ignored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||