public class JFXToolbarServiceImpl extends Object implements DMXToolbarService<javafx.scene.control.ToolBar>
DMXToolbarService
. 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)
DMXToolbarService
addToolbar
in interface DMXToolbarService<javafx.scene.control.ToolBar>
toolbar
- toolbar to addpublic void insertToolbarAtIndex(int index, javafx.scene.control.ToolBar toolbar)
DMXToolbarService
insertToolbarAtIndex
in interface DMXToolbarService<javafx.scene.control.ToolBar>
index
- index to insert toolbar attoolbar
- toolbar to addpublic void setToolbarStyle(String style)
DMXToolbarService
setToolbarStyle
in interface DMXToolbarService<javafx.scene.control.ToolBar>
style
- style to setpublic void registerEventHandlerForId(String id, DMXEventRegistrationHandler handler)
DMXToolbarService
registerEventHandlerForId
in interface DMXToolbarService<javafx.scene.control.ToolBar>
id
- component IDhandler
- event handlerCopyright © 2012-2014 Vektor Software. All Rights Reserved.