swingx
Version 2005-08-19

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  MouseInputListener mouseListener
           
protected  boolean mouseOver
           
protected  PropertyChangeListener propertyListener
           
protected static int ROUND_HEIGHT
           
protected static int TITLE_HEIGHT
           
 
Constructor Summary
BasicTaskPaneUI()
           
 
Method Summary
 Component createAction(Action action)
          Called by the component when an action is added to the component through the JXTaskPane.add(Action) method.
protected  Border createContentPaneBorder()
           
protected  MouseInputListener createMouseInputListener()
           
protected  Border createPaneBorder()
           
protected  PropertyChangeListener createPropertyListener()
           
static ComponentUI createUI(JComponent c)
           
protected  void ensureVisible()
           
 Dimension getPreferredSize(JComponent c)
           
protected  int getTitleHeight()
           
protected  void installDefaults()
           
protected  void installKeyboardActions()
           
protected  void installListeners()
           
 void installUI(JComponent c)
           
protected  boolean isInBorder(MouseEvent event)
           
protected  void uninstallListeners()
           
 void uninstallUI(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 MouseInputListener mouseListener

propertyListener

protected PropertyChangeListener propertyListener
Constructor Detail

BasicTaskPaneUI

public BasicTaskPaneUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installUI

public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI

installDefaults

protected void installDefaults()

installListeners

protected void installListeners()

installKeyboardActions

protected void installKeyboardActions()

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI

uninstallListeners

protected void uninstallListeners()

createMouseInputListener

protected MouseInputListener createMouseInputListener()

createPropertyListener

protected PropertyChangeListener createPropertyListener()

isInBorder

protected boolean isInBorder(MouseEvent event)

getTitleHeight

protected final int getTitleHeight()

createPaneBorder

protected Border createPaneBorder()

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI

createContentPaneBorder

protected Border createContentPaneBorder()

createAction

public Component createAction(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()

swingx
Version 2005-08-19