Servoy 4.1.x Public API

com.servoy.j2db.util.toolbar
Interface IToolbarPanel


public interface IToolbarPanel

Interface for manipulating the toolbars.


Method Summary
 Toolbar createToolbar(String name, String displayName)
          Creates a toolbar with a underlying name and display name on the first row possible where it fits.
 Toolbar createToolbar(String name, String displayName, int wantedRow)
          Creates a toolbar with a underlying name and display name on row that is specified.
 Toolbar getToolBar(String name)
          Returns the toolbar that has the given name.
 String[] getToolBarNames()
          Returns the current used toolbar names.
 void removeToolBar(String name)
          Removes the toolbar specified with the name from the toolbar panel
 void setToolbarVisible(String name, boolean visible)
          Set the visibility of toolbar with the given name.
 

Method Detail

getToolBarNames

String[] getToolBarNames()
Returns the current used toolbar names.

Returns:
an string array of names

createToolbar

Toolbar createToolbar(String name,
                      String displayName)
Creates a toolbar with a underlying name and display name on the first row possible where it fits.

Parameters:
name - The internal name of the toolbar
displayName - The name that is displayed to a user.
Returns:
The Toolbar that is created

createToolbar

Toolbar createToolbar(String name,
                      String displayName,
                      int wantedRow)
Creates a toolbar with a underlying name and display name on row that is specified.

Parameters:
name - The internal name of the toolbar
displayName - The name that is displayed to a user.
wantedRow - The row where it should be displayed.
Returns:
The Toolbar that is created

removeToolBar

void removeToolBar(String name)
Removes the toolbar specified with the name from the toolbar panel

Parameters:
name -

getToolBar

Toolbar getToolBar(String name)
Returns the toolbar that has the given name.

Parameters:
name - The name
Returns:
The toolbar that has that name or null if there wasn't a toolbar with that name.

setToolbarVisible

void setToolbarVisible(String name,
                       boolean visible)
Set the visibility of toolbar with the given name.

Parameters:
name -
visible -

Copyright © 2009 Servoy B.V.

>