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 String
PROPERTY_ORIENTATION
Id for the orientation property

Constructor Summary

ToolBarGripper()
ToolBarGripper(int orientation)

Method Summary

int
getOrientation()
Returns the orientation of this gripper (SwingConstants.HORIZONTAL/VERTICAL)
String
getUIClassID()
boolean
isCollapsed()
Return true is this toolbar is currently collapsed
boolean
isCollapsible()
Return true is this toolbar can be collapsed (default is true)
void
setCollapsed(boolean collapsed)
void
setCollapsible(boolean collapsible)
void
setOrientation(int orientation)
void
updateUI()
Resets the UI property to a value from the current look and feel.

Field Details

PROPERTY_ORIENTATION

public static final String PROPERTY_ORIENTATION
Id for the orientation property

Constructor Details

ToolBarGripper

public ToolBarGripper()

ToolBarGripper

public ToolBarGripper(int orientation)

Method Details

getOrientation

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

getUIClassID

public String getUIClassID()
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-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications