|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JToolBar
org.crosswire.common.swing.desktop.ToolBar
public class ToolBar
This toolbar allows for manipulating how it looks. That is it allows for:
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JToolBar |
---|
JToolBar.AccessibleJToolBar, JToolBar.Separator |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private ActionFactory |
actions
|
private JFrame |
frame
The frame in which the toolbar is shown. |
private static long |
serialVersionUID
Serialization ID |
private static String |
TOOLBAR_LARGE
|
private static String |
TOOLBAR_TEXT
|
private static String |
TOOLBAR_TOGGLE
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
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 |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ToolBar(JFrame frame)
ToolBar constructor. |
Method Summary | |
---|---|
void |
doToolBarLarge(ActionEvent ev)
Show large or small tool bar icons. |
void |
doToolBarText(ActionEvent ev)
Show or hide the tool bar text. |
void |
doToolBarToggle(ActionEvent ev)
Show or hide the tool bar. |
JMenuItem |
getIconSizeToggle()
Build a menu item that an end user can use to toggle the size of the icons |
JMenuItem |
getShowToggle()
Build a menu item that an end user can use to toggle visibility of the toolbar |
JMenuItem |
getTextToggle()
Build a menu item that an end user can use to toggle the text |
private void |
readObject(ObjectInputStream is)
Serialization support. |
void |
showLargeIcons(boolean large)
Sets the size of the tool bar button images. |
void |
showText(boolean show)
Set the tool tip text for the buttons on the tool bar. |
void |
showToolBar(boolean show)
Show or hide the tool bar. |
Methods inherited from class javax.swing.JToolBar |
---|
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final String TOOLBAR_TOGGLE
private static final String TOOLBAR_TEXT
private static final String TOOLBAR_LARGE
private JFrame frame
private transient ActionFactory actions
private static final long serialVersionUID
Constructor Detail |
---|
public ToolBar(JFrame frame)
Method Detail |
---|
public void showToolBar(boolean show)
show
- indicates whether the toolbar is visiblepublic void showText(boolean show)
show
- indicates whether the buttons should be labelledpublic void showLargeIcons(boolean large)
large
- indicates whether large buttons should be usedpublic JMenuItem getShowToggle()
public JMenuItem getTextToggle()
public JMenuItem getIconSizeToggle()
public void doToolBarToggle(ActionEvent ev)
public void doToolBarText(ActionEvent ev)
public void doToolBarLarge(ActionEvent ev)
private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException
is
-
IOException
ClassNotFoundException
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |