public class Toolbar
extends java.lang.Object
Toolbar
class allows you to access and modify the application's toolbar.
The application has one unique instance of toolbar.
A toolbar consists of ToolbarButton
.Modifier and Type | Method and Description |
---|---|
void |
addButton(int index,
ToolbarButton button)
Add a button at a specified index.
|
void |
addButton(ToolbarButton button)
Add a button at the end of the toolbar.
|
void |
addSeparator()
Adds a separator at the end of the toolbar.
|
void |
addSeparator(int index)
Adds a separator at the specified index.
|
int |
countButtons()
Returns the number of buttons in this toolbar.
|
ToolbarButton |
getButton(int index)
Returns a button by index.
|
ToolbarButton |
getButtonByID(int id)
Returns a button by ID.
|
java.lang.Object |
getParent()
Returns the parent object for this object.
|
void |
removeButtonAt(int index)
Removes a button at the specified index.
|
public java.lang.Object getParent()
Application
to which this object belongs.public int countButtons()
public ToolbarButton getButton(int index)
index
- the index of the button in the toolbar.public ToolbarButton getButtonByID(int id) throws CumulusException
id
- the button ID.CumulusException
- if the specified button is not in the toolbar.public void addButton(int index, ToolbarButton button)
index
- the index where to add the button.button
- the button to add.public void addButton(ToolbarButton button)
button
- the button to add.public void removeButtonAt(int index)
index
- the index of the button to remove.public void addSeparator(int index)
index
- the index where to add the separator.public void addSeparator()
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.