org.jdesktop.swingx.plaf.basic
Class BasicTaskPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by org.jdesktop.swingx.plaf.TaskPaneUI
              extended by org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
Direct Known Subclasses:
GlossyTaskPaneUI, MetalTaskPaneUI, WindowsClassicTaskPaneUI, WindowsTaskPaneUI

public class BasicTaskPaneUI
extends TaskPaneUI

Base implementation of the JXTaskPane UI.


Nested Class Summary
protected static class BasicTaskPaneUI.ChevronIcon
           
protected static class BasicTaskPaneUI.ContentPaneBorder
          The border around the content pane
protected  class BasicTaskPaneUI.PaneBorder
          The border of the taskpane group paints the "text", the "icon", the "expanded" status and the "special" type.
 
Field Summary
protected  JXTaskPane group
           
protected  javax.swing.event.MouseInputListener mouseListener
           
protected  boolean mouseOver
           
protected  java.beans.PropertyChangeListener propertyListener
           
protected static int ROUND_HEIGHT
           
protected static int TITLE_HEIGHT
           
 
Constructor Summary
BasicTaskPaneUI()
           
 
Method Summary
 java.awt.Component createAction(javax.swing.Action action)
          Called by the component when an action is added to the component through the JXTaskPane.add(Action) method.
protected  javax.swing.border.Border createContentPaneBorder()
           
protected  javax.swing.event.MouseInputListener createMouseInputListener()
           
protected  javax.swing.border.Border createPaneBorder()
           
protected  java.beans.PropertyChangeListener createPropertyListener()
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void ensureVisible()
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
           
protected  int getTitleHeight()
           
protected  void installDefaults()
           
protected  void installKeyboardActions()
           
protected  void installListeners()
           
 void installUI(javax.swing.JComponent c)
           
protected  boolean isInBorder(java.awt.event.MouseEvent event)
           
protected  void uninstallListeners()
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE_HEIGHT

protected static int TITLE_HEIGHT

ROUND_HEIGHT

protected static int ROUND_HEIGHT

group

protected JXTaskPane group

mouseOver

protected boolean mouseOver

mouseListener

protected javax.swing.event.MouseInputListener mouseListener

propertyListener

protected java.beans.PropertyChangeListener propertyListener
Constructor Detail

BasicTaskPaneUI

public BasicTaskPaneUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

installDefaults

protected void installDefaults()

installListeners

protected void installListeners()

installKeyboardActions

protected void installKeyboardActions()

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

uninstallListeners

protected void uninstallListeners()

createMouseInputListener

protected javax.swing.event.MouseInputListener createMouseInputListener()

createPropertyListener

protected java.beans.PropertyChangeListener createPropertyListener()

isInBorder

protected boolean isInBorder(java.awt.event.MouseEvent event)

getTitleHeight

protected final int getTitleHeight()

createPaneBorder

protected javax.swing.border.Border createPaneBorder()

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Overrides:
getPreferredSize in class javax.swing.plaf.ComponentUI

createContentPaneBorder

protected javax.swing.border.Border createContentPaneBorder()

createAction

public java.awt.Component createAction(javax.swing.Action action)
Description copied from class: TaskPaneUI
Called by the component when an action is added to the component through the JXTaskPane.add(Action) method.

Overrides:
createAction in class TaskPaneUI
Returns:
a component built from the action.

ensureVisible

protected void ensureVisible()