|
||||||||||
| 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.JPanel
com.extentech.ExtenXLS.eventui.WorkBookPanel
public class WorkBookPanel
| 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 |
|---|
public WorkBookPanel()
| Method Detail |
|---|
public void addTableModelListener(javax.swing.event.TableModelListener listener)
WorkBookModel instead.
listener - the TableModelListener to be addedpublic void setXLSTemplateFilePath(java.lang.String file)
#init.
file - the path from which the input file should be readpublic void setXLSOutputFilePath(java.lang.String path)
save(File) instead.
path - the path to which the output file should be written.public void setDebugLevel(int level)
public WorkBookHandle getWorkBook()
WorkBookModel.getWorkBook().
public void saveBookToFile()
save() instead.
public void initXLS(byte[] bytes)
load(byte[]) instead.
public void initXLS()
throws java.lang.Exception
load(File) instead.
setXLSTemplateFilePath(java.lang.String).
java.lang.Exceptionpublic void initNewWorkBook()
load() instead.
public void initSheets(WorkBookHandle book)
load(WorkBookHandle) instead.
public void close()
public void load()
public void load(java.io.File infile)
public void load(byte[] bytes)
public void load(WorkBookHandle book)
public void load(WorkBookModel model)
public void save()
throws java.io.IOException
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
public void save(java.io.File file)
throws java.io.IOException
getWorkBook()
and the file with #getFile() and write it out yourself.
file - the File to which the workbook should be saved
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 savingpublic WorkBookModel getModel()
public ExtenXLSTable getTable()
public javax.swing.JTextField getCellTextField()
public com.extentech.swingtools.BrowserInternalFrame getBrowser()
public void setBrowser(com.extentech.swingtools.BrowserInternalFrame frame)
public javax.swing.JInternalFrame getParentJInternalFrame()
public void setParentJInternalFrame(javax.swing.JInternalFrame frame)
public java.util.List getSheetTables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||