org.jdesktop.jxlayer.plaf.ext
Class ButtonPanelUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.jdesktop.jxlayer.plaf.LayerUI<V>
          extended by org.jdesktop.jxlayer.plaf.AbstractLayerUI<javax.swing.JComponent>
              extended by org.jdesktop.jxlayer.plaf.ext.ButtonPanelUI
All Implemented Interfaces:
LayerItem

public class ButtonPanelUI
extends AbstractLayerUI<javax.swing.JComponent>


Constructor Summary
ButtonPanelUI()
           
ButtonPanelUI(boolean cyclic)
           
 
Method Summary
 void installUI(javax.swing.JComponent c)
          Configures the specified JXLayer appropriate for this AbstractLayerUI.
 boolean isFocusCyclic()
          Returns whether arrow keys should support cyclic focus traversal ordering for for this ButtonPanelUI.
protected  void processKeyEvent(java.awt.event.KeyEvent e, JXLayer<javax.swing.JComponent> l)
          Processes KeyEvent occurring on the JXLayer or any of its subcomponents.
 void setFocusCyclic(boolean isFocusCyclic)
          Sets whether arrow keys should support cyclic focus traversal ordering for this ButtonPanelUI.
 void uninstallUI(javax.swing.JComponent c)
          Reverses configuration which was done on the specified component during installUI(JComponent).
 
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, isAWTEventListenerEnabled, isDirty, isEnabled, paint, paintLayer, processFocusEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, registerAWTEventListener, removeLayerItemListener, removePropertyChangeListener, removePropertyChangeListener, setDirty, setEnabled, setLayerEventMask, 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, getMaximumSize, getMinimumSize, getPreferredSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonPanelUI

public ButtonPanelUI()

ButtonPanelUI

public ButtonPanelUI(boolean cyclic)
Method Detail

installUI

public void installUI(javax.swing.JComponent c)
Description copied from class: AbstractLayerUI
Configures the specified JXLayer appropriate for this AbstractLayerUI.

This method is invoked when the LayerUI instance is being installed as the UI delegate on the specified JXLayer. Subclasses can install any listeners to the passed JXLayer, configure its glassPane or do any other setting up. The default implementation registers the passed JXLayer as a LayerItemListener for this AbstractLayerUI.

Note: Subclasses can safely cast the passed component to the JXLayer<V>

Overrides:
installUI in class AbstractLayerUI<javax.swing.JComponent>
Parameters:
c - the JXLayer where this UI delegate is being installed
See Also:
AbstractLayerUI.uninstallUI(JComponent)

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Description copied from class: AbstractLayerUI
Reverses configuration which was done on the specified component during installUI(JComponent). This method is invoked when this LayerUI instance is being removed as the UI delegate for the specified JXLayer.

uninstallUI(JComponent) should undo the configuration performed in installUI(JComponent), being careful to leave the JXLayer instance in a clean state (e.g. all previously set listeners must be removed in this method). The default implementation removes the passed JXLayer from the LayerItemListener's list of this AbstractLayerUI.

Note: Subclasses can safely cast the passed component to the JXLayer<V>

Overrides:
uninstallUI in class AbstractLayerUI<javax.swing.JComponent>
Parameters:
c - the JXLayer where this UI delegate is being installed
See Also:
AbstractLayerUI.installUI(JComponent)

isFocusCyclic

public boolean isFocusCyclic()
Returns whether arrow keys should support cyclic focus traversal ordering for for this ButtonPanelUI.

Returns:
whether arrow keys should support cyclic focus traversal ordering

setFocusCyclic

public void setFocusCyclic(boolean isFocusCyclic)
Sets whether arrow keys should support cyclic focus traversal ordering for this ButtonPanelUI.

Parameters:
isFocusCyclic - sets whether arrow keys should support cyclic focus traversal ordering

processKeyEvent

protected void processKeyEvent(java.awt.event.KeyEvent e,
                               JXLayer<javax.swing.JComponent> l)
Processes KeyEvent occurring on the JXLayer or any of its subcomponents.

Overrides:
processKeyEvent in class AbstractLayerUI<javax.swing.JComponent>
Parameters:
e - the KeyEvent to be processed
l - the layer this LayerUI is set to