Servoy 3.5.x Public API

com.servoy.j2db.util.toolbar
Interface IToolbarPanel


public interface IToolbarPanel

Interface for manipulation 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()
          retus the current used toolbar names.
 void removeToolBar(String name)
          Removed 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

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

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.

getToolBarNames

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

Returns:
an string array of names

removeToolBar

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

Parameters:
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.