Class symantec.itools.awt.util.ToolBarSpacer
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class symantec.itools.awt.util.ToolBarSpacer
Object
   |
   +----Component
           |
           +----Canvas
                   |
                   +----symantec.itools.awt.util.ToolBarSpacer
  -  public class ToolBarSpacer
  
-  extends Canvas
  
ToolBarPanelSpacer component.
 This component is used to space items in a ToolBarPanel.
  -  Version:
  
 -  1.1, July 24, 1997
  
 -  Author:
  
 -  Symantec
    
 -  See Also:
    
 -  ToolBarPanel
 
  
  -  
	errors
   -   Error strings.
  
 -  
	space
   -   The size of the space the spacer will occupy in pixels..
 
  
  -  
	symantec.itools.awt.util.ToolBarSpacer()
   -   Create a ToolBarSpacer.
 
  
  -  
	addNotify()
   -   Tells this component that it has been added to a container.
  
 -  
	addPropertyChangeListener(PropertyChangeListener)
   -   Adds a listener for all event changes.
  
 -  
	addSpaceListener(PropertyChangeListener)
   -   Adds a listener for Space changes.
  
 -  
	addSpaceListener(VetoableChangeListener)
   -   Adds a vetoable listener for Space changes.
  
 -  
	addVetoableChangeListener(VetoableChangeListener)
   -   Adds a vetoable listener for all event changes.
  
 -  
	getMinimumSize()
   -   Returns the minimum dimensions to properly display this component.
  
 -  
	getPreferredSize()
   -   Returns the recommended dimensions to properly display this component.
  
 -  
	getSpace()
   -   Gets the size of the space the spacer will occupy in pixels.
  
 -  
	isValidSpace(int)
   -   Is the specified space size valid?
 
  
 -  
	minimumSize()
   -   
  
 -  
	preferredSize()
   -   
  
 -  
	removeNotify()
   -   Tells this component that it is being removed from a container.
  
 -  
	removePropertyChangeListener(PropertyChangeListener)
   -   Removes a listener for all event changes.
  
 -  
	removeSpaceListener(PropertyChangeListener)
   -   Removes a listener for Space changes.
  
 -  
	removeSpaceListener(VetoableChangeListener)
   -   Removes a vetoable listener for Space changes.
  
 -  
	removeVetoableChangeListener(VetoableChangeListener)
   -   Removes a vetoable listener for all event changes.
  
 -  
	setSpace(int)
   -   Sets the size of the space the spacer will occupy in pixels.
 
  
errors
protected transient java.util.ResourceBundle errors
  -  Error strings.
 
space
protected int space
  -  The size of the space the spacer will occupy in pixels..
 
  
ToolBarSpacer
public ToolBarSpacer()
  -  Create a ToolBarSpacer.  It's default space value is 10 pixels.
  
 
 
  
addNotify
public synchronized void addNotify()
  -  Tells this component that it has been added to a container.
 This is a standard Java AWT method which gets called by the AWT when
 this component is added to a container. Typically, it is used to
 create this component's peer.
 It has been overridden here to hook-up event listeners.
  
 
 
    -  Overrides:
    
 -  addNotify in class Canvas
    
 -  See Also:
    
 -  removeNotify
  
 
 
 
addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
  -  Adds a listener for all event changes.
  
 
 
    -  Parameters:
    
 -  listener - the listener to add.
    
 -  See Also:
    
 -  removePropertyChangeListener
  
 
 
 
addSpaceListener
public synchronized void addSpaceListener(PropertyChangeListener listener)
  -  Adds a listener for Space changes.
  
 
 
    -  Parameters:
    
 -  listener - the listener to add.
    
 -  See Also:
    
 -  removeSpaceListener
  
 
 
 
addSpaceListener
public synchronized void addSpaceListener(VetoableChangeListener listener)
  -  Adds a vetoable listener for Space changes.
  
 
 
    -  Parameters:
    
 -  listener - the listener to add.
    
 -  See Also:
    
 -  removeSpaceListener
  
 
 
 
addVetoableChangeListener
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)
  -  Adds a vetoable listener for all event changes.
  
 
 
    -  Parameters:
    
 -  listener - the listener to add.
    
 -  See Also:
    
 -  removeVetoableChangeListener
  
 
 
 
getMinimumSize
public synchronized java.awt.Dimension getMinimumSize()
  -  Returns the minimum dimensions to properly display this component.
 This is a standard Java AWT method which gets called to determine
 the minimum size of this component.
 In this case the minimum size is the same as the preferred size.
  
 
 
    -  Overrides:
    
 -  getMinimumSize in class Component
    
 -  See Also:
    
 -  getPreferredSize
  
 
 
 
getPreferredSize
public synchronized java.awt.Dimension getPreferredSize()
  -  Returns the recommended dimensions to properly display this component.
 This is a standard Java AWT method which gets called to determine
 the recommended size of this component.
  
 
 
    -  Returns:
    
 -  The width is the Space value and the height is the tallest component
 the ToolBarPanel, if the parent ToolBarPanel's Orientation is HORIZONTAL.
 The height is the Space value and the width is the widest component
 the ToolBarPanel, if the parent ToolBarPanel's Orientation is VERTICAL.
 NOTE: If the parent of this class is not an instance of ToolBarPanel, this will
 return 10,10.
    
 -  Overrides:
    
 -  getPreferredSize in class Component
    
 -  See Also:
    
 -  setSpace, getSpace, getMinimumSize
  
 
 
 
getSpace
public int getSpace()
  -  Gets the size of the space the spacer will occupy in pixels.
  
 
 
    -  Returns:
    
 -  the size of the space in pixels
    
 -  See Also:
    
 -  setSpace
  
 
 
 
isValidSpace
public boolean isValidSpace(int spaceSize)
  -  Is the specified space size valid?
  
 
 
    -  Parameters:
    
 -  spaceSize - the value to test
    
 -  Returns:
    
 -  true if the parameter is greater or equal to zero.
    
 -  See Also:
    
 -  setSpace, getSpace
  
 
 
 
minimumSize
public synchronized java.awt.Dimension minimumSize()
-  Note: minimumSize() is deprecated.
  
-  
  
 
 
    -  Overrides:
    
 -  minimumSize in class Component
    
 -  See Also:
    
 -  getMinimumSize
  
 
 
  
preferredSize
public synchronized java.awt.Dimension preferredSize()
-  Note: preferredSize() is deprecated.
  
-  
  
 
 
    -  Overrides:
    
 -  preferredSize in class Component
    
 -  See Also:
    
 -  getPreferredSize
  
 
 
  
removeNotify
public synchronized void removeNotify()
  -  Tells this component that it is being removed from a container.
 This is a standard Java AWT method which gets called by the AWT when
 this component is removed from a container. Typically, it is used to
 destroy the peers of this component and all its subcomponents.
 It has been overridden here to unhook event listeners.
  
 
 
    -  Overrides:
    
 -  removeNotify in class Component
    
 -  See Also:
    
 -  addNotify
  
 
 
 
removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
  -  Removes a listener for all event changes.
  
 
 
    -  Parameters:
    
 -  listener - the listener to remove.
    
 -  See Also:
    
 -  addPropertyChangeListener
  
 
 
 
removeSpaceListener
public synchronized void removeSpaceListener(PropertyChangeListener listener)
  -  Removes a listener for Space changes.
  
 
 
    -  Parameters:
    
 -  listener - the listener to remove.
    
 -  See Also:
    
 -  addSpaceListener
  
 
 
 
removeSpaceListener
public synchronized void removeSpaceListener(VetoableChangeListener listener)
  -  Removes a vetoable listener for Space changes.
  
 
 
    -  Parameters:
    
 -  listener - the listener to remove.
    
 -  See Also:
    
 -  addSpaceListener
  
 
 
 
removeVetoableChangeListener
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)
  -  Removes a vetoable listener for all event changes.
  
 
 
    -  Parameters:
    
 -  listener - the listener to remove.
    
 -  See Also:
    
 -  addVetoableChangeListener
  
 
 
 
setSpace
public void setSpace(int value) throws PropertyVetoException
  -  Sets the size of the space the spacer will occupy in pixels.
  
 
 
    -  Parameters:
    
 -  value - the size of the space in pixels
    
 -  Throws: PropertyVetoException
    
 -   if the specified property value is unacceptable
    
 -  See Also:
    
 -  getSpace
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index