jaxx.runtime.validator.swing.ui
Class TranslucentValidationUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.jdesktop.jxlayer.plaf.LayerUI<V>
          extended by org.jdesktop.jxlayer.plaf.AbstractLayerUI<JComponent>
              extended by jaxx.runtime.validator.swing.ui.AbstractBeanValidatorUI
                  extended by jaxx.runtime.validator.swing.ui.TranslucentValidationUI
All Implemented Interfaces:
EventListener, BeanValidatorListener, org.jdesktop.jxlayer.plaf.item.LayerItem

public class TranslucentValidationUI
extends AbstractBeanValidatorUI

An implementation of AbstractBeanValidatorUI which paints a translucent backgroud color (green for ok, red for error, yellow for warning).

Author:
tchemit

Field Summary
protected  Color errorHightlight
           
protected  Color infoHightlight
           
protected  Color warningHightlight
           
 
Fields inherited from class jaxx.runtime.validator.swing.ui.AbstractBeanValidatorUI
field
 
Constructor Summary
TranslucentValidationUI(BeanValidatorField<?> field)
           
 
Method Summary
protected  void paintLayer(Graphics2D g2, org.jdesktop.jxlayer.JXLayer<JComponent> l)
           
 
Methods inherited from class jaxx.runtime.validator.swing.ui.AbstractBeanValidatorUI
onFieldChanged
 
Methods inherited from class org.jdesktop.jxlayer.plaf.AbstractLayerUI
addLayerItemListener, addPropertyChangeListener, addPropertyChangeListener, configureGraphics, eventDispatched, fireLayerItemChanged, fireLayerItemChanged, firePropertyChange, getClip, getComposite, getLayerEventMask, getLayerItemListeners, getPropertyChangeListeners, getPropertyChangeListeners, getRenderingHints, getTransform, installUI, isAWTEventListenerEnabled, isDirty, isEnabled, paint, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, registerAWTEventListener, removeLayerItemListener, removePropertyChangeListener, removePropertyChangeListener, setDirty, setEnabled, setLayerEventMask, uninstallUI, unregisterAWTEventListener
 
Methods inherited from class org.jdesktop.jxlayer.plaf.LayerUI
getAccessibleChild, getAccessibleChildrenCount, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, isEventEnabled, update, updateUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorHightlight

protected Color errorHightlight

warningHightlight

protected Color warningHightlight

infoHightlight

protected Color infoHightlight
Constructor Detail

TranslucentValidationUI

public TranslucentValidationUI(BeanValidatorField<?> field)
Method Detail

paintLayer

protected void paintLayer(Graphics2D g2,
                          org.jdesktop.jxlayer.JXLayer<JComponent> l)
Overrides:
paintLayer in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<JComponent>


Copyright © 2008-2010 CodeLutin. All Rights Reserved.