|
||||||||||
| 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
jdbreport.view.ReportPane
public class ReportPane
| 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 |
CURRENT_DIRECTORY_PATH
|
static String |
CURRENT_FILE_FILTER
|
static String |
CURRENT_FILTER
|
static String |
CURRENT_IMAGE_PATH
|
static String |
EXCEL_COMMAND
|
protected JPopupMenu |
gridMenu
|
static String |
JDBREPORT_CONF
|
static String |
LOOK_AND_FEEL
|
static String |
ODS_COMMAND
|
static String |
POS_X
|
static String |
POS_Y
|
protected and.properties.XMLProperties |
properties
|
static String |
SIZE_HEIGHT
|
static String |
SIZE_WIDTH
|
static String |
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 | |
|---|---|
ReportPane(and.properties.XMLProperties properties)
|
|
| Method Summary | |
|---|---|
protected void |
addGridListeners(JReportGrid grid)
|
protected void |
addReportGrid(int index,
ReportModel rm)
|
void |
addReportGrid(JReportGrid grid,
int index)
|
protected void |
addReportGrid(ReportModel rm)
|
int |
calcRowHeight(ReportModel model,
Cell cell,
int row,
int column)
|
protected boolean |
canShowGrid(ReportModel rm)
|
void |
clear()
|
protected ReportBook |
createDefaultReportBook()
|
protected JFileChooser |
createFileChooser()
|
protected JReportGrid |
createReportGrid(ReportModel rm)
|
boolean |
find(and.finder.FindParams findParams)
|
protected JReportGrid |
findReportGrid(int index)
Find ReportGrid in tabbedPane |
String |
getCaption()
|
Action |
getCopyAction()
|
Action |
getCutAction()
|
protected FileFilter |
getDefaultFilter(JFileChooser fileChooser)
Returns default filter |
Action |
getDeleteAction()
|
static FileType |
getFileTypeClass(String className)
|
Action |
getFindAction()
|
JReportGrid |
getFocusedGrid()
|
protected int |
getFocusedIndex()
|
protected JPopupMenu |
getGridMenu()
|
protected JFrame |
getParentFrame()
|
Action |
getPasteAction()
|
and.properties.XMLProperties |
getProperties()
|
ReportAction.EditRedoAction |
getRedoAction()
|
ReportBook |
getReportBook()
|
File |
getReportFile()
|
JReportGrid |
getReportGrid(int index)
|
List<JReportGrid> |
getReportGridList()
|
Action |
getSelectAllAction()
|
StringMetrics |
getStringMetrics()
|
protected Icon |
getTabbedIcon()
|
JTabbedPane |
getTabbedPane()
|
int |
getTabCount()
|
protected JPopupMenu |
getTabMenu()
|
ReportAction.EditUndoAction |
getUndoAction()
|
protected LinkedList<UndoItem> |
getUndoStack()
|
boolean |
hasRedo()
|
boolean |
hasUndo()
|
boolean |
incrementalFind(and.finder.FindParams findParams)
|
protected int |
indexOfTabbed(JReportGrid grid)
|
protected void |
initActions()
|
protected void |
insertReportBook(ReportBook book)
|
void |
insertReportGrid(int index,
JReportGrid grid)
|
protected void |
installListeners()
|
boolean |
isDirty()
|
boolean |
isModified()
|
boolean |
loadSheet()
|
boolean |
loadSheet(File file,
ReportReader reader)
|
boolean |
moveSheet(int fromIndex,
int toIndex)
|
void |
newReport()
|
protected boolean |
open()
|
boolean |
open(byte[] buf,
String readerId)
|
boolean |
open(File file)
|
boolean |
open(File file,
ReportReader reader)
|
protected void |
preview()
|
void |
print()
Printing of all report |
boolean |
print(Component component,
List<JReportGrid> grids,
boolean showPrintDialog,
boolean interactive)
Printing of all report |
boolean |
print(Component component,
List<JReportGrid> grids,
boolean showPrintDialog,
boolean interactive,
int numPage)
Printing of all report |
void |
printPdfDocument()
Print pdf document |
void |
printSheet()
Printing of the selected sheet |
void |
propertyChange(PropertyChangeEvent evt)
|
void |
pushUndo(UndoEvent evt)
|
protected void |
pushUndo(UndoItem undo)
|
void |
redo()
|
protected void |
removeGridListeners(JReportGrid grid)
|
void |
removeReportGrid(JReportGrid grid)
|
void |
reportAdded(ReportListEvent e)
Tells listeners that a report was added to the list. |
void |
reportMoved(ReportListEvent e)
Tells listeners that a row was repositioned. |
void |
reportRemoved(ReportListEvent e)
Tells listeners that a report was removed from the list. |
void |
resetDirty()
|
protected boolean |
save()
|
boolean |
saveAs(File file)
|
boolean |
saveQuestion()
|
void |
saveSheet()
|
void |
saveSheet(File file,
ReportWriter writer)
|
protected void |
setDirty()
|
void |
setFocusedGrid(int index)
|
protected void |
setGridMenu(JPopupMenu gridMenu)
|
protected void |
setGridVisible(JReportGrid source,
Boolean newValue)
|
void |
setReportBook(ReportBook reportBook)
|
void |
setTabMenu(JPopupMenu tabMenu)
|
protected void |
setTitle(String caption)
|
protected void |
showFindPanel()
|
void |
undo()
|
protected void |
uninstallListeners()
|
void |
unionUndo(UndoEvent evt)
|
protected void |
updateCaption()
|
protected void |
updateSheetActions()
|
protected void |
updateUndoRedoState()
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ODS_COMMAND
public static final String EXCEL_COMMAND
public static final String LOOK_AND_FEEL
public static final String CURRENT_FILE_FILTER
public static final String WINDOW_STATE
public static final String JDBREPORT_CONF
public static final String POS_X
public static final String POS_Y
public static final String SIZE_WIDTH
public static final String SIZE_HEIGHT
protected and.properties.XMLProperties properties
protected JPopupMenu gridMenu
public static String CURRENT_FILTER
public static String CURRENT_DIRECTORY_PATH
public static String CURRENT_IMAGE_PATH
| Constructor Detail |
|---|
public ReportPane(and.properties.XMLProperties properties)
| Method Detail |
|---|
public and.properties.XMLProperties getProperties()
public int calcRowHeight(ReportModel model,
Cell cell,
int row,
int column)
calcRowHeight in interface HeighCalculatorpublic StringMetrics getStringMetrics()
getStringMetrics in interface HeighCalculatorprotected void addReportGrid(ReportModel rm)
protected void addReportGrid(int index,
ReportModel rm)
public void addReportGrid(JReportGrid grid,
int index)
protected void addGridListeners(JReportGrid grid)
protected void removeGridListeners(JReportGrid grid)
protected JReportGrid createReportGrid(ReportModel rm)
protected boolean canShowGrid(ReportModel rm)
public void removeReportGrid(JReportGrid grid)
public JReportGrid getFocusedGrid()
getFocusedGrid in interface TargetGridpublic ReportBook getReportBook()
protected JPopupMenu getGridMenu()
protected void setGridMenu(JPopupMenu gridMenu)
public boolean moveSheet(int fromIndex,
int toIndex)
public void setFocusedGrid(int index)
protected int getFocusedIndex()
public List<JReportGrid> getReportGridList()
public void resetDirty()
public boolean isDirty()
protected void setDirty()
protected ReportBook createDefaultReportBook()
public JTabbedPane getTabbedPane()
protected Icon getTabbedIcon()
protected JPopupMenu getTabMenu()
public void setTabMenu(JPopupMenu tabMenu)
public JReportGrid getReportGrid(int index)
public void reportAdded(ReportListEvent e)
ReportListListener
reportAdded in interface ReportListListenerpublic void reportMoved(ReportListEvent e)
ReportListListener
reportMoved in interface ReportListListenerpublic void reportRemoved(ReportListEvent e)
ReportListListener
reportRemoved in interface ReportListListenerprotected JReportGrid findReportGrid(int index)
index -
protected int indexOfTabbed(JReportGrid grid)
protected void insertReportBook(ReportBook book)
public boolean loadSheet(File file,
ReportReader reader)
public boolean print(Component component,
List<JReportGrid> grids,
boolean showPrintDialog,
boolean interactive)
throws PrinterException,
HeadlessException
showPrintDialog - interactive -
PrinterException
HeadlessException
public boolean print(Component component,
List<JReportGrid> grids,
boolean showPrintDialog,
boolean interactive,
int numPage)
throws PrinterException,
HeadlessException
showPrintDialog - interactive - numPage - default page
PrinterException
HeadlessExceptionpublic void print()
public void printPdfDocument()
throws IOException
IOExceptionpublic void printSheet()
protected void preview()
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListener
protected void setGridVisible(JReportGrid source,
Boolean newValue)
protected void installListeners()
protected void uninstallListeners()
public void clear()
public void saveSheet(File file,
ReportWriter writer)
throws IOException
IOExceptionpublic void newReport()
protected void updateCaption()
protected void setTitle(String caption)
public String getCaption()
public void setReportBook(ReportBook reportBook)
protected boolean open()
public boolean open(File file)
public boolean open(File file,
ReportReader reader)
protected void updateSheetActions()
public boolean open(byte[] buf,
String readerId)
public boolean saveAs(File file)
protected FileFilter getDefaultFilter(JFileChooser fileChooser)
fileChooser -
public static FileType getFileTypeClass(String className)
protected JFileChooser createFileChooser()
public void saveSheet()
public boolean loadSheet()
protected boolean save()
public File getReportFile()
public void insertReportGrid(int index,
JReportGrid grid)
public int getTabCount()
protected void initActions()
public Action getFindAction()
public Action getCutAction()
public Action getSelectAllAction()
public Action getDeleteAction()
public Action getPasteAction()
public Action getCopyAction()
public ReportAction.EditUndoAction getUndoAction()
public ReportAction.EditRedoAction getRedoAction()
protected void showFindPanel()
public boolean find(and.finder.FindParams findParams)
find in interface and.finder.Finderpublic boolean incrementalFind(and.finder.FindParams findParams)
incrementalFind in interface and.finder.Finderprotected LinkedList<UndoItem> getUndoStack()
public void pushUndo(UndoEvent evt)
pushUndo in interface UndoListenerprotected void pushUndo(UndoItem undo)
public void unionUndo(UndoEvent evt)
unionUndo in interface UndoListenerpublic void undo()
public void redo()
public boolean hasUndo()
public boolean hasRedo()
public boolean isModified()
protected void updateUndoRedoState()
public boolean saveQuestion()
protected JFrame getParentFrame()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||