com.extentech.ExtenXLS.eventui
Class WorkBookPanel

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 com.extentech.ExtenXLS.eventui.WorkBookPanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class WorkBookPanel
extends javax.swing.JPanel

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
WorkBookPanel()
          Default constructor.
 
Method Summary
 void addTableModelListener(javax.swing.event.TableModelListener listener)
          Deprecated. Use the various listeners on WorkBookModel instead.
 void close()
           
 com.extentech.swingtools.BrowserInternalFrame getBrowser()
          Deprecated. No longer used internally. Should not have been public.
 javax.swing.JTextField getCellTextField()
          Deprecated. No longer used internally. Should not have been public.
 WorkBookModel getModel()
           
 javax.swing.JInternalFrame getParentJInternalFrame()
          Deprecated. No longer used internally. Should not have been public.
 java.util.List getSheetTables()
          Deprecated. No longer used internally. Should not have been public.
 ExtenXLSTable getTable()
           
 WorkBookHandle getWorkBook()
          Retrieves the WorkBookHandle currently being displayed.
 void initNewWorkBook()
          Deprecated. Use load() instead.
 void initSheets(WorkBookHandle book)
          Deprecated. Use load(WorkBookHandle) instead.
 void initXLS()
          Deprecated. Use load(File) instead.
 void initXLS(byte[] bytes)
          Deprecated. Use load(byte[]) instead.
 void load()
           
 void load(byte[] bytes)
           
 void load(java.io.File infile)
           
 void load(WorkBookHandle book)
           
 void load(WorkBookModel model)
           
 void save()
          Saves the currently open workbook to the file from which it was read.
 void save(java.io.File file)
          Saves the currently open workbook to the given file.
 void saveBookToFile()
          Deprecated. Use save() instead.
 void setBrowser(com.extentech.swingtools.BrowserInternalFrame frame)
          Deprecated. No longer used internally. Should not have been public.
 void setDebugLevel(int level)
          Deprecated. No longer has any effect.
 void setParentJInternalFrame(javax.swing.JInternalFrame frame)
          Deprecated. No longer used internally. Should not have been public.
 void setXLSOutputFilePath(java.lang.String path)
          Deprecated. Use save(File) instead.
 void setXLSTemplateFilePath(java.lang.String file)
          Deprecated. Init a WorkBookHandle from the file and call #init.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, 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, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkBookPanel

public WorkBookPanel()
Default constructor.

Method Detail

addTableModelListener

public void addTableModelListener(javax.swing.event.TableModelListener listener)
Deprecated. Use the various listeners on WorkBookModel instead.

Adds a TableModelListener to the TableModel.

Parameters:
listener - the TableModelListener to be added

setXLSTemplateFilePath

public void setXLSTemplateFilePath(java.lang.String file)
Deprecated. Init a WorkBookHandle from the file and call #init.

Sets the path from which a file is to be read.

Parameters:
file - the path from which the input file should be read

setXLSOutputFilePath

public void setXLSOutputFilePath(java.lang.String path)
Deprecated. Use save(File) instead.

Sets the path to which a file is to be written.

Parameters:
path - the path to which the output file should be written.

setDebugLevel

public void setDebugLevel(int level)
Deprecated. No longer has any effect.


getWorkBook

public WorkBookHandle getWorkBook()
Retrieves the WorkBookHandle currently being displayed. This is a convenience method for WorkBookModel.getWorkBook().


saveBookToFile

public void saveBookToFile()
Deprecated. Use save() instead.

Saves the current workbook to a file.


initXLS

public void initXLS(byte[] bytes)
Deprecated. Use load(byte[]) instead.

Initializes from the given byte array.


initXLS

public void initXLS()
             throws java.lang.Exception
Deprecated. Use load(File) instead.

Initializes from the file specified by setXLSTemplateFilePath(java.lang.String).

Throws:
java.lang.Exception

initNewWorkBook

public void initNewWorkBook()
Deprecated. Use load() instead.

Initializes from a new, empty WorkBook.


initSheets

public void initSheets(WorkBookHandle book)
Deprecated. Use load(WorkBookHandle) instead.


close

public void close()

load

public void load()

load

public void load(java.io.File infile)

load

public void load(byte[] bytes)

load

public void load(WorkBookHandle book)

load

public void load(WorkBookModel model)

save

public void save()
          throws java.io.IOException
Saves the currently open workbook to the file from which it was read.

Throws:
java.lang.IllegalStateException - if no default file is defined, such as if the workbook is newly created
java.io.IOException - if an I/O error occurred while saving

save

public void save(java.io.File file)
          throws java.io.IOException
Saves the currently open workbook to the given file. This method saves the workbook in the format from which it was read. If the workbook was created it will be written in Excel 97-2003 format. If you require more control get the workbook with getWorkBook() and the file with #getFile() and write it out yourself.

Parameters:
file - the File to which the workbook should be saved
Throws:
java.io.FileNotFoundException - if the parent directory of the named file could not be found
java.io.IOException - if an I/O error occurred while saving

getModel

public WorkBookModel getModel()

getTable

public ExtenXLSTable getTable()

getCellTextField

public javax.swing.JTextField getCellTextField()
Deprecated. No longer used internally. Should not have been public.


getBrowser

public com.extentech.swingtools.BrowserInternalFrame getBrowser()
Deprecated. No longer used internally. Should not have been public.


setBrowser

public void setBrowser(com.extentech.swingtools.BrowserInternalFrame frame)
Deprecated. No longer used internally. Should not have been public.


getParentJInternalFrame

public javax.swing.JInternalFrame getParentJInternalFrame()
Deprecated. No longer used internally. Should not have been public.


setParentJInternalFrame

public void setParentJInternalFrame(javax.swing.JInternalFrame frame)
Deprecated. No longer used internally. Should not have been public.


getSheetTables

public java.util.List getSheetTables()
Deprecated. No longer used internally. Should not have been public.



Copyright © 2011 Extentech Inc. All Rights Reserved.