com.magelang.editors
Class ColorSelector

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--com.magelang.editors.ColorSelector
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyEditor, java.io.Serializable
Direct Known Subclasses:
BasicColorSelector

public class ColorSelector
extends java.awt.Panel
implements java.beans.PropertyEditor

See Also:
Serialized Form

Inner classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
protected  java.beans.PropertyChangeSupport propertyChange
           
 
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
ColorSelector()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          addPropertyChangeListener method comment.
 void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
          The firePropertyChange method was generated to support the propertyChange field.
 java.lang.String getAsText()
          getAsText method comment.
 java.awt.Component getCustomEditor()
          getCustomEditor method comment.
 java.lang.String getJavaInitializationString()
          getJavaInitializationString method comment.
 java.awt.Color getSelectedColor()
          Gets the selectedColor property (java.awt.Color) value.
 java.lang.String[] getTags()
          getTags method comment.
 java.lang.Object getValue()
          getValue method comment.
 boolean isPaintable()
          isPaintable method comment.
 void paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)
          paintValue method comment.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          removePropertyChangeListener method comment.
 void setAsText(java.lang.String text)
          setAsText method comment.
protected  void setInitString(java.lang.String initString)
           
 void setSelectedColor(java.awt.Color selectedColor)
          Sets the selectedColor property (java.awt.Color) value.
 void setValue(java.lang.Object value)
          setValue method comment.
 boolean supportsCustomEditor()
          supportsCustomEditor method comment.
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyChange

protected transient java.beans.PropertyChangeSupport propertyChange
Constructor Detail

ColorSelector

public ColorSelector()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener method comment.
Specified by:
addPropertyChangeListener in interface java.beans.PropertyEditor
Overrides:
addPropertyChangeListener in class java.awt.Component

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               java.lang.Object oldValue,
                               java.lang.Object newValue)
The firePropertyChange method was generated to support the propertyChange field.
Overrides:
firePropertyChange in class java.awt.Component

getAsText

public java.lang.String getAsText()
getAsText method comment.
Specified by:
getAsText in interface java.beans.PropertyEditor

getCustomEditor

public java.awt.Component getCustomEditor()
getCustomEditor method comment.
Specified by:
getCustomEditor in interface java.beans.PropertyEditor

getJavaInitializationString

public java.lang.String getJavaInitializationString()
getJavaInitializationString method comment.
Specified by:
getJavaInitializationString in interface java.beans.PropertyEditor

getSelectedColor

public java.awt.Color getSelectedColor()
Gets the selectedColor property (java.awt.Color) value.
Returns:
The selectedColor property value.
See Also:
setSelectedColor(java.awt.Color)

getTags

public java.lang.String[] getTags()
getTags method comment.
Specified by:
getTags in interface java.beans.PropertyEditor

getValue

public java.lang.Object getValue()
getValue method comment.
Specified by:
getValue in interface java.beans.PropertyEditor

isPaintable

public boolean isPaintable()
isPaintable method comment.
Specified by:
isPaintable in interface java.beans.PropertyEditor

paintValue

public void paintValue(java.awt.Graphics gfx,
                       java.awt.Rectangle box)
paintValue method comment.
Specified by:
paintValue in interface java.beans.PropertyEditor

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener method comment.
Specified by:
removePropertyChangeListener in interface java.beans.PropertyEditor
Overrides:
removePropertyChangeListener in class java.awt.Component

setAsText

public void setAsText(java.lang.String text)
               throws java.lang.IllegalArgumentException
setAsText method comment.
Specified by:
setAsText in interface java.beans.PropertyEditor

setInitString

protected void setInitString(java.lang.String initString)

setSelectedColor

public void setSelectedColor(java.awt.Color selectedColor)
Sets the selectedColor property (java.awt.Color) value.
Parameters:
selectedColor - The new value for the property.
See Also:
getSelectedColor()

setValue

public void setValue(java.lang.Object value)
setValue method comment.
Specified by:
setValue in interface java.beans.PropertyEditor

supportsCustomEditor

public boolean supportsCustomEditor()
supportsCustomEditor method comment.
Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor