info.gridworld.gui
Class LocationEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by 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.


Constructor Summary
LocationEditor()
           
 
Method Summary
 java.awt.Component getCustomEditor()
           
 java.lang.Object getValue()
           
 void setValue(java.lang.Object newValue)
           
 boolean supportsCustomEditor()
           
 
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
 

Constructor Detail

LocationEditor

public LocationEditor()
Method Detail

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