com.magelang.tabsplitter
Class TabColorEditor

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--com.magelang.tabsplitter.TabColorEditor
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.beans.PropertyEditor, java.io.Serializable

public class TabColorEditor
extends java.awt.Panel
implements java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.beans.PropertyEditor

Use this code at your own risk! MageLang Institute is not responsible for any damage caused directly or indirectly through use of this code.

SOFTWARE RIGHTS

TabSplitter, version 2.0, Scott Stanchfield, MageLang Institute

We reserve no legal rights to this code--it is fully in the public domain. An individual or company may do whatever they wish with source code distributed with it, including including the incorporation of it into commerical software.

However, this code cannot be sold as a standalone product.

We encourage users to develop software with this code. However, we do ask that credit is given to us for developing it By "credit", we mean that if you use these components or incorporate any source code into one of your programs (commercial product, research project, or otherwise) that you acknowledge this fact somewhere in the documentation, research report, etc... If you like these components and have developed a nice tool with the output, please mention that you developed it using these components. In addition, we ask that the headers remain intact in our source code. As long as these guidelines are kept, we expect to continue enhancing this system and expect to make other tools available as they are completed.

The MageLang Support Classes Gang:

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
TabColorEditor()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Method to handle events for the ActionListener interface.
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          addPropertyChangeListener method comment.
protected  void addTabColor(java.awt.Color color)
           
 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.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 propertyChange(java.beans.PropertyChangeEvent evt)
          Method to handle events for the PropertyChangeListener interface.
protected  void removeCurrentTabColor()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          removePropertyChangeListener method comment.
 void setAsText(java.lang.String text)
          setAsText method comment.
 void setTabColors(java.awt.Color[] tabColors)
          Sets the tabColors 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

TabColorEditor

public TabColorEditor()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Method to handle events for the ActionListener interface.
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - java.awt.event.ActionEvent

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

addTabColor

protected void addTabColor(java.awt.Color color)

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

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

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Method to handle events for the PropertyChangeListener interface.
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
evt - java.beans.PropertyChangeEvent

removeCurrentTabColor

protected void removeCurrentTabColor()

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

setTabColors

public void setTabColors(java.awt.Color[] tabColors)
Sets the tabColors property (java.awt.Color[]) value.
Parameters:
tabColors - The new value for the property.

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