info.gridworld.gui
Class LocationEditor
java.lang.Object
java.beans.PropertyEditorSupport
info.gridworld.gui.LocationEditor
- All Implemented Interfaces:
- java.beans.PropertyEditor
public class LocationEditor
- extends java.beans.PropertyEditorSupport
A property editor for the Location type.
This code is not tested on the AP CS A and AB exams. It contains GUI
implementation details that are not intended to be understood by AP CS
students.
| Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationEditor
public LocationEditor()
getValue
public java.lang.Object getValue()
- Specified by:
getValue in interface java.beans.PropertyEditor- Overrides:
getValue in class java.beans.PropertyEditorSupport
setValue
public void setValue(java.lang.Object newValue)
- Specified by:
setValue in interface java.beans.PropertyEditor- Overrides:
setValue in class java.beans.PropertyEditorSupport
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor- Overrides:
supportsCustomEditor in class java.beans.PropertyEditorSupport
getCustomEditor
public java.awt.Component getCustomEditor()
- Specified by:
getCustomEditor in interface java.beans.PropertyEditor- Overrides:
getCustomEditor in class java.beans.PropertyEditorSupport