|
JComponentPack 1.5.0 | |||||||||
| 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.zfqjava.swing.JBean
com.zfqjava.swing.JDataGridBean
public class JDataGridBean
JDataGridBean provides a JavaBean ready to use.
| 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 | |
|---|---|
static String |
CHART_TOOLBAR
Identifies the chart toolbar. |
static String |
FORMULA_TOOLBAR
Identifies the formula toolbar. |
static String |
MAIN_MENUBAR
Identifies the main menubar. |
static String |
MAIN_TOOLBAR
Identifies the main toolbar. |
static String |
SHAPE_TOOLBAR
Identifies the shape toolbar. |
static String |
STYLE_TOOLBAR
Identifies the style toolbar. |
| Fields inherited from class com.zfqjava.swing.JBean |
|---|
ABOUT, CLEAR, CLEAR_ALL, COPY, CUT, EXIT, EXPORT, FILE, FIND, FIND_NEXT, HELP, IMPORT, NEW, OPEN, PAGE_SETUP, PASTE, PRINT, PRINT_PREVIEW, REDO, REPLACE, SAVE, SAVE_AS, SELECT_ALL, SPELL, TIP, TOOL, UNDO, VIEW |
| 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.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JDataGridBean()
|
|
| Method Summary | |
|---|---|
protected JDataGrid |
createDataGrid()
Creates a datagrid for this bean. |
protected DataGridModel |
createModel()
Creates the default DataGridModel for the JDataGrid. |
protected Printable |
createPrintable(JDataGrid dataGrid)
Creates the printable for the specified data grid. |
Map |
createPrintProperties()
Creates the default print properties. |
protected JStatusBar |
createStatusBar()
Creates a status bar. |
WorkBook |
createWorkBook()
Creates the default work book, includes 3 work sheets, first sheet is selected by default. |
WorkSheet |
createWorkSheet()
Creates the default work sheet, with the model by createModel(). |
protected void |
doBeforeClose()
Invoke this method before close the frame. |
void |
doCellAttributes()
|
void |
doChart()
|
void |
doClear()
|
void |
doClearAll()
|
void |
doColumnName()
|
void |
doColumnWidth()
|
void |
doComment()
|
void |
doCopy(ActionEvent e)
|
void |
doCut(ActionEvent e)
|
void |
doDeleteColumn()
|
void |
doDeleteComment()
|
void |
doDeleteRow()
|
void |
doDeleteSheet()
|
void |
doFind()
|
void |
doFindNext()
|
void |
doFormula()
|
void |
doFreeze()
|
void |
doFunction()
|
void |
doGoCell()
|
void |
doHideColumn()
|
void |
doHideRow()
|
void |
doHyperlink()
|
void |
doImage()
|
void |
doInsertColumnAfter()
|
void |
doInsertColumnBefore()
|
void |
doInsertComment()
|
void |
doInsertRowAfter()
|
void |
doInsertRowBefore()
|
void |
doInsertSheet()
|
void |
doMergeCell()
|
void |
doNew()
|
void |
doNewWindow()
|
void |
doOpen()
|
protected void |
doOpen(File[] files)
Open the specified files by drop, subclass can override this methods to open the files as needed. |
protected void |
doOpen(URL[] urls)
|
void |
doPageSetup()
|
void |
doPaste(ActionEvent e)
|
void |
doPrint()
|
void |
doPrintPreview()
|
void |
doRedo()
|
void |
doRenameSheet()
|
void |
doReplace()
|
void |
doRowHeight()
|
void |
doSave()
|
void |
doSaveAs()
|
void |
doSelectAll()
|
void |
doShowColumn()
|
void |
doShowRow()
|
void |
doSort()
|
void |
doSortAscending()
|
void |
doSortDescending()
|
void |
doSpell()
|
void |
doSplit()
|
void |
doSplitCell()
|
void |
doUndo()
|
void |
doViewChartBar(ActionEvent e)
|
void |
doViewColumnHeader(ActionEvent e)
|
void |
doViewFormulaBar(ActionEvent e)
|
void |
doViewRowHeader(ActionEvent e)
|
void |
doViewShapeBar(ActionEvent e)
|
void |
doViewStatusBar(ActionEvent e)
|
void |
doViewStyleBar(ActionEvent e)
|
void |
doViewToolBar(ActionEvent e)
|
AbstractChart |
getAbstractChart()
Returns the current AbstractChart. |
Object |
getData()
Returns the data object, a WorkBook or TableModel. |
JDataGrid |
getDataGrid()
Returns the datagrid for this bean. |
Object |
getDataLocation()
Returns the current data location. |
JMenuBar |
getMenuBar(String name)
Returns the menubar for the specified name. |
JPrintPreview |
getPrintPreview()
Returns the print preview component. |
Map |
getPrintProperties()
Returns the print properties. |
JScrollPane |
getScrollPane()
Returns the JScrollPane the JDataGrid use. |
Set |
getSupportedFileSuffix()
Returns the supported file suffix. |
JToolBar |
getToolBar(String name)
Returns the toolbar for the specified name. |
WorkBook |
getWorkBook()
Returns the work book in use. |
boolean |
isAutoAdjustRowColumCount()
Determines whether auto adjust the row and column count. |
boolean |
isPrintSelectedCell()
Determines whether print the selected cell area. |
static void |
main(String[] args)
|
void |
setAutoAdjustRowColumCount(boolean autoAdjustRowColumCount)
Sets whether auto adjust the row and column count. |
void |
setData(Object object)
Sets the data for JDataGrid, support two types: WorkBook, TableModel |
void |
setDataGrid(JDataGrid dataGrid)
Sets the datagrid for this bean. |
void |
setDataLocation(Object urlObject)
Sets the data location, the data file or URL. |
void |
setPrintProperties(Map printProperties)
Sets the print properties. |
void |
setPrintSelectedCell(boolean printSelectedCell)
Sets whether print the selected cell area. |
void |
setScrollPane(JScrollPane scrollPane)
Sets the JScrollPane the JDataGrid use. |
void |
setSupportedFileSuffix(Set supportedFileSuffix)
Sets the supported file suffix. |
void |
setWorkBook(WorkBook workBook)
Sets the bean's work book to the specified workBook. |
void |
updateUI()
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MAIN_MENUBAR
public static final String MAIN_TOOLBAR
public static final String CHART_TOOLBAR
public static final String SHAPE_TOOLBAR
public static final String FORMULA_TOOLBAR
public static final String STYLE_TOOLBAR
| Constructor Detail |
|---|
public JDataGridBean()
| Method Detail |
|---|
public void updateUI()
updateUI in class JPanelprotected JStatusBar createStatusBar()
JBean
createStatusBar in class JBeanpublic JMenuBar getMenuBar(String name)
name - the menubar name
public JToolBar getToolBar(String name)
name - the toolbar name
public void setDataGrid(JDataGrid dataGrid)
dataGrid - the datagridpublic WorkBook createWorkBook()
public WorkSheet createWorkSheet()
createModel().
public void setWorkBook(WorkBook workBook)
workBook.
workBook - the work bookgetWorkBook()public WorkBook getWorkBook()
public void doInsertSheet()
public void doDeleteSheet()
public void doRenameSheet()
public JDataGrid getDataGrid()
protected JDataGrid createDataGrid()
protected DataGridModel createModel()
public AbstractChart getAbstractChart()
public void doRowHeight()
public void doColumnWidth()
public void doShowColumn()
public void doHideColumn()
public void doShowRow()
public void doHideRow()
public void doNew()
protected void doOpen(URL[] urls)
public void setData(Object object)
object - the data for JDataGridpublic Object getData()
protected void doOpen(File[] files)
JBean
doOpen in class JBeanfiles - the files to droppublic void doOpen()
public void doSave()
public void doSaveAs()
public void doPageSetup()
public void doPrint()
public void doPrintPreview()
protected void doBeforeClose()
throws ActionVetoException
JBean
doBeforeClose in class JBeanActionVetoException - if the close action cannot be permited.public void doUndo()
public void doRedo()
public void doCut(ActionEvent e)
public void doCopy(ActionEvent e)
public void doPaste(ActionEvent e)
public void doFind()
public void doFindNext()
public void doReplace()
public void doGoCell()
public void doClear()
public void doClearAll()
public void doSelectAll()
public void doViewToolBar(ActionEvent e)
public void doViewStyleBar(ActionEvent e)
public void doViewFormulaBar(ActionEvent e)
public void doViewShapeBar(ActionEvent e)
public void doViewChartBar(ActionEvent e)
public void doViewStatusBar(ActionEvent e)
public void doViewRowHeader(ActionEvent e)
public void doViewColumnHeader(ActionEvent e)
public void doFormula()
public void doChart()
public void doSpell()
public void doInsertRowBefore()
public void doInsertRowAfter()
public void doDeleteRow()
public void doInsertColumnBefore()
public void doInsertColumnAfter()
public void doDeleteColumn()
public void doMergeCell()
public void doSplitCell()
public void doSort()
public void doSortAscending()
public void doSortDescending()
public void doColumnName()
public void doCellAttributes()
public void doFunction()
public void doHyperlink()
public void doImage()
public void doFreeze()
public void doSplit()
public void doNewWindow()
public void doComment()
public void doInsertComment()
public void doDeleteComment()
public JPrintPreview getPrintPreview()
protected Printable createPrintable(JDataGrid dataGrid)
dataGrid - the dataGrid
public Map getPrintProperties()
public void setPrintProperties(Map printProperties)
printProperties - the print propertiespublic boolean isPrintSelectedCell()
public void setPrintSelectedCell(boolean printSelectedCell)
printSelectedCell - public Map createPrintProperties()
public Set getSupportedFileSuffix()
public void setSupportedFileSuffix(Set supportedFileSuffix)
supportedFileSuffix - public void setDataLocation(Object urlObject)
urlObject - the data locationpublic Object getDataLocation()
public static void main(String[] args)
public JScrollPane getScrollPane()
JScrollPane the JDataGrid use.
public void setScrollPane(JScrollPane scrollPane)
JScrollPane the JDataGrid use.
public boolean isAutoAdjustRowColumCount()
public void setAutoAdjustRowColumCount(boolean autoAdjustRowColumCount)
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||