com.alee.laf.toolbar.WebToolBar Java Examples

The following examples show how to use com.alee.laf.toolbar.WebToolBar. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DemoApplication.java    From weblaf with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Initializes demo application toolbar and its content.
 */
private void initializeToolBar ()
{
    final WebToolBar toolBar = new WebToolBar ( StyleId.toolbarAttachedNorth );
    toolBar.setFloatable ( false );

    toolBar.add ( new SkinChooserTool () );
    toolBar.addSeparator ();
    toolBar.add ( new OrientationChooserTool () );
    toolBar.addSeparator ();
    toolBar.add ( new LanguageChooserTool () );

    toolBar.addToEnd ( new HeatMapTool ( DemoApplication.this ) );
    toolBar.addSeparatorToEnd ();
    toolBar.addToEnd ( new MagnifierToggleTool ( DemoApplication.this ) );

    add ( toolBar, BorderLayout.NORTH );
}
 
Example #2
Source File: ToolBox.java    From Spade with GNU General Public License v3.0 5 votes vote down vote up
public ToolBox()
{
	toolbar = new WebToolBar("Toolbox", WebToolBar.VERTICAL);
	toolbar.setRollover(true);
	toolbar.setFloatable(true);
	toolbar.setFocusable(false);
	toolbar.setToolbarStyle(ToolbarStyle.standalone);
	
	buttonGroup = new ButtonGroup();
}
 
Example #3
Source File: AbstractExample.java    From weblaf with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns preview toolbar.
 *
 * @return preview toolbar
 */
@NotNull
protected JComponent createPreviewToolBar ()
{
    final WebToolBar toolbar = new WebToolBar ( DemoStyles.exampleToolbar );
    toolbar.setFloatable ( false );
    toolbar.add ( getWikiPage ().createLink () );
    return toolbar;
}
 
Example #4
Source File: ToolBox.java    From Spade with GNU General Public License v3.0 4 votes vote down vote up
public WebToolBar getToolbar()
{
	return toolbar;
}