com.l2fprod.common.swing.plaf.basic
Class BasicTaskPaneGroupUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by com.l2fprod.common.swing.plaf.TaskPaneGroupUI
              extended by com.l2fprod.common.swing.plaf.basic.BasicTaskPaneGroupUI
Direct Known Subclasses:
GlossyTaskPaneGroupUI, MetalTaskPaneGroupUI, WindowsClassicTaskPaneGroupUI, WindowsTaskPaneGroupUI

public class BasicTaskPaneGroupUI
extends TaskPaneGroupUI

Base implementation of the JTaskPaneGroup UI.


Nested Class Summary
protected static class BasicTaskPaneGroupUI.ChevronIcon
           
protected static class BasicTaskPaneGroupUI.ContentPaneBorder
          The border around the content pane
protected  class BasicTaskPaneGroupUI.PaneBorder
          The border of the taskpane group paints the "text", the "icon", the "expanded" status and the "special" type.
 
Field Summary
protected  JTaskPaneGroup 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
BasicTaskPaneGroupUI()
           
 
Method Summary
protected  void configure(JLinkButton link)
           
 java.awt.Component createAction(javax.swing.Action action)
          Called by the component when an action is added to the component through the JTaskPaneGroup.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, getBaseline, getBaselineResizeBehavior, 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 JTaskPaneGroup group

mouseOver

protected boolean mouseOver

mouseListener

protected javax.swing.event.MouseInputListener mouseListener

propertyListener

protected java.beans.PropertyChangeListener propertyListener
Constructor Detail

BasicTaskPaneGroupUI

public BasicTaskPaneGroupUI()
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: TaskPaneGroupUI
Called by the component when an action is added to the component through the JTaskPaneGroup.add(Action) method.

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

configure

protected void configure(JLinkButton link)

ensureVisible

protected void ensureVisible()