APIdia Launch Partner
Top Description Fields Constructors Methods
sun.swing

public Class WindowsPlacesBar

extends JToolBar
implements ActionListener, PropertyChangeListener
Class Inheritance
All Implemented Interfaces
java.beans.PropertyChangeListener, java.util.EventListener, java.awt.event.ActionListener
Annotations
@SuppressWarnings:serial
Imports
java.awt.Dimension, .Insets, .Color, .Image, java.awt.event.ActionEvent, .ActionListener, java.beans.PropertyChangeEvent, .PropertyChangeListener, java.io.File, javax.swing.JToolBar, .JFileChooser, .JToggleButton, .ButtonGroup, .UIManager, .Icon, .ImageIcon, .JComponent, .Box, javax.swing.border.EmptyBorder, .BevelBorder, javax.swing.filechooser.FileSystemView, sun.awt.shell.ShellFolder, sun.awt.OSInfo

Warning

This class is an implementation detail and is only public so that it can be used by two packages. You should NOT consider this public API.

Author
Leif Samuelsson

Field Summary

Modifier and TypeField and Description
pack-priv ButtonGroup
pack-priv JToggleButton[]
pack-priv final Dimension
pack-priv JFileChooser
pack-priv File[]

Constructor Summary

AccessConstructor and Description
public
WindowsPlacesBar(JFileChooser fc, boolean isXPStyle)

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

protected void
public Dimension
getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

If the preferredSize has been set to a non-null value just returns it.

public void
propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

Inherited from javax.swing.JToolBar:
addaddImpladdSeparatoraddSeparatorcreateActionChangeListenercreateActionComponentgetAccessibleContextgetComponentAtIndexgetComponentIndexgetMargingetOrientationgetUIgetUIClassIDisBorderPaintedisFloatableisRolloverpaintBorderparamStringsetBorderPaintedsetFloatablesetLayoutsetMarginsetOrientationsetRolloversetUIupdateUI

Field Detail

buttonGroupback to summary
pack-priv ButtonGroup buttonGroup
buttonsback to summary
pack-priv JToggleButton[] buttons
buttonSizeback to summary
pack-priv final Dimension buttonSize
fcback to summary
pack-priv JFileChooser fc
filesback to summary
pack-priv File[] files

Constructor Detail

WindowsPlacesBarback to summary
public WindowsPlacesBar(JFileChooser fc, boolean isXPStyle)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

doDirectoryChangedback to summary
protected void doDirectoryChanged(File f)
getPreferredSizeback to summary
public Dimension getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

Doc from javax.swing.JComponent.getPreferredSize.

If the preferredSize has been set to a non-null value just returns it. If the UI delegate's getPreferredSize method returns a non null value then return that; otherwise defer to the component's layout manager.

propertyChangeback to summary
public void propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

Doc from java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.