public class JFXToolbarServiceImpl extends Object implements JFXToolbarService
JFXToolbarService
. It provides a way to add toolbars
to top of the main window, right under main menu bar.Constructor and Description |
---|
JFXToolbarServiceImpl(javafx.stage.Stage stage)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addToolbar(javafx.scene.control.ToolBar toolbar)
Add toolbar to main window toolbar.
|
void |
insertToolbarAtIndex(int index,
javafx.scene.control.ToolBar toolbar)
Insert toolbar at specified index in main window toolbar.
|
void |
registerEventHandlerForId(String id,
DMXEventRegistrationHandler handler)
Registers event handler on toolbar component with specified ID.
|
void |
setToolbarStyle(String style)
Sets style for the main toolbar.
|
public JFXToolbarServiceImpl(javafx.stage.Stage stage)
stage
- main window stagepublic void addToolbar(javafx.scene.control.ToolBar toolbar)
JFXToolbarService
addToolbar
in interface JFXToolbarService
toolbar
- toolbar to addpublic void insertToolbarAtIndex(int index, javafx.scene.control.ToolBar toolbar)
JFXToolbarService
insertToolbarAtIndex
in interface JFXToolbarService
index
- index to insert toolbar attoolbar
- toolbar to addpublic void setToolbarStyle(String style)
JFXToolbarService
setToolbarStyle
in interface JFXToolbarService
style
- style to setpublic void registerEventHandlerForId(String id, DMXEventRegistrationHandler handler)
JFXToolbarService
registerEventHandlerForId
in interface JFXToolbarService
id
- component IDhandler
- event handlerCopyright © 2012-2014 Vektor Software. All Rights Reserved.