com.sas.visuals
Class Toolbar

com.sas.visuals.Toolbar
All Implemented Interfaces:
ContainerInterface, com.sas.awt.print.PrintableInterface, VisualInterface, com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.ComponentInterface, com.sas.DesignTimeDropTargetInterface, com.sas.LinkPropertiesInterface, com.sas.ModelInterface, ValidatorInterface, com.sas.ViewInterface, Dockable, DoubleBufferInterface, MultipleValueEventSourceInterface, VisualAspects, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.ObjectInputValidation, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class Toolbar
implements Dockable

See Also:
Serialized Form

Field Summary
protected  boolean docked
           
static int HORIZONTAL
           
static int VERTICAL
           
protected  boolean wrapped
           
 
Fields inherited from class com.sas.visuals.BufferedPanel
_graphics, _wallpaper
 
Fields inherited from class com.sas.awt.Panel
RB_KEY
 
Fields inherited from interface com.sas.visuals.VisualAspects
BDR_BUMP, BDR_BUTTON_NORMAL, BDR_BUTTON_PRESSED, BDR_BUTTON_SELECTED, BDR_DIP, BDR_FIELD_BORDER, BDR_FLAT, BDR_FLAT_BORDER, BDR_GROUP_BORDER, BDR_NONE, BDR_RAISED, BDR_RAISED_INNER, BDR_RAISED_OUTER, BDR_STATUSFIELD_BORDER, BDR_SUNKEN, BDR_SUNKEN_INNER, BDR_SUNKEN_OUTER, BDR_WINDOW_BORDER, BS_NONE, BS_NORMAL, BS_PRESSED, BS_ROUND_NORMAL, BS_ROUND_PRESSED, BS_ROUND_SELECTED, BS_ROUNDEDGE_NORMAL, BS_ROUNDEDGE_PRESSED, BS_ROUNDEDGE_SELECTED, BS_SELECTED, CENTER, CONTENTS_CENTER, CONTENTS_LEFT, CONTENTS_RIGHT, DEVELOPMENT, DOUBLE_BUFFERED, DT_CENTER, DT_LEFT, DT_OPAQUE, DT_RIGHT, DT_UNDERLINE, EAST, NORTH, NORTH_EAST, NORTH_WEST, SHOW_IMAGE, SHOW_NONE, SHOW_TEXT, SOUTH, SOUTH_EAST, SOUTH_WEST, TEXT_CENTER, TEXT_EAST, TEXT_LEFT, TEXT_NORTH, TEXT_RIGHT, TEXT_SOUTH, TEXT_WEST, WEST
 
Constructor Summary
Toolbar()
           
Toolbar(int orientation)
           
 
Method Summary
 java.awt.Component add(java.awt.Component comp)
           
 java.awt.Component add(java.awt.Component comp, int pos)
           
 void add(int space)
           
 void add(int space, int pos)
           
 void dockNotify(java.lang.Object object)
           
 int getGap()
           
 java.awt.Insets getInsets()
           
 java.awt.LayoutManager getLayout()
           
 int getOrientation()
           
 void insert(int space, int pos)
           
 boolean isDocked()
           
 boolean isWrapped()
           
 void remove(java.awt.Component comp)
          Removes the specified component from the panel
 void remove(int space, int pos)
           
 void setDefaultValues()
          Sets all default values for the panel.
 void setGap(int gap)
           
 void setLayout(java.awt.LayoutManager layout)
           
 void setOrientation(int orientation)
           
 void setWrapped(boolean wrap)
           
 void undockNotify(java.lang.Object object)
           
 
Methods inherited from class com.sas.visuals.BufferedPanel
getMaximumSize, getMinimumSize, getPreferredSize, getWallpaper, getWindowBorderStyle, isDoubleBuffered, paint, paintBackground, paintView, printView, setBackground, setDoubleBuffered, setForeground, setWallpaper, setWindowBorderStyle, update
 
Methods inherited from class com.sas.awt.Panel
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, remove, removeAll, setDefaultHeight, setDefaultWidth
 
Methods inherited from class com.sas.awt.PanelContainerComponent
addNotify, clone, dragEnter, dragLeave, dragOver, drop, getContainerInterfaceSupportInfo, getErrorHandler, getValidator, isIDEDnDDropBarrier, isIDEDnDDropTarget, isValid, removeNotify, setContainerInterfaceSupportInfo, setErrorHandler, setIDEDnDDropBarrier, setIDEDnDDropTarget, setInsets, setInsets, setValidator, superAddNotify, superGetInsets, superRemoveNotify, superSetDefaultValues
 
Methods inherited from class com.sas.awt.PanelVisualComponent
addLink, addPropertyChangeListener, addVetoableChangeListener, anyPropertyChangeListeners, attachModel, attachView, computePreferredSize, detachModel, detachView, dumpComponent, firePropertyChange, firePropertyChange, fireVetoableChange, getBackgroundColor, getBorder, getComponentDescription, getComponentSupportInfo, getEventMethod, getEventValues, getFont, getForegroundColor, getHeight, getHorizontalPosition, getLinkInfo, getModelInterface, getPageBounds, getPrePainter, getPrintOptionsPanel, getRequiredInterfaces, getVerticalPosition, getViewInterfaceSupportInfo, getVisualInterfaceSupportInfo, getWidth, initialize, initializeComponent, isDesignTime, isEnabled, isFocus, isLinked, isTransparent, isVisible, pageExists, print, printFinalize, printInitialize, propertyChange, queryLinks, queryLinks, refresh, removeAllLinks, removeInterfaceTraps, removeLink, removePropertyChangeListener, removeVetoableChangeListener, setBackgroundColor, setBorder, setBounds, setComponentDescription, setComponentSupportInfo, setEnabled, setFocus, setFont, setForegroundColor, setHeight, setHorizontalPosition, setLinkInfo, setModelInterface, setPreferredSize, setPrePainter, setRequiredInterfaces, setTransparent, setVerticalPosition, setViewInterfaceSupportInfo, setVisible, setVisualInterfaceSupportInfo, setWidth, superGetFont, superGetMinimumSize, superGetPreferredSize, superIsEnabled, superIsVisible, superPaint, superSetBounds, superSetEnabled, superSetFont, superSetVisible, superUpdate, supportsListenerInterface, supportsRequiredInterfaces, trapInterfaceEvents, validateObject
 
Methods inherited from interface com.sas.awt.ContainerInterface
getComponents, invalidate, validate
 
Methods inherited from interface com.sas.awt.VisualInterface
computePreferredSize, getBackgroundColor, getBorder, getFont, getForegroundColor, getHeight, getHorizontalPosition, getPrePainter, getVerticalPosition, getVisualInterfaceSupportInfo, getWidth, isEnabled, isFocus, isTransparent, isVisible, setBackgroundColor, setBorder, setBounds, setEnabled, setFocus, setFont, setForegroundColor, setHeight, setHorizontalPosition, setPreferredSize, setPrePainter, setTransparent, setVerticalPosition, setVisible, setVisualInterfaceSupportInfo, setWidth, superGetFont, superGetMinimumSize, superGetPreferredSize, superIsEnabled, superIsVisible, superPaint, superSetBounds, superSetEnabled, superSetFont, superSetVisible, superUpdate
 

Field Detail

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values

docked

protected boolean docked

wrapped

protected boolean wrapped
Constructor Detail

Toolbar

public Toolbar()

Toolbar

public Toolbar(int orientation)
Method Detail

setOrientation

public void setOrientation(int orientation)

getOrientation

public int getOrientation()

setGap

public void setGap(int gap)

getGap

public int getGap()

setWrapped

public void setWrapped(boolean wrap)

isWrapped

public boolean isWrapped()

add

public java.awt.Component add(java.awt.Component comp)
Overrides:
add in class java.awt.Container

add

public void add(int space)

add

public void add(int space,
                int pos)

insert

public void insert(int space,
                   int pos)

add

public java.awt.Component add(java.awt.Component comp,
                              int pos)
Overrides:
add in class java.awt.Container

remove

public void remove(java.awt.Component comp)
Description copied from class: Panel
Removes the specified component from the panel

Overrides:
remove in class Panel
Parameters:
comp - the component to be removed

remove

public void remove(int space,
                   int pos)

dockNotify

public void dockNotify(java.lang.Object object)
Specified by:
dockNotify in interface Dockable

undockNotify

public void undockNotify(java.lang.Object object)
Specified by:
undockNotify in interface Dockable

isDocked

public boolean isDocked()
Specified by:
isDocked in interface Dockable

getLayout

public java.awt.LayoutManager getLayout()
Specified by:
getLayout in interface ContainerInterface
Overrides:
getLayout in class java.awt.Container

setLayout

public void setLayout(java.awt.LayoutManager layout)
Specified by:
setLayout in interface ContainerInterface
Overrides:
setLayout in class java.awt.Container

getInsets

public java.awt.Insets getInsets()
Specified by:
getInsets in interface ContainerInterface
Overrides:
getInsets in class BufferedPanel

setDefaultValues

public void setDefaultValues()
Description copied from class: Panel
Sets all default values for the panel.

Specified by:
setDefaultValues in interface ContainerInterface
Specified by:
setDefaultValues in interface VisualInterface
Specified by:
setDefaultValues in interface com.sas.ComponentInterface
Overrides:
setDefaultValues in class BufferedPanel
See Also:
ContainerInterface.setDefaultValues()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.