com.sibvisions.rad.ui.web.impl.container
Class WebToolBar

java.lang.Object
  extended by com.sibvisions.rad.ui.web.impl.WebResource
      extended by com.sibvisions.rad.ui.web.impl.WebComponent
          extended by com.sibvisions.rad.ui.web.impl.WebContainer
              extended by com.sibvisions.rad.ui.web.impl.container.WebToolBar
All Implemented Interfaces:
IToolBar, IAlignmentConstants, IComponent, IContainer, IResource

public class WebToolBar
extends WebContainer
implements IToolBar

Web server implementation of IToolBar.


Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.web.impl.WebContainer
components
 
Fields inherited from class com.sibvisions.rad.ui.web.impl.WebComponent
componentId
 
Fields inherited from interface javax.rad.ui.container.IToolBar
HORIZONTAL, VERTICAL
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
WebToolBar()
          Creates a new instance of WebToolBar.
 
Method Summary
 WebInsets getMargins()
          Returns the margin between the tool bar's border and its buttons.
 int getOrientation()
          Returns the current orientation of the tool bar.
 boolean isMovable()
          Returns whether the toolbar is movable.
 void setMargins(IInsets pMargins)
          Sets the margin between the tool bar's border and its buttons.
 void setMovable(boolean pMovable)
          Sets whether the toolbar is movable.
 void setOrientation(int pOrientation)
          Sets the orientation of the tool bar.
 
Methods inherited from class com.sibvisions.rad.ui.web.impl.WebContainer
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout
 
Methods inherited from class com.sibvisions.rad.ui.web.impl.WebComponent
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, finalize, getAsString, getBackground, getBounds, getChangedProperties, getComponentId, getComponentName, getConstraints, getCursor, getFactory, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getProperty, getSize, getToolTipText, getVerticalAlignment, isBackgroundSet, isChanged, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setComponentId, setConstraints, setCursor, setEnabled, setFactory, setFocusable, setFont, setForeground, setHorizontalAlignment, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setProperty, setProperty, setSize, setToolTipText, setVerticalAlignment, setVisible
 
Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource
getNullableAsString, getResource, setAsString, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.IContainer
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Constructor Detail

WebToolBar

public WebToolBar()
Creates a new instance of WebToolBar.

See Also:
IToolBar
Method Detail

getOrientation

public int getOrientation()
Returns the current orientation of the tool bar. The value is either HORIZONTAL or VERTICAL.

Specified by:
getOrientation in interface IToolBar
Returns:
an integer representing the current orientation -- either HORIZONTAL or VERTICAL
See Also:
IToolBar.setOrientation(int)

setOrientation

public void setOrientation(int pOrientation)
Sets the orientation of the tool bar. The orientation must have either the value HORIZONTAL or VERTICAL. If orientation is an invalid value, an exception will be thrown.

Specified by:
setOrientation in interface IToolBar
Parameters:
pOrientation - the new orientation -- either HORIZONTAL or VERTICAL
See Also:
IToolBar.getOrientation()

getMargins

public WebInsets getMargins()
Returns the margin between the tool bar's border and its buttons.

Specified by:
getMargins in interface IToolBar
Returns:
an Insets object containing the margin values

setMargins

public void setMargins(IInsets pMargins)
Sets the margin between the tool bar's border and its buttons. Setting to null causes the tool bar to use the default margins. The tool bar's default Border object uses this value to create the proper margin. However, if a non-default border is set on the tool bar, it is that Border object's responsibility to create the appropriate margin space (otherwise this property will effectively be ignored).

Specified by:
setMargins in interface IToolBar
Parameters:
pMargins - an Insets object that defines the space between the border and the buttons

setMovable

public void setMovable(boolean pMovable)
Sets whether the toolbar is movable. Typically, a movable tool bar can be dragged into a different position within the same container or out into its own window.

Specified by:
setMovable in interface IToolBar
Parameters:
pMovable - true if the toolbar is movable, false otherwise

isMovable

public boolean isMovable()
Returns whether the toolbar is movable.

Specified by:
isMovable in interface IToolBar
Returns:
true if the toolbar is movable


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.