buoy.widget
Class BSeparator

java.lang.Object
  extended by buoy.event.EventSource
      extended by buoy.widget.Widget
          extended by buoy.widget.BSeparator
All 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
 javax.swing.JSeparator getComponent()
          Get the java.awt.Component corresponding to this Widget.
 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, 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, removeEventLink
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HORIZONTAL

public static final BSeparator.Orientation HORIZONTAL

VERTICAL

public static final BSeparator.Orientation VERTICAL
Constructor Detail

BSeparator

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


BSeparator

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

Method Detail

getComponent

public javax.swing.JSeparator getComponent()
Description copied from class: Widget
Get the java.awt.Component corresponding to this Widget.

Overrides:
getComponent in class 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.