com.qoppa.pdfViewer
Class PDFToolbar

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JToolBar
                  extended bycom.qoppa.pdfViewer.PDFToolbar
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable, SwingConstants
Direct Known Subclasses:
EditToolbar

public class PDFToolbar
extends JToolBar

The PDFViewerBean toolbar. The toolbar contains buttons to handle all functions of the PDFViewerBean. The functions include opening documents, printing, changing magnification and moving through the PDF pages. The toolbar is accessible by calling getToolbar in PDFViewerBean. With a reference to the toolbar, it can be made visible/invisible and all buttons within it are also accessible.

Author:
Qoppa Software
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JToolBar
JToolBar.Separator
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
PDFToolbar()
          This method initializes
 
Method Summary
 JButton getJbActualSize()
          Returns the actual size button
 JButton getJbFitToPage()
          Returns the fit to page button
 JButton getJbFitToWidth()
          Returns the fit to width button
 JButton getjbMagLess()
          Returns the decrease magnification button.
 JButton getjbMagMore()
          Returns the increase magnification button.
 JButton getJbMagRect()
          Returns the magnify rectangle button
 JButton getjbOpen()
          Returns the open button.
 JButton getjbPageDown()
          Returns the page down button.
 JButton getjbPageFirst()
          Return the first page button.
 JButton getjbPageLast()
          Returns the last page button
 JButton getjbPageUp()
          Returns the page up button.
 JButton getjbPrint()
          Returns the print button.
 JButton getjbRotateCCW()
          Returns the rotate counter-clockwise button.
 JButton getjbRotateCW()
          Returns the rotate clockwise button.
 JButton getjbSearch()
          Returns the find button.
 JComboBox getjcbMagnify()
          Returns the magnification combo box.
 JLabel getjlTotalPages()
          Returns the total number of pages text field.
 JTextField getjtfPage()
          Returns the page number text field.
 
Methods inherited from class javax.swing.JToolBar
add, addSeparator, addSeparator, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PDFToolbar

public PDFToolbar()
This method initializes

Method Detail

getjcbMagnify

public JComboBox getjcbMagnify()
Returns the magnification combo box.

Returns:
Magnification combo box.

getjbOpen

public JButton getjbOpen()
Returns the open button.

Returns:
Open button.

getjbPrint

public JButton getjbPrint()
Returns the print button.

Returns:
Print button.

getjbMagMore

public JButton getjbMagMore()
Returns the increase magnification button.

Returns:
Magnification increase button.

getjbMagLess

public JButton getjbMagLess()
Returns the decrease magnification button.

Returns:
Decrease magnification button.

getjtfPage

public JTextField getjtfPage()
Returns the page number text field.

Returns:
Page number text field.

getjbPageDown

public JButton getjbPageDown()
Returns the page down button.

Returns:
Page down button.

getjbPageUp

public JButton getjbPageUp()
Returns the page up button.

Returns:
Page up button.

getjbPageLast

public JButton getjbPageLast()
Returns the last page button

Returns:
Last Page button.

getjbPageFirst

public JButton getjbPageFirst()
Return the first page button.

Returns:
First Page button.

getjlTotalPages

public JLabel getjlTotalPages()
Returns the total number of pages text field.

Returns:
Total pages text field.

getjbRotateCCW

public JButton getjbRotateCCW()
Returns the rotate counter-clockwise button.

Returns:
Counter-Clockwise button.

getjbRotateCW

public JButton getjbRotateCW()
Returns the rotate clockwise button.

Returns:
Clockwise button.

getjbSearch

public JButton getjbSearch()
Returns the find button.

Returns:
find button.

getJbActualSize

public JButton getJbActualSize()
Returns the actual size button

Returns:
Actual Size button.

getJbFitToPage

public JButton getJbFitToPage()
Returns the fit to page button

Returns:
Fit to Page button.

getJbFitToWidth

public JButton getJbFitToWidth()
Returns the fit to width button

Returns:
Fit to Width button.

getJbMagRect

public JButton getJbMagRect()
Returns the magnify rectangle button

Returns:
Magnify Rect button.