buoy.widget

Class BSeparator

Implemented Interfaces:
MenuWidget

public class BSeparator
extends Widget
implements MenuWidget

A BSeparator is a Widget corresponding to a divider line between parts of a container. They are most often used in BMenus and BToolBars to divide menu items or toolbar icons into related groups. They can also be used anywhere you want to create a horizontal or vertical divider between Widgets.
Author:
Peter Eastman

Nested Class Summary

static class
BSeparator.Orientation
This inner class represents an orientation for the separator.

Field Summary

static BSeparator.Orientation
HORIZONTAL
static BSeparator.Orientation
VERTICAL

Constructor Summary

BSeparator()
Create a new BSeparator whose orientation is set to HORIZONTAL.
BSeparator(BSeparator.Orientation orientation)
Create a new BSeparator.

Method Summary

JSeparator
getComponent()
BSeparator.Orientation
getOrientation()
Get the orientation of this separator.
void
setOrientation(BSeparator.Orientation orientation)
Set the orientation of this separator.

Methods inherited from class buoy.widget.Widget

addEventLink, dispatchEvent, getBackground, getBounds, getComponent, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible

Methods inherited from class buoy.event.EventSource

addEventLink, addEventLink, addEventLink, dispatchEvent, removeEventLink

Field Details

HORIZONTAL

public static final BSeparator.Orientation HORIZONTAL

VERTICAL

public static final BSeparator.Orientation VERTICAL

Constructor Details

BSeparator

public BSeparator()
Create a new BSeparator whose orientation is set to HORIZONTAL.

BSeparator

public BSeparator(BSeparator.Orientation orientation)
Create a new BSeparator.

Method Details

getComponent

public JSeparator getComponent()
Overrides:
getComponent in interface Widget

getOrientation

public BSeparator.Orientation getOrientation()
Get the orientation of this separator.

setOrientation

public void setOrientation(BSeparator.Orientation orientation)
Set the orientation of this separator.

Written by Peter Eastman.