|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dsto.dfc.swing.commands.CommandToolBars
public final class CommandToolBars
Utility class for creating toolbars from command views.
Field Summary | |
---|---|
static Object |
SHOW_NAME_KEY
Key for indicating that a command should be shown with its command name text on the toolbar. |
Method Summary | |
---|---|
static void |
addToolBarDivider(JToolBar toolBar)
Add a divider to the bottom of the toolbar, similar to that used at the bottom of a menu bar. |
static void |
makeToolBar(JToolBar toolbar,
CommandView commandView)
Create a toolbar from the specified command view. |
static void |
showName(CommandView view,
Command command)
Shortcut to set the SHOW_NAME_KEY command property to true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Object SHOW_NAME_KEY
eg:
commandView.setCommandProperty (command.getName (), CommandToolbars.SHOW_NAME_KEY, Boolean.TRUE);
Method Detail |
---|
public static void makeToolBar(JToolBar toolbar, CommandView commandView)
public static void addToolBarDivider(JToolBar toolBar)
public static void showName(CommandView view, Command command)
SHOW_NAME_KEY
command property to true.
You usually have to call this before adding the command to the view for
the toolbar UI to honor it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |