jdbreport.view
Class ReportEditorPane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by jdbreport.view.ReportPane
                      extended by jdbreport.view.ReportEditorPane
All Implemented Interfaces:
and.finder.Finder, ActionListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, TargetGrid, UndoListener, CellSelectListener, ReportListListener, HeighCalculator

public class ReportEditorPane
extends ReportPane
implements CellSelectListener, ActionListener

Version:
2.0 18.04.2012
Author:
Andrey Kholmanskih
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  String excelCommand
           
static boolean isWindows
           
protected  String odsCommand
           
protected  Action saveAction
           
 
Fields inherited from class jdbreport.view.ReportPane
CURRENT_DIRECTORY_PATH, CURRENT_FILE_FILTER, CURRENT_FILTER, CURRENT_IMAGE_PATH, EXCEL_COMMAND, gridMenu, JDBREPORT_CONF, LOOK_AND_FEEL, ODS_COMMAND, POS_X, POS_Y, properties, SIZE_HEIGHT, SIZE_WIDTH, WINDOW_STATE
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ReportEditorPane(and.properties.XMLProperties properties)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  void addAlignAction(JToolBar alignBar)
           
protected  void addBorderAction(BorderDialog bar)
           
protected  void addGridListeners(JReportGrid grid)
           
protected  void addToolBars()
           
protected  void cellChanged(JReportGrid rep, CellWrap cellWrap)
           
 void cellSelectedChange(CellSelectChangedEvent evt)
          implements CellSelectListener
 void changeLookAndFeel()
           
protected  AbstractButton createColumnBreakItem()
           
protected  JPanel createCoolBar()
           
protected  JMenu createFileMenu()
           
protected  JPopupMenu createGridMenu()
           
protected  JMenu createHelpMenu()
           
protected  JButton createInsertRowButton()
           
 JMenuBar createJMenuBar()
           
protected  PreferencesDlg createPreferences()
           
protected  AbstractButton createRowBreakItem()
           
protected  JPopupMenu createTabMenu()
           
protected  AbstractButton createUnionCellItem()
           
protected  void disableAction()
           
protected  void enableAction()
           
protected  void exportToCalc()
           
protected  void fillAdvancedGridMenu(JPopupMenu menu)
           
protected  void fillGridMenu(JPopupMenu menu)
           
protected  Action getAboutAction()
           
protected  Action getAddSheetAction()
           
protected  and.actions.ToggleAction getAutoHeightAction()
           
protected  BorderDialog getBorderDialog()
           
protected  and.actions.ToggleAction getColumnBreakAction()
           
protected  JPanel getCoolBar()
          This method initializes coolBar
protected  Action getDeleteImageAction()
           
protected  Action getDelSheetAction()
           
protected  JMenu getEditMenu()
           
protected  Action getExitAction()
           
 JMenu getFileMenu()
           
protected  JToolBar getFormatBar()
           
 HelpWindow getHelpWindow()
           
protected  Action getImageAction()
           
protected  JMenu getImageMenu()
           
 JMenu getLfMenu()
           
protected  Action getLoadSheetAction()
           
protected  Action getMoveLeftSheetAction()
           
protected  Action getMoveRightSheetAction()
           
protected  Action getNewAction()
           
protected  Action getOpenAction()
           
protected  Action getPageSetupAction()
           
protected  Action getPreviewAction()
           
protected  Action getPrintAction()
           
protected  Action getPrintSheetAction()
           
protected  Action getPropertiesAction()
           
protected  and.actions.ToggleAction getRowBreakAction()
           
protected  Action getSaveAction()
           
protected  Action getSaveAsAction()
           
protected  Action getSaveImageAction()
           
protected  Action getSaveSheetAction()
           
protected  and.actions.ToggleAction getScaleImageAction()
           
protected  JToolBar getStandartBar()
           
protected  and.actions.ToggleAction getUnionCellAction()
           
protected  void initActions()
           
protected  void initProperties()
           
protected  void installListeners()
           
protected  boolean isEnabledAction()
           
 boolean loadSheet()
           
protected  void moveLeftSheet()
           
protected  void moveRightSheet()
           
 void propertyChange(PropertyChangeEvent evt)
           
protected  void readProperties()
           
protected  void removeGridListeners(JReportGrid grid)
           
protected  boolean saveAs()
           
protected  void saveProperties()
           
 void setColumnWidth()
           
 void setRowHeight()
           
protected  void showAbout()
           
protected  void showHelp()
           
protected  void showHelp(URL url)
           
protected  void showProperties()
           
protected  void uninstallListeners()
           
protected  void updateSheetActions()
           
protected  void updateUndoRedoState()
           
protected  void writeProperties()
           
 
Methods inherited from class jdbreport.view.ReportPane
addReportGrid, addReportGrid, addReportGrid, calcRowHeight, canShowGrid, clear, createDefaultReportBook, createFileChooser, createReportGrid, find, findReportGrid, getCaption, getCopyAction, getCutAction, getDefaultFilter, getDeleteAction, getFileTypeClass, getFindAction, getFocusedGrid, getFocusedIndex, getGridMenu, getParentFrame, getPasteAction, getProperties, getRedoAction, getReportBook, getReportFile, getReportGrid, getReportGridList, getSelectAllAction, getStringMetrics, getTabbedIcon, getTabbedPane, getTabCount, getTabMenu, getUndoAction, getUndoStack, hasRedo, hasUndo, incrementalFind, indexOfTabbed, insertReportBook, insertReportGrid, isDirty, isModified, loadSheet, moveSheet, newReport, open, open, open, open, preview, print, print, print, printPdfDocument, printSheet, pushUndo, pushUndo, redo, removeReportGrid, reportAdded, reportMoved, reportRemoved, resetDirty, save, saveAs, saveQuestion, saveSheet, saveSheet, setDirty, setFocusedGrid, setGridMenu, setGridVisible, setReportBook, setTabMenu, setTitle, showFindPanel, undo, unionUndo, updateCaption
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

saveAction

protected Action saveAction

excelCommand

protected String excelCommand

odsCommand

protected String odsCommand

isWindows

public static final boolean isWindows
Constructor Detail

ReportEditorPane

public ReportEditorPane(and.properties.XMLProperties properties)
Method Detail

createTabMenu

protected JPopupMenu createTabMenu()

createGridMenu

protected JPopupMenu createGridMenu()

fillGridMenu

protected void fillGridMenu(JPopupMenu menu)

fillAdvancedGridMenu

protected void fillAdvancedGridMenu(JPopupMenu menu)

setRowHeight

public void setRowHeight()

setColumnWidth

public void setColumnWidth()

initActions

protected void initActions()
Overrides:
initActions in class ReportPane

showAbout

protected void showAbout()

getCoolBar

protected JPanel getCoolBar()
This method initializes coolBar

Returns:
javax.swing.JPanel

createCoolBar

protected JPanel createCoolBar()

addToolBars

protected void addToolBars()

getBorderDialog

protected BorderDialog getBorderDialog()

getFormatBar

protected JToolBar getFormatBar()

getImageMenu

protected JMenu getImageMenu()

exportToCalc

protected void exportToCalc()

showProperties

protected void showProperties()

createPreferences

protected PreferencesDlg createPreferences()

addAlignAction

protected void addAlignAction(JToolBar alignBar)

createUnionCellItem

protected AbstractButton createUnionCellItem()

createRowBreakItem

protected AbstractButton createRowBreakItem()

createColumnBreakItem

protected AbstractButton createColumnBreakItem()

getPageSetupAction

protected Action getPageSetupAction()

getPrintAction

protected Action getPrintAction()

getPreviewAction

protected Action getPreviewAction()

getOpenAction

protected Action getOpenAction()

getImageAction

protected Action getImageAction()

getSaveImageAction

protected Action getSaveImageAction()

getScaleImageAction

protected and.actions.ToggleAction getScaleImageAction()

getDeleteImageAction

protected Action getDeleteImageAction()

getSaveAction

protected Action getSaveAction()

getPropertiesAction

protected Action getPropertiesAction()

getUnionCellAction

protected and.actions.ToggleAction getUnionCellAction()

getAutoHeightAction

protected and.actions.ToggleAction getAutoHeightAction()

getRowBreakAction

protected and.actions.ToggleAction getRowBreakAction()

getColumnBreakAction

protected and.actions.ToggleAction getColumnBreakAction()

cellSelectedChange

public void cellSelectedChange(CellSelectChangedEvent evt)
implements CellSelectListener

Specified by:
cellSelectedChange in interface CellSelectListener

getStandartBar

protected JToolBar getStandartBar()

createInsertRowButton

protected JButton createInsertRowButton()

cellChanged

protected void cellChanged(JReportGrid rep,
                           CellWrap cellWrap)

isEnabledAction

protected boolean isEnabledAction()

enableAction

protected void enableAction()

disableAction

protected void disableAction()

moveLeftSheet

protected void moveLeftSheet()

moveRightSheet

protected void moveRightSheet()

loadSheet

public boolean loadSheet()
Overrides:
loadSheet in class ReportPane

updateSheetActions

protected void updateSheetActions()
Overrides:
updateSheetActions in class ReportPane

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class ReportPane

addGridListeners

protected void addGridListeners(JReportGrid grid)
Overrides:
addGridListeners in class ReportPane

removeGridListeners

protected void removeGridListeners(JReportGrid grid)
Overrides:
removeGridListeners in class ReportPane

addBorderAction

protected void addBorderAction(BorderDialog bar)

updateUndoRedoState

protected void updateUndoRedoState()
Overrides:
updateUndoRedoState in class ReportPane

getAddSheetAction

protected Action getAddSheetAction()

getDelSheetAction

protected Action getDelSheetAction()

getLoadSheetAction

protected Action getLoadSheetAction()

getSaveSheetAction

protected Action getSaveSheetAction()

getMoveLeftSheetAction

protected Action getMoveLeftSheetAction()

getMoveRightSheetAction

protected Action getMoveRightSheetAction()

getPrintSheetAction

protected Action getPrintSheetAction()

getAboutAction

protected Action getAboutAction()

createHelpMenu

protected JMenu createHelpMenu()

getLfMenu

public JMenu getLfMenu()

saveAs

protected boolean saveAs()

getSaveAsAction

protected Action getSaveAsAction()

createFileMenu

protected JMenu createFileMenu()

getExitAction

protected Action getExitAction()

getFileMenu

public JMenu getFileMenu()

getEditMenu

protected JMenu getEditMenu()

createJMenuBar

public JMenuBar createJMenuBar()

getNewAction

protected Action getNewAction()

changeLookAndFeel

public void changeLookAndFeel()

readProperties

protected void readProperties()

saveProperties

protected void saveProperties()

writeProperties

protected void writeProperties()

initProperties

protected void initProperties()

installListeners

protected void installListeners()
Overrides:
installListeners in class ReportPane

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class ReportPane

showHelp

protected void showHelp()

getHelpWindow

public HelpWindow getHelpWindow()

showHelp

protected void showHelp(URL url)

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener