JIDE 3.5.15

com.jidesoft.plaf.basic
Class BasicCollapsiblePaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by com.jidesoft.plaf.CollapsiblePaneUI
              extended by com.jidesoft.plaf.basic.BasicCollapsiblePaneUI
Direct Known Subclasses:
EclipseCollapsiblePaneUI, LonghornCollapsiblePaneUI, Office2003CollapsiblePaneUI, VsnetCollapsiblePaneUI, XertoCollapsiblePaneUI

public class BasicCollapsiblePaneUI
extends CollapsiblePaneUI

A basic L&F implementation of CollapsiblePane.


Nested Class Summary
 class BasicCollapsiblePaneUI.CollapseAction
           
 class BasicCollapsiblePaneUI.CollapsiblePaneLayout
           
 class BasicCollapsiblePaneUI.CollapsiblePanePropertyChangeListener
           
 
Field Summary
protected  Action _collapseAction
           
protected  String _collapseText
           
protected  LayoutManager _collapsiblePaneLayout
           
protected  JComponent _eastPane
           
protected  JComponent _northPane
           
protected  CollapsiblePane _pane
           
protected  PropertyChangeListener _propertyChangeListener
           
protected  JComponent _southPane
           
protected  JComponent _titlePane
           
protected  JComponent _westPane
           
 
Constructor Summary
BasicCollapsiblePaneUI()
           
BasicCollapsiblePaneUI(CollapsiblePane f)
           
 
Method Summary
protected  JComponent createEastPane(CollapsiblePane pane)
           
protected  LayoutManager createLayoutManager()
           
protected  JComponent createNorthPane(CollapsiblePane pane)
           
protected  PropertyChangeListener createPropertyChangeListener()
           
protected  JComponent createSouthPane(CollapsiblePane pane)
           
protected  JComponent createTitlePane(CollapsiblePane w)
           
static ComponentUI createUI(JComponent b)
           
protected  JComponent createWestPane(CollapsiblePane pane)
           
 JComponent getEastPane()
           
 Dimension getMaximumSize(JComponent x)
           
 Dimension getMinimumSize(JComponent x)
           
 JComponent getNorthPane()
           
 ThemePainter getPainter()
           
 Dimension getPreferredSize(JComponent x)
           
 JComponent getSouthPane()
           
 Component getTitlePane()
           
 Action getToggleAction()
           
 JComponent getWestPane()
           
protected  void installComponents()
           
protected  void installDefaults()
           
protected  void installKeyboardActions()
           
protected  void installListeners()
           
 void installUI(JComponent c)
           
 boolean isKeyBindingActive()
           
protected  boolean isKeyBindingRegistered()
           
 void paint(Graphics g, JComponent c)
           
protected  void replacePane(JComponent currentPane, JComponent newPane)
          Installs necessary mouse handlers on newPane and adds it to the frame.
protected  void setEastPane(JComponent c)
           
protected  void setKeyBindingActive(boolean b)
           
protected  void setKeyBindingRegistered(boolean b)
           
protected  void setNorthPane(JComponent c)
           
protected  void setSouthPane(JComponent c)
           
protected  void setupMenuCloseKey()
           
protected  void setupMenuOpenKey()
           
protected  void setWestPane(JComponent c)
           
protected  void uninstallComponents()
           
protected  void uninstallDefaults()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 void uninstallUI(JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_pane

protected CollapsiblePane _pane

_propertyChangeListener

protected PropertyChangeListener _propertyChangeListener

_collapsiblePaneLayout

protected LayoutManager _collapsiblePaneLayout

_northPane

protected JComponent _northPane

_southPane

protected JComponent _southPane

_westPane

protected JComponent _westPane

_eastPane

protected JComponent _eastPane

_titlePane

protected JComponent _titlePane

_collapseAction

protected Action _collapseAction

_collapseText

protected String _collapseText
Constructor Detail

BasicCollapsiblePaneUI

public BasicCollapsiblePaneUI()

BasicCollapsiblePaneUI

public BasicCollapsiblePaneUI(CollapsiblePane f)
Method Detail

createUI

public static ComponentUI createUI(JComponent b)

installUI

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

uninstallUI

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

installDefaults

protected void installDefaults()

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI

uninstallDefaults

protected void uninstallDefaults()

installKeyboardActions

protected void installKeyboardActions()

installComponents

protected void installComponents()

uninstallComponents

protected void uninstallComponents()

installListeners

protected void installListeners()

uninstallListeners

protected void uninstallListeners()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

getTitlePane

public Component getTitlePane()
Specified by:
getTitlePane in class CollapsiblePaneUI

createLayoutManager

protected LayoutManager createLayoutManager()

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()

getPreferredSize

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

getMinimumSize

public Dimension getMinimumSize(JComponent x)
Overrides:
getMinimumSize in class ComponentUI

getMaximumSize

public Dimension getMaximumSize(JComponent x)
Overrides:
getMaximumSize in class ComponentUI

replacePane

protected void replacePane(JComponent currentPane,
                           JComponent newPane)
Installs necessary mouse handlers on newPane and adds it to the frame. Reverse process for the currentPane.

Parameters:
currentPane - the current pane
newPane - the new pane

createNorthPane

protected JComponent createNorthPane(CollapsiblePane pane)

createTitlePane

protected JComponent createTitlePane(CollapsiblePane w)

createSouthPane

protected JComponent createSouthPane(CollapsiblePane pane)

createWestPane

protected JComponent createWestPane(CollapsiblePane pane)

createEastPane

protected JComponent createEastPane(CollapsiblePane pane)

isKeyBindingRegistered

protected final boolean isKeyBindingRegistered()

setKeyBindingRegistered

protected final void setKeyBindingRegistered(boolean b)

isKeyBindingActive

public final boolean isKeyBindingActive()

setKeyBindingActive

protected final void setKeyBindingActive(boolean b)

setupMenuOpenKey

protected void setupMenuOpenKey()

setupMenuCloseKey

protected void setupMenuCloseKey()

getNorthPane

public JComponent getNorthPane()

setNorthPane

protected void setNorthPane(JComponent c)

getSouthPane

public JComponent getSouthPane()

setSouthPane

protected void setSouthPane(JComponent c)

getWestPane

public JComponent getWestPane()

setWestPane

protected void setWestPane(JComponent c)

getEastPane

public JComponent getEastPane()

setEastPane

protected void setEastPane(JComponent c)

getPainter

public ThemePainter getPainter()

getToggleAction

public Action getToggleAction()
Specified by:
getToggleAction in class CollapsiblePaneUI

JIDE 3.5.15