com.vlsolutions.swing.toolbars

Class ToolBarGripper

public class ToolBarGripper extends JComponent

The component used to have a "grip" action on a toolbar (Drag and Drop support)

Since: 2.0

Field Summary
static StringPROPERTY_ORIENTATION
Id for the orientation property
Constructor Summary
ToolBarGripper()
ToolBarGripper(int orientation)
Method Summary
intgetOrientation()
Returns the orientation of this gripper (SwingConstants.HORIZONTAL/VERTICAL)
StringgetUIClassID()
booleanisCollapsed()
Return true is this toolbar is currently collapsed
booleanisCollapsible()
Return true is this toolbar can be collapsed (default is true)
voidsetCollapsed(boolean collapsed)
voidsetCollapsible(boolean collapsible)
voidsetOrientation(int orientation)
voidupdateUI()
Resets the UI property to a value from the current look and feel.

Field Detail

PROPERTY_ORIENTATION

public static final String PROPERTY_ORIENTATION
Id for the orientation property

Constructor Detail

ToolBarGripper

public ToolBarGripper()

ToolBarGripper

public ToolBarGripper(int orientation)

Method Detail

getOrientation

public int getOrientation()
Returns the orientation of this gripper (SwingConstants.HORIZONTAL/VERTICAL)

getUIClassID

public String getUIClassID()
{@inheritDoc }

Since: 2.0

isCollapsed

public boolean isCollapsed()
Return true is this toolbar is currently collapsed

isCollapsible

public boolean isCollapsible()
Return true is this toolbar can be collapsed (default is true)

setCollapsed

public void setCollapsed(boolean collapsed)

setCollapsible

public void setCollapsible(boolean collapsible)

setOrientation

public void setOrientation(int orientation)

updateUI

public void updateUI()
Resets the UI property to a value from the current look and feel.

See Also: JComponent#updateUI

© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications