|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.randgestalten.toolbar.AbstractToolbarBuilder<V,T>
de.randgestalten.toolbar.AbstractSegmentedToolbarBuilder<UnifiedToolbarBuilder,JComponent>
de.randgestalten.toolbar.UnifiedToolbarBuilder
public class UnifiedToolbarBuilder
A ToolbartBuilder that creates a UnifiedToolbar from MacWidgets (you need that
in your classpath !). By default, all components are added to the left group of the unified toolbar.
Use left(), center() and right() to switch groups.
You can use createGroup(String) to create labeled views.
To follow the mac style, focus painting for buttons is disabled by default. Enable it using enableButtonFocus(boolean).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.randgestalten.toolbar.AbstractToolbarBuilder |
|---|
AbstractToolbarBuilder.ComponentFactory, AbstractToolbarBuilder.DefaultComponentFactory |
| Field Summary |
|---|
| Fields inherited from class de.randgestalten.toolbar.AbstractToolbarBuilder |
|---|
builder, componentFactory, componentProperties, focusPainting, orientation, parent, toolbar, uiclass |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
|
UnifiedToolbarBuilder()
Craete a new builder |
|
UnifiedToolbarBuilder(JComponent toolbar)
|
|
UnifiedToolbarBuilder(JComponent toolbar,
int orientation)
|
|
UnifiedToolbarBuilder(JToolBar toolbar)
|
protected |
UnifiedToolbarBuilder(UnifiedToolbarBuilder parent,
JComponent container)
|
| Method Summary | |
|---|---|
protected void |
addImpl(JComponent component)
Internal method that adds component to the toolbar container |
UnifiedToolbarBuilder |
center()
Switch to the center group |
protected UnifiedToolbarBuilder |
createGroup(JComponent container)
Create a new buidler group |
UnifiedToolbarBuilder |
createGroup(String label)
Create a labeled group using mac widgets LabeledComponentGroup as the gorups container. |
UnifiedToolbarBuilder |
createGroup(String label,
JComponent... components)
Creats a labeld group from the given components and adds it to the toolbar. |
UnifiedToolbarBuilder |
enableButtonFocus(boolean enabled)
Enable/Disable painting of the button focus. |
JComponent |
getToolbar()
|
com.explodingpixels.macwidgets.UnifiedToolBar |
getUnifiedToolbar()
Access the unified toolbar |
protected JComponent |
installUI(AbstractButton button,
Class<? extends ButtonUI> ui)
To go with the mac style, we disable focus painting for buttons. |
UnifiedToolbarBuilder |
left()
Switch to the left group |
UnifiedToolbarBuilder |
right()
Switch to the right group |
| Methods inherited from class de.randgestalten.toolbar.AbstractSegmentedToolbarBuilder |
|---|
applyPosition, initBuilder, withSegmentation |
| Methods inherited from class de.randgestalten.toolbar.AbstractToolbarBuilder |
|---|
add, add, add, add, add, addSeperator, addSeperator, close, createGroup, createGroupContainer, createGroupContainer, getBuilder, prepareComponent, withComponentFactory, withFocusPainting, withProperty, withUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnifiedToolbarBuilder()
public UnifiedToolbarBuilder(JToolBar toolbar)
public UnifiedToolbarBuilder(JComponent toolbar)
public UnifiedToolbarBuilder(JComponent toolbar,
int orientation)
protected UnifiedToolbarBuilder(UnifiedToolbarBuilder parent,
JComponent container)
| Method Detail |
|---|
protected JComponent installUI(AbstractButton button,
Class<? extends ButtonUI> ui)
installUI in class AbstractToolbarBuilder<UnifiedToolbarBuilder,JComponent>button - the buttonui - the ui class
public UnifiedToolbarBuilder enableButtonFocus(boolean enabled)
enabled -
public UnifiedToolbarBuilder center()
public UnifiedToolbarBuilder right()
public UnifiedToolbarBuilder left()
public UnifiedToolbarBuilder createGroup(String label)
label - the label
public UnifiedToolbarBuilder createGroup(String label,
JComponent... components)
label - the labelcomponents - the components
protected UnifiedToolbarBuilder createGroup(JComponent container)
AbstractToolbarBuilder
createGroup in class AbstractToolbarBuilder<UnifiedToolbarBuilder,JComponent>container - the container
public JComponent getToolbar()
getToolbar in class AbstractToolbarBuilder<UnifiedToolbarBuilder,JComponent>public com.explodingpixels.macwidgets.UnifiedToolBar getUnifiedToolbar()
protected void addImpl(JComponent component)
AbstractToolbarBuilder
addImpl in class AbstractSegmentedToolbarBuilder<UnifiedToolbarBuilder,JComponent>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||