Ontimize 5.2072EN

com.ontimize.report
Class DefaultReportDialog

java.lang.Object
  extended bycom.ontimize.report.DefaultReportDialog

public class DefaultReportDialog
extends java.lang.Object


Field Summary
static java.lang.String ALL_DOWN_BUTTON_KEY
           
static java.lang.String ALL_DOWN_GROUP_BUTTON_KEY
           
static java.lang.String ALL_UP_BUTTON_KEY
           
static java.lang.String ALL_UP_GROUP_BUTTON_KEY
           
protected  javax.swing.JButton allDownButton
           
protected  javax.swing.JButton allDownGroupButton
           
protected  javax.swing.JButton allUpButton
           
protected  javax.swing.JButton allUpGroupButton
           
protected  javax.swing.JPopupMenu ascendingDescendingPopup
           
protected  javax.swing.JRadioButtonMenuItem ascendingOpMenu
           
static java.lang.String AVERAGE_OP_KEY
           
protected  javax.swing.JRadioButtonMenuItem averageOpMenu
           
protected  RolloverButton bRefreshReport
           
protected  RolloverButton bSQL
           
protected  RolloverButton bStore
           
protected  java.util.ResourceBundle bundle
           
protected  javax.swing.JPanel chartPanel
           
protected  ListenerSeleccionColumnas columnSelectionListener
           
protected  javax.swing.JPanel configurationPanel
           
static java.lang.String CONFIRM_MESSAGE_KEY
           
protected  javax.swing.JPopupMenu confMenu
           
protected  java.awt.Window container
           
protected  SelectableDateGroupItem currentDateGroupItem
           
protected  SelectableDynamicItem currentDynamicItem
           
protected  SelectableFunctionItem currentItem
           
protected  DateGroupListener dateGroupListener
           
protected  PopupGroupDateListener dateGroupSelectionListener
           
static java.lang.String DELETE_TEMPLATE_KEY
           
protected  DeleteItemListener deleteListener
           
protected  ReportDeleteDialog deleteReportDialog
           
protected  javax.swing.JRadioButtonMenuItem descendingOpMenu
           
protected  java.lang.String description
           
static java.lang.String DOWN_BUTTON_KEY
           
protected  javax.swing.JButton downButton
           
protected  javax.swing.JButton downGroupButton
           
protected  java.lang.String dscr
           
static java.lang.String DYNAMIC_HEADER_KEY
           
static java.lang.String DYNAMIC_SELECTION_TIP_KEY
           
static java.lang.String DYNAMIC_UPDATE_CHECK_KEY
           
protected  javax.swing.JCheckBoxMenuItem dynamicHead6CheckMenu
           
protected  DynamicPopupListener dynamicSelectionListener
           
static java.lang.String EMPTY_ENTITY_KEY
           
static java.lang.String ENTITIES_COMBO_KEY
           
protected  javax.swing.JComboBox entitiesCombo
           
protected  javax.swing.JPanel entitiesPanel
           
static java.lang.String FIT_HEADER_KEY
           
protected  javax.swing.JCheckBoxMenuItem fitHead5CheckMenu
           
static java.lang.String FUNCTION_KEY
           
protected  javax.swing.JList functionList
           
protected  FunctionListener functionListener
           
protected  javax.swing.JPanel functionListPanel
           
static java.lang.String GRID_KEY
           
protected  javax.swing.JCheckBoxMenuItem grid1CheckMenu
           
static java.lang.String GROUP_BY_DATE_KEY
           
static java.lang.String GROUP_BY_DATE_TIME_KEY
           
static java.lang.String GROUP_BY_MONTH_AND_YEAR_KEY
           
static java.lang.String GROUP_BY_MONTH_KEY
           
static java.lang.String GROUP_BY_QUARTER_AND_YEAR_KEY
           
static java.lang.String GROUP_BY_QUARTER_KEY
           
static java.lang.String GROUP_BY_YEAR_KEY
           
static java.lang.String GROUP_DOWN_BUTTON_KEY
           
static java.lang.String GROUP_KEY
           
static java.lang.String GROUP_TIP_KEY
           
protected  javax.swing.JRadioButtonMenuItem groupByDate
           
protected  javax.swing.ButtonGroup groupByDateGroupButton
           
protected  javax.swing.JPopupMenu groupByDatePopup
           
protected  javax.swing.JRadioButtonMenuItem groupByDateTime
           
protected  javax.swing.JRadioButtonMenuItem groupByMonth
           
protected  javax.swing.JRadioButtonMenuItem groupByMonthAndYear
           
protected  javax.swing.JRadioButtonMenuItem groupByQuarter
           
protected  javax.swing.JRadioButtonMenuItem groupByQuarterAndYear
           
protected  javax.swing.JRadioButtonMenuItem groupByYear
           
protected  GroupColumnListener groupColumnListener
           
protected  javax.swing.JList groupList
           
protected  javax.swing.JPanel groupListPanel
           
protected  javax.swing.JMenuItem groupMenu
           
protected  javax.swing.JPopupMenu groupPopup
           
static java.lang.String GROUPS_KEY
           
static java.lang.String HIDE_GROUP_DETAIL_KEY
           
protected  javax.swing.JCheckBoxMenuItem hideGroupDetail7CheckMenu
           
static java.lang.String INCLUDE_COLUMN_NAMES_KEY
           
static java.lang.String INCLUDE_ROW_NUMBER_KEY
           
protected  javax.swing.JCheckBoxMenuItem includeColumnName3CheckMenu
           
protected  boolean isTable
           
protected  ItemListener listener
           
static java.lang.String LOAD_TEMPLATE_KEY
           
protected  ButtonSelection loadButton
           
protected  EntityReferenceLocator locator
          An instance of report engine
static java.lang.String MAXIMUM_OP_KEY
           
protected  javax.swing.JRadioButtonMenuItem maximumOpMenu
           
static java.lang.String MINIMUM_OP_KEY
           
protected  javax.swing.JRadioButtonMenuItem minimumOpMenu
           
protected  javax.swing.table.TableModel model
           
protected  java.lang.Object[] multigroups
           
static java.lang.String MULTILINE_KEY
           
protected  javax.swing.ButtonGroup multilineGroupButton
           
protected  javax.swing.JRadioButtonMenuItem multilineMenu
           
protected  javax.swing.JPopupMenu multilinePopup
           
protected  PopupListener operationSelectionListener
           
protected  javax.swing.JPopupMenu operationTypePopup
           
static java.lang.String OPTIONS_BUTTON_KEY
           
protected  RolloverButton optionsButton
           
protected  javax.swing.JPopupMenu optionsMenu
           
protected  javax.swing.ButtonGroup opTypeButtonGroup
           
protected  OrderWindow order
           
static java.lang.String ORDER_BUTTON_KEY
           
static java.lang.String ORDER_TIP_KEY
           
protected  javax.swing.JButton orderButton
           
protected  java.util.List orderCols
           
protected  OrderedPopupListener orderListener
           
protected  java.lang.String preferenceKey
           
protected  ApplicationPreferences prefs
           
static java.lang.String PRINTING_COLUMN_KEY
           
protected  javax.swing.JList printingColumnList
           
protected  javax.swing.JPanel printingColumnsPanel
           
protected  QueryExpression query
           
static java.lang.String RELOAD_REPORT_KEY
           
static java.lang.String REPORT_STORE_KEY
           
protected  ReportSetupDialog reportConfigurationDialog
           
protected  java.lang.String reportDescription
           
protected  ReportEngine reportEngine
          An instance of report engine
protected  java.lang.String reportName
           
protected  javax.swing.JCheckBoxMenuItem rowNumber2CheckMenu
           
protected  ReportStore[] rs
           
static java.lang.String SAVE_TEMPLATE_KEY
           
protected  RolloverButton saveButton
           
protected  javax.swing.JScrollPane scroll
           
protected  javax.swing.JButton setColumnButton
           
protected  java.util.Hashtable settedColumnWidth
           
static java.lang.String SIMPLE_LINE_KEY
           
protected  javax.swing.JRadioButtonMenuItem simpleLineMenu
           
static java.lang.String SQL_QUERY_KEY
           
protected  javax.swing.JScrollPane sqlQueryPanel
           
protected  javax.swing.JTextArea sqlQueryText
           
static java.lang.String SUM_OP_KEY
           
protected  javax.swing.JRadioButtonMenuItem sumOpMenu
           
protected  Table table
           
static java.lang.String TEMPLATE_KEY
           
protected  javax.swing.JComboBox templateCombo
           
protected  java.util.List templates
           
protected  javax.swing.JPanel templatesPanel
           
protected  java.lang.String title
           
static java.lang.String TITLE_KEY
           
static java.lang.String UNDERLINE_LINES_KEY
           
protected  javax.swing.JCheckBoxMenuItem underlineLine4CheckMenu
           
static java.lang.String UP_BUTTON_KEY
           
static java.lang.String UP_GROUP_BUTTON_KEY
           
protected  javax.swing.JButton upButton
           
protected  javax.swing.JToggleButton updateCheck
           
protected  UpdateReportListener updateReportListener
           
protected  javax.swing.JButton upGroupButton
           
protected  java.lang.String user
           
protected  ColumnWidthWindow wColumn
           
protected  ColumnWidthPopup wPopup
           
 
Constructor Summary
DefaultReportDialog(java.awt.Dialog d, javax.swing.table.TableModel m, java.util.ResourceBundle res, java.util.List templateList, java.lang.String tit, java.lang.String dscr, java.lang.String user, java.lang.String preferenceKey, ApplicationPreferences prefs)
           
DefaultReportDialog(java.awt.Dialog d, javax.swing.table.TableModel m, java.util.ResourceBundle res, java.util.List templateList, java.lang.String tit, java.lang.String dscr, java.lang.String user, java.lang.String preferenceKey, ApplicationPreferences prefs, Table table)
           
DefaultReportDialog(java.awt.Frame f, ReportStore[] rs, EntityReferenceLocator referenceLocator, java.util.ResourceBundle res, java.util.List templateList, java.lang.String tit, java.lang.String dscr)
           
DefaultReportDialog(java.awt.Frame f, javax.swing.table.TableModel m, java.util.ResourceBundle res, java.util.List templateList, java.lang.String tit, java.lang.String dscr, java.lang.String user, java.lang.String preferenceKey, ApplicationPreferences prefs)
           
DefaultReportDialog(java.awt.Frame f, javax.swing.table.TableModel m, java.util.ResourceBundle res, java.util.List templateList, java.lang.String tit, java.lang.String dscr, java.lang.String user, java.lang.String preferenceKey, ApplicationPreferences prefs, Table table)
           
DefaultReportDialog(ReportStore[] rs, EntityReferenceLocator referenceLocator, java.util.ResourceBundle res, java.util.List templateList, java.lang.String tit)
           
 
Method Summary
protected  void add(java.lang.StringBuffer sb, java.lang.String s)
           
 void addComponentListener(java.awt.event.ComponentListener componentListener)
          addComponentListener
 void addTemplates(java.util.List templates)
           
 void center()
           
static void checkListStatusButtons(javax.swing.JList list, javax.swing.JButton upAll, javax.swing.JButton up, javax.swing.JButton down, javax.swing.JButton downAll)
           
protected  void clearReport()
           
protected  void configureNewReport(java.lang.String confData)
           
protected  java.util.Vector createFunctionColumns(java.util.Vector columns)
           
protected  java.util.Vector createFunctionColumns(java.util.Vector columns, java.util.Vector types)
           
protected  java.util.Vector createGroupColumn(java.util.Vector columns)
           
protected  java.util.Vector createPrintingColumn(java.util.Vector columns)
           
protected  void createReportConfMenu()
           
 void deleteConfiguration(java.lang.String conf)
           
 void dispose()
           
 javax.swing.JButton getAllDownButton()
           
 javax.swing.JButton getAllDownGroupButton()
           
 javax.swing.JButton getAllUpButton()
           
 javax.swing.JButton getAllUpGroupButton()
           
 javax.swing.JRadioButtonMenuItem getAscendingOpMenu()
           
 javax.swing.JRadioButtonMenuItem getAverageOpMenu()
           
 java.util.ResourceBundle getBundle()
           
 javax.swing.JPanel getChartPanel()
           
 java.lang.Class getColumnClassForColumn(java.lang.String columnName)
           
 int getColumnIndex(java.lang.String columnName, javax.swing.table.TableModel table)
          Returns the index of column in data model according to the column name.
protected  java.util.Vector getColumns()
           
protected  java.util.List getConfigurations()
           
 javax.swing.JPopupMenu getConfMenu()
           
 java.awt.Window getContainer()
           
 java.awt.Container getContentPane()
           
protected  java.lang.String getCurrentConfiguration()
           
 SelectableDateGroupItem getCurrentDateGroupItem()
           
 SelectableDynamicItem getCurrentDynamicItem()
           
 SelectableFunctionItem getCurrentItem()
           
 javax.swing.table.TableModel getDataModel(boolean ascending)
           
 javax.swing.JRadioButtonMenuItem getDescendingOpMenu()
           
 java.lang.String getDescription()
           
 javax.swing.JButton getDownButton()
           
 javax.swing.JButton getDownGroupButton()
           
 javax.swing.JCheckBoxMenuItem getDynamicHead6CheckMenu()
           
 javax.swing.JComboBox getEntitiesCombo()
           
 javax.swing.JCheckBoxMenuItem getFitHead5CheckMenu()
           
 javax.swing.JList getFunctionList()
           
 javax.swing.JPanel getFunctionListPanel()
           
 javax.swing.JCheckBoxMenuItem getGrid1CheckMenu()
           
 javax.swing.JRadioButtonMenuItem getGroupByDateMenuItem()
           
 javax.swing.JPopupMenu getGroupByDatePopup()
           
 javax.swing.JRadioButtonMenuItem getGroupByDateTimeMenuItem()
           
 javax.swing.JRadioButtonMenuItem getGroupByMonthAndYearMenuItem()
           
 javax.swing.JRadioButtonMenuItem getGroupByMonthMenuItem()
           
 javax.swing.JRadioButtonMenuItem getGroupByQuarterAndYearMenuItem()
           
 javax.swing.JRadioButtonMenuItem getGroupByQuarterMenuItem()
           
 javax.swing.JRadioButtonMenuItem getGroupByYearMenuItem()
           
 javax.swing.JList getGroupList()
           
 javax.swing.JPopupMenu getGroupPopup()
           
 javax.swing.JCheckBoxMenuItem getHideGroupDetail7CheckMenu()
           
 javax.swing.JCheckBoxMenuItem getIncludeColumnName3CheckMenu()
           
 ButtonSelection getLoadButton()
           
 javax.swing.JRadioButtonMenuItem getMaximumOpMenu()
           
 javax.swing.JRadioButtonMenuItem getMinimumOpMenu()
           
 javax.swing.table.TableModel getModel()
           
 java.lang.Object[] getMultigroups()
           
 javax.swing.JRadioButtonMenuItem getMultilineMenu()
           
 javax.swing.JPopupMenu getMultilinePopup()
           
 javax.swing.JPopupMenu getOperationTypePopup()
           
 javax.swing.JPopupMenu getOptionMenu()
           
 java.util.List getOrderCols()
           
protected  OrderColumns getOrderColumns()
           
 TableSorter getOrderedDataModel(boolean ascending)
          This method is used to order a table model.
static java.util.Hashtable getParameters(org.w3c.dom.Node node)
           
 java.util.Vector getPrintedGroupsFromSelectedGroups()
          Gets the selected group columns that are also marked in selected printing column list.
 javax.swing.JList getPrintingColumnList()
           
 java.util.Vector getPrintingColumns()
           
 QueryExpression getQuery()
           
 ReportEngine getReportEngine()
           
 java.util.List getResources(java.lang.String template)
           
 javax.swing.JCheckBoxMenuItem getRowNumber2CheckMenu()
           
 javax.swing.JButton getSaveButton()
           
 javax.swing.JScrollPane getScroll()
           
protected  java.util.Vector getSelectedColumns()
           
 java.util.Hashtable getSelectedDateGroupingColumns()
           
protected  java.util.Vector getSelectedDynamicColumnName()
           
 java.util.Vector getSelectedDynamicColumns()
           
 java.util.Hashtable getSelectedFunctionColumns()
           
 java.util.Vector getSelectedGroupColumns()
           
 java.util.Vector getSelectedGroupItems()
           
 java.util.Vector getSelectedPrintingAndGroupedColumns()
          This method combines printing columns with grouped columns returning a Vector with non repeated columns.
 java.util.Vector getSelectedPrintingColumns()
           
 java.util.Hashtable getSettedColumnWidth()
           
 javax.swing.JRadioButtonMenuItem getSimpleLineMenu()
           
 java.util.Vector getSimpleSelectedGroupColumns()
           
 java.lang.String getSourceTemplateName()
           
 RolloverButton getStoreButton()
           
 javax.swing.JRadioButtonMenuItem getSumOpMenu()
           
 Table getTable()
           
 javax.swing.JComboBox getTemplateCombo()
           
 java.util.List getTemplateList()
           
 java.util.Vector getTextsToTranslate()
           
protected  java.util.Vector getTextToTranslateColumnsAndSelected()
           
 java.lang.String getTitle()
           
 javax.swing.JCheckBoxMenuItem getUnderlineLine4CheckMenu()
           
 javax.swing.JButton getUpButton()
           
 javax.swing.JToggleButton getUpdateCheck()
           
 UpdateReportListener getUpdateReportListener()
           
 javax.swing.JButton getUpGroupButton()
           
protected  java.lang.String getXMLTemplate()
           
protected  void groupColumns()
           
 void init()
           
protected  void initGroup(javax.swing.DefaultListModel l)
           
 void initTemplateList()
           
 boolean isTable()
           
 boolean loadConfiguration(java.lang.String conf)
           
protected  void loadDefaultTemplates()
           
 void pack()
           
 void removeComponentListener(java.awt.event.ComponentListener componentListener)
          removeComponentListener
protected  int saveReportConfiguration(java.lang.String conf)
           
 void setAction(int keyCode, int modifiers, javax.swing.Action action, java.lang.String key)
           
 void setComponentLocale(java.util.Locale l)
           
 void setContainer(java.lang.Object container)
           
 void setCurrentDateGroupItem(SelectableDateGroupItem currentDateGroupItem)
           
 void setCurrentDynamicItem(SelectableDynamicItem currentDynamicItem)
           
 void setCurrentItem(SelectableFunctionItem currentItem)
           
 void setDataModel(javax.swing.table.TableModel model)
           
 void setDefaultCloseOperation(int operation)
           
 void setDescription(java.lang.String description)
           
protected  void setDynamicColumnPreferences(java.lang.String analizar)
           
protected  void setDynamicColumnsToSet(java.util.Vector v)
           
 void setFunctionColumnPreferences(java.lang.String analyze)
           
 void setFunctionColumns(java.util.Vector v)
           
 void setGroupByDateMenuItem(javax.swing.JRadioButtonMenuItem groupByDate)
           
 void setGroupByDateTimeMenuItem(javax.swing.JRadioButtonMenuItem groupByDateTime)
           
 void setGroupByMonthAndYearMenuItem(javax.swing.JRadioButtonMenuItem groupByMonthAndYear)
           
 void setGroupByMonthMenuItem(javax.swing.JRadioButtonMenuItem groupByMonth)
           
 void setGroupByQuarterAndYearMenuItem(javax.swing.JRadioButtonMenuItem groupByQuarterAndYear)
           
 void setGroupByQuarterMenuItem(javax.swing.JRadioButtonMenuItem groupByQuarter)
           
 void setGroupByYearMenuItem(javax.swing.JRadioButtonMenuItem groupByYear)
           
protected  void setGroupColumnPreference(java.lang.String analizar)
           
protected  void setGroupColumns(java.util.Vector v)
           
 void setJMenuBar(javax.swing.JMenuBar jMenuBar)
           
 void setLocation(int x, int y)
           
 void setModel(javax.swing.table.TableModel model)
           
 void setOptionMenu(javax.swing.JPopupMenu optionMenu)
           
protected  void setOrderColumnPreferences(java.lang.String analizar)
           
protected  void setOrderColumns(OrderColumns h)
           
 void setPreferenceKey(java.lang.String preferenceKey)
           
 void setPreferences(ApplicationPreferences prefs)
           
protected  void setPrintingColumnPreferences(java.lang.String stringToParse)
           
protected  void setPrintingColumns(java.util.Vector v)
           
 void setReportDescription(java.lang.String reportDescription)
           
protected  void setReportEntity(java.lang.String entity)
           
 void setResourceBundle(java.util.ResourceBundle res)
           
protected  void setSelectedColumnsToGroup(java.util.Vector v)
           
 void setSelectedDateGroupingOperations(java.lang.String itemText, int operation)
           
protected  void setSelectedFunctionColumns(java.util.Hashtable h)
           
protected  void setSelectedPrintingColumns(java.util.Vector v)
           
 void setSize(int width, int height)
           
 void setTable(Table table)
           
 void setTemplateList(java.util.List templates)
           
 void setTitle(java.lang.String title)
           
 void setUser(java.lang.String user)
           
 void setVisible(boolean b)
           
protected  void showDeleteReportDialog()
           
protected  void showReportConfigurationDialog()
           
 void updateColumnClasses()
           
 void updateFunctionList()
           
 void updateReport()
           
 void updateReport(boolean force)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reportEngine

protected ReportEngine reportEngine
An instance of report engine


TITLE_KEY

public static java.lang.String TITLE_KEY

PRINTING_COLUMN_KEY

public static java.lang.String PRINTING_COLUMN_KEY

GROUPS_KEY

public static java.lang.String GROUPS_KEY

FUNCTION_KEY

public static java.lang.String FUNCTION_KEY

TEMPLATE_KEY

public static java.lang.String TEMPLATE_KEY

SQL_QUERY_KEY

public static java.lang.String SQL_QUERY_KEY

REPORT_STORE_KEY

public static java.lang.String REPORT_STORE_KEY

GRID_KEY

public static java.lang.String GRID_KEY

INCLUDE_ROW_NUMBER_KEY

public static java.lang.String INCLUDE_ROW_NUMBER_KEY

HIDE_GROUP_DETAIL_KEY

public static java.lang.String HIDE_GROUP_DETAIL_KEY

INCLUDE_COLUMN_NAMES_KEY

public static java.lang.String INCLUDE_COLUMN_NAMES_KEY

UNDERLINE_LINES_KEY

public static java.lang.String UNDERLINE_LINES_KEY

FIT_HEADER_KEY

public static java.lang.String FIT_HEADER_KEY

DYNAMIC_HEADER_KEY

public static java.lang.String DYNAMIC_HEADER_KEY

AVERAGE_OP_KEY

public static java.lang.String AVERAGE_OP_KEY

SUM_OP_KEY

public static java.lang.String SUM_OP_KEY

MAXIMUM_OP_KEY

public static java.lang.String MAXIMUM_OP_KEY

MINIMUM_OP_KEY

public static java.lang.String MINIMUM_OP_KEY

UP_BUTTON_KEY

public static java.lang.String UP_BUTTON_KEY

DOWN_BUTTON_KEY

public static java.lang.String DOWN_BUTTON_KEY

ALL_UP_BUTTON_KEY

public static java.lang.String ALL_UP_BUTTON_KEY

ALL_DOWN_BUTTON_KEY

public static java.lang.String ALL_DOWN_BUTTON_KEY

UP_GROUP_BUTTON_KEY

public static java.lang.String UP_GROUP_BUTTON_KEY

GROUP_DOWN_BUTTON_KEY

public static java.lang.String GROUP_DOWN_BUTTON_KEY

ALL_UP_GROUP_BUTTON_KEY

public static java.lang.String ALL_UP_GROUP_BUTTON_KEY

ALL_DOWN_GROUP_BUTTON_KEY

public static java.lang.String ALL_DOWN_GROUP_BUTTON_KEY

OPTIONS_BUTTON_KEY

public static java.lang.String OPTIONS_BUTTON_KEY

ORDER_BUTTON_KEY

public static java.lang.String ORDER_BUTTON_KEY

CONFIRM_MESSAGE_KEY

public static java.lang.String CONFIRM_MESSAGE_KEY

RELOAD_REPORT_KEY

public static java.lang.String RELOAD_REPORT_KEY

ENTITIES_COMBO_KEY

public static java.lang.String ENTITIES_COMBO_KEY

GROUP_KEY

public static java.lang.String GROUP_KEY

EMPTY_ENTITY_KEY

public static java.lang.String EMPTY_ENTITY_KEY

SIMPLE_LINE_KEY

public static java.lang.String SIMPLE_LINE_KEY

MULTILINE_KEY

public static java.lang.String MULTILINE_KEY

GROUP_BY_DATE_TIME_KEY

public static java.lang.String GROUP_BY_DATE_TIME_KEY

GROUP_BY_DATE_KEY

public static java.lang.String GROUP_BY_DATE_KEY

GROUP_BY_MONTH_KEY

public static java.lang.String GROUP_BY_MONTH_KEY

GROUP_BY_MONTH_AND_YEAR_KEY

public static java.lang.String GROUP_BY_MONTH_AND_YEAR_KEY

GROUP_BY_QUARTER_KEY

public static java.lang.String GROUP_BY_QUARTER_KEY

GROUP_BY_QUARTER_AND_YEAR_KEY

public static java.lang.String GROUP_BY_QUARTER_AND_YEAR_KEY

GROUP_BY_YEAR_KEY

public static java.lang.String GROUP_BY_YEAR_KEY

DYNAMIC_SELECTION_TIP_KEY

public static java.lang.String DYNAMIC_SELECTION_TIP_KEY

GROUP_TIP_KEY

public static java.lang.String GROUP_TIP_KEY

ORDER_TIP_KEY

public static java.lang.String ORDER_TIP_KEY

DYNAMIC_UPDATE_CHECK_KEY

public static java.lang.String DYNAMIC_UPDATE_CHECK_KEY

LOAD_TEMPLATE_KEY

public static java.lang.String LOAD_TEMPLATE_KEY

SAVE_TEMPLATE_KEY

public static java.lang.String SAVE_TEMPLATE_KEY

DELETE_TEMPLATE_KEY

public static java.lang.String DELETE_TEMPLATE_KEY

locator

protected EntityReferenceLocator locator
An instance of report engine


container

protected java.awt.Window container

scroll

protected javax.swing.JScrollPane scroll

printingColumnList

protected javax.swing.JList printingColumnList

configurationPanel

protected javax.swing.JPanel configurationPanel

entitiesPanel

protected javax.swing.JPanel entitiesPanel

groupList

protected javax.swing.JList groupList

multigroups

protected java.lang.Object[] multigroups

groupListPanel

protected javax.swing.JPanel groupListPanel

functionList

protected javax.swing.JList functionList

functionListPanel

protected javax.swing.JPanel functionListPanel

printingColumnsPanel

protected javax.swing.JPanel printingColumnsPanel

templatesPanel

protected javax.swing.JPanel templatesPanel

sqlQueryPanel

protected javax.swing.JScrollPane sqlQueryPanel

model

protected javax.swing.table.TableModel model

query

protected QueryExpression query

bundle

protected java.util.ResourceBundle bundle

isTable

protected boolean isTable

rs

protected ReportStore[] rs

order

protected OrderWindow order

wColumn

protected ColumnWidthWindow wColumn

wPopup

protected ColumnWidthPopup wPopup

sqlQueryText

protected javax.swing.JTextArea sqlQueryText

templateCombo

protected javax.swing.JComboBox templateCombo

reportDescription

protected java.lang.String reportDescription

title

protected java.lang.String title

description

protected java.lang.String description

orderCols

protected java.util.List orderCols

settedColumnWidth

protected java.util.Hashtable settedColumnWidth

optionsButton

protected RolloverButton optionsButton

optionsMenu

protected javax.swing.JPopupMenu optionsMenu

grid1CheckMenu

protected javax.swing.JCheckBoxMenuItem grid1CheckMenu

rowNumber2CheckMenu

protected javax.swing.JCheckBoxMenuItem rowNumber2CheckMenu

includeColumnName3CheckMenu

protected javax.swing.JCheckBoxMenuItem includeColumnName3CheckMenu

underlineLine4CheckMenu

protected javax.swing.JCheckBoxMenuItem underlineLine4CheckMenu

fitHead5CheckMenu

protected javax.swing.JCheckBoxMenuItem fitHead5CheckMenu

dynamicHead6CheckMenu

protected javax.swing.JCheckBoxMenuItem dynamicHead6CheckMenu

hideGroupDetail7CheckMenu

protected javax.swing.JCheckBoxMenuItem hideGroupDetail7CheckMenu

bStore

protected RolloverButton bStore

bSQL

protected RolloverButton bSQL

bRefreshReport

protected RolloverButton bRefreshReport

entitiesCombo

protected javax.swing.JComboBox entitiesCombo

orderButton

protected javax.swing.JButton orderButton

setColumnButton

protected javax.swing.JButton setColumnButton

operationTypePopup

protected javax.swing.JPopupMenu operationTypePopup

opTypeButtonGroup

protected javax.swing.ButtonGroup opTypeButtonGroup

sumOpMenu

protected javax.swing.JRadioButtonMenuItem sumOpMenu

minimumOpMenu

protected javax.swing.JRadioButtonMenuItem minimumOpMenu

averageOpMenu

protected javax.swing.JRadioButtonMenuItem averageOpMenu

maximumOpMenu

protected javax.swing.JRadioButtonMenuItem maximumOpMenu

currentItem

protected SelectableFunctionItem currentItem

currentDateGroupItem

protected SelectableDateGroupItem currentDateGroupItem

groupPopup

protected javax.swing.JPopupMenu groupPopup

groupMenu

protected javax.swing.JMenuItem groupMenu

ascendingDescendingPopup

protected javax.swing.JPopupMenu ascendingDescendingPopup

ascendingOpMenu

protected javax.swing.JRadioButtonMenuItem ascendingOpMenu

descendingOpMenu

protected javax.swing.JRadioButtonMenuItem descendingOpMenu

multilinePopup

protected javax.swing.JPopupMenu multilinePopup

multilineGroupButton

protected javax.swing.ButtonGroup multilineGroupButton

simpleLineMenu

protected javax.swing.JRadioButtonMenuItem simpleLineMenu

multilineMenu

protected javax.swing.JRadioButtonMenuItem multilineMenu

currentDynamicItem

protected SelectableDynamicItem currentDynamicItem

confMenu

protected javax.swing.JPopupMenu confMenu

groupByDatePopup

protected javax.swing.JPopupMenu groupByDatePopup

groupByDateGroupButton

protected javax.swing.ButtonGroup groupByDateGroupButton

groupByDateTime

protected javax.swing.JRadioButtonMenuItem groupByDateTime

groupByDate

protected javax.swing.JRadioButtonMenuItem groupByDate

groupByMonth

protected javax.swing.JRadioButtonMenuItem groupByMonth

groupByMonthAndYear

protected javax.swing.JRadioButtonMenuItem groupByMonthAndYear

groupByQuarter

protected javax.swing.JRadioButtonMenuItem groupByQuarter

groupByQuarterAndYear

protected javax.swing.JRadioButtonMenuItem groupByQuarterAndYear

groupByYear

protected javax.swing.JRadioButtonMenuItem groupByYear

listener

protected ItemListener listener

deleteListener

protected DeleteItemListener deleteListener

operationSelectionListener

protected PopupListener operationSelectionListener

dateGroupSelectionListener

protected PopupGroupDateListener dateGroupSelectionListener

orderListener

protected OrderedPopupListener orderListener

dynamicSelectionListener

protected DynamicPopupListener dynamicSelectionListener

updateReportListener

protected UpdateReportListener updateReportListener

chartPanel

protected javax.swing.JPanel chartPanel

loadButton

protected ButtonSelection loadButton

saveButton

protected RolloverButton saveButton

reportName

protected java.lang.String reportName

updateCheck

protected javax.swing.JToggleButton updateCheck

templates

protected java.util.List templates

dscr

protected java.lang.String dscr

user

protected java.lang.String user

preferenceKey

protected java.lang.String preferenceKey

prefs

protected ApplicationPreferences prefs

reportConfigurationDialog

protected ReportSetupDialog reportConfigurationDialog

deleteReportDialog

protected ReportDeleteDialog deleteReportDialog

upButton

protected javax.swing.JButton upButton

downButton

protected javax.swing.JButton downButton

allUpButton

protected javax.swing.JButton allUpButton

allDownButton

protected javax.swing.JButton allDownButton

upGroupButton

protected javax.swing.JButton upGroupButton

downGroupButton

protected javax.swing.JButton downGroupButton

allUpGroupButton

protected javax.swing.JButton allUpGroupButton

allDownGroupButton

protected javax.swing.JButton allDownGroupButton

columnSelectionListener

protected ListenerSeleccionColumnas columnSelectionListener

groupColumnListener

protected GroupColumnListener groupColumnListener

functionListener

protected FunctionListener functionListener

dateGroupListener

protected DateGroupListener dateGroupListener

table

protected Table table
Constructor Detail

DefaultReportDialog

public DefaultReportDialog(java.awt.Frame f,
                           javax.swing.table.TableModel m,
                           java.util.ResourceBundle res,
                           java.util.List templateList,
                           java.lang.String tit,
                           java.lang.String dscr,
                           java.lang.String user,
                           java.lang.String preferenceKey,
                           ApplicationPreferences prefs,
                           Table table)

DefaultReportDialog

public DefaultReportDialog(java.awt.Frame f,
                           javax.swing.table.TableModel m,
                           java.util.ResourceBundle res,
                           java.util.List templateList,
                           java.lang.String tit,
                           java.lang.String dscr,
                           java.lang.String user,
                           java.lang.String preferenceKey,
                           ApplicationPreferences prefs)

DefaultReportDialog

public DefaultReportDialog(ReportStore[] rs,
                           EntityReferenceLocator referenceLocator,
                           java.util.ResourceBundle res,
                           java.util.List templateList,
                           java.lang.String tit)

DefaultReportDialog

public DefaultReportDialog(java.awt.Frame f,
                           ReportStore[] rs,
                           EntityReferenceLocator referenceLocator,
                           java.util.ResourceBundle res,
                           java.util.List templateList,
                           java.lang.String tit,
                           java.lang.String dscr)

DefaultReportDialog

public DefaultReportDialog(java.awt.Dialog d,
                           javax.swing.table.TableModel m,
                           java.util.ResourceBundle res,
                           java.util.List templateList,
                           java.lang.String tit,
                           java.lang.String dscr,
                           java.lang.String user,
                           java.lang.String preferenceKey,
                           ApplicationPreferences prefs,
                           Table table)

DefaultReportDialog

public DefaultReportDialog(java.awt.Dialog d,
                           javax.swing.table.TableModel m,
                           java.util.ResourceBundle res,
                           java.util.List templateList,
                           java.lang.String tit,
                           java.lang.String dscr,
                           java.lang.String user,
                           java.lang.String preferenceKey,
                           ApplicationPreferences prefs)
Method Detail

initTemplateList

public void initTemplateList()

setSize

public void setSize(int width,
                    int height)

setVisible

public void setVisible(boolean b)

setLocation

public void setLocation(int x,
                        int y)

init

public void init()

setDefaultCloseOperation

public void setDefaultCloseOperation(int operation)

groupColumns

protected void groupColumns()

clearReport

protected void clearReport()

getStoreButton

public RolloverButton getStoreButton()

showReportConfigurationDialog

protected void showReportConfigurationDialog()

getUnderlineLine4CheckMenu

public javax.swing.JCheckBoxMenuItem getUnderlineLine4CheckMenu()

getFitHead5CheckMenu

public javax.swing.JCheckBoxMenuItem getFitHead5CheckMenu()

getDynamicHead6CheckMenu

public javax.swing.JCheckBoxMenuItem getDynamicHead6CheckMenu()

getHideGroupDetail7CheckMenu

public javax.swing.JCheckBoxMenuItem getHideGroupDetail7CheckMenu()

getGrid1CheckMenu

public javax.swing.JCheckBoxMenuItem getGrid1CheckMenu()

getRowNumber2CheckMenu

public javax.swing.JCheckBoxMenuItem getRowNumber2CheckMenu()

getIncludeColumnName3CheckMenu

public javax.swing.JCheckBoxMenuItem getIncludeColumnName3CheckMenu()

dispose

public void dispose()

pack

public void pack()

setJMenuBar

public void setJMenuBar(javax.swing.JMenuBar jMenuBar)

getLoadButton

public ButtonSelection getLoadButton()

getSaveButton

public javax.swing.JButton getSaveButton()

loadConfiguration

public boolean loadConfiguration(java.lang.String conf)

configureNewReport

protected void configureNewReport(java.lang.String confData)

setAction

public void setAction(int keyCode,
                      int modifiers,
                      javax.swing.Action action,
                      java.lang.String key)

getResources

public java.util.List getResources(java.lang.String template)

getSettedColumnWidth

public java.util.Hashtable getSettedColumnWidth()

loadDefaultTemplates

protected void loadDefaultTemplates()
                             throws java.io.IOException
Throws:
java.io.IOException

saveReportConfiguration

protected int saveReportConfiguration(java.lang.String conf)

getCurrentConfiguration

protected java.lang.String getCurrentConfiguration()

getColumnClassForColumn

public java.lang.Class getColumnClassForColumn(java.lang.String columnName)

getOrderColumns

protected OrderColumns getOrderColumns()

createReportConfMenu

protected void createReportConfMenu()

updateReport

public void updateReport(boolean force)

updateReport

public void updateReport()

getParameters

public static java.util.Hashtable getParameters(org.w3c.dom.Node node)

checkListStatusButtons

public static void checkListStatusButtons(javax.swing.JList list,
                                          javax.swing.JButton upAll,
                                          javax.swing.JButton up,
                                          javax.swing.JButton down,
                                          javax.swing.JButton downAll)

getXMLTemplate

protected java.lang.String getXMLTemplate()
                                   throws java.io.IOException
Throws:
java.io.IOException

getSelectedDynamicColumnName

protected java.util.Vector getSelectedDynamicColumnName()

getPrintingColumns

public java.util.Vector getPrintingColumns()

getSelectedPrintingColumns

public java.util.Vector getSelectedPrintingColumns()

getSelectedPrintingAndGroupedColumns

public java.util.Vector getSelectedPrintingAndGroupedColumns()
This method combines printing columns with grouped columns returning a Vector with non repeated columns.

Returns:
the resultant Vector

getContentPane

public java.awt.Container getContentPane()

getSelectedDynamicColumns

public java.util.Vector getSelectedDynamicColumns()

getSelectedGroupItems

public java.util.Vector getSelectedGroupItems()

getSelectedGroupColumns

public java.util.Vector getSelectedGroupColumns()

getPrintedGroupsFromSelectedGroups

public java.util.Vector getPrintedGroupsFromSelectedGroups()
Gets the selected group columns that are also marked in selected printing column list.

Returns:
list with columns for grouping.

getSelectedColumns

protected java.util.Vector getSelectedColumns()

getSimpleSelectedGroupColumns

public java.util.Vector getSimpleSelectedGroupColumns()

getSelectedFunctionColumns

public java.util.Hashtable getSelectedFunctionColumns()

setSelectedDateGroupingOperations

public void setSelectedDateGroupingOperations(java.lang.String itemText,
                                              int operation)

getSelectedDateGroupingColumns

public java.util.Hashtable getSelectedDateGroupingColumns()

getTextToTranslateColumnsAndSelected

protected java.util.Vector getTextToTranslateColumnsAndSelected()

getDataModel

public javax.swing.table.TableModel getDataModel(boolean ascending)

setDataModel

public void setDataModel(javax.swing.table.TableModel model)

getOrderedDataModel

public TableSorter getOrderedDataModel(boolean ascending)
This method is used to order a table model. The table model is ordered when exists groups in reports or when user presses ascending-descending order in report dialog (a-z pop-up menu).

Parameters:
ascending - condition to ascending-descending order.
Returns:
the com.ontimize.report.TableSorter with order

getColumnIndex

public int getColumnIndex(java.lang.String columnName,
                          javax.swing.table.TableModel table)
Returns the index of column in data model according to the column name.

Parameters:
columnName - the name of column
table - the table model
Returns:
index of column

getConfMenu

public javax.swing.JPopupMenu getConfMenu()

getSumOpMenu

public javax.swing.JRadioButtonMenuItem getSumOpMenu()

getAverageOpMenu

public javax.swing.JRadioButtonMenuItem getAverageOpMenu()

getMaximumOpMenu

public javax.swing.JRadioButtonMenuItem getMaximumOpMenu()

getMinimumOpMenu

public javax.swing.JRadioButtonMenuItem getMinimumOpMenu()

getSourceTemplateName

public java.lang.String getSourceTemplateName()

updateFunctionList

public void updateFunctionList()

setFunctionColumns

public void setFunctionColumns(java.util.Vector v)

updateColumnClasses

public void updateColumnClasses()

setPrintingColumns

protected void setPrintingColumns(java.util.Vector v)

getEntitiesCombo

public javax.swing.JComboBox getEntitiesCombo()

getColumns

protected java.util.Vector getColumns()

getScroll

public javax.swing.JScrollPane getScroll()

createPrintingColumn

protected java.util.Vector createPrintingColumn(java.util.Vector columns)

createGroupColumn

protected java.util.Vector createGroupColumn(java.util.Vector columns)

createFunctionColumns

protected java.util.Vector createFunctionColumns(java.util.Vector columns,
                                                 java.util.Vector types)

add

protected void add(java.lang.StringBuffer sb,
                   java.lang.String s)

getFunctionList

public javax.swing.JList getFunctionList()

getFunctionListPanel

public javax.swing.JPanel getFunctionListPanel()

setOrderColumns

protected void setOrderColumns(OrderColumns h)

initGroup

protected void initGroup(javax.swing.DefaultListModel l)

setSelectedColumnsToGroup

protected void setSelectedColumnsToGroup(java.util.Vector v)

setSelectedFunctionColumns

protected void setSelectedFunctionColumns(java.util.Hashtable h)

setSelectedPrintingColumns

protected void setSelectedPrintingColumns(java.util.Vector v)

getContainer

public java.awt.Window getContainer()

setDynamicColumnsToSet

protected void setDynamicColumnsToSet(java.util.Vector v)

addComponentListener

public void addComponentListener(java.awt.event.ComponentListener componentListener)
addComponentListener

Parameters:
componentListener - ComponentListener

removeComponentListener

public void removeComponentListener(java.awt.event.ComponentListener componentListener)
removeComponentListener

Parameters:
componentListener - ComponentListener

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getBundle

public java.util.ResourceBundle getBundle()

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

setPrintingColumnPreferences

protected void setPrintingColumnPreferences(java.lang.String stringToParse)

setFunctionColumnPreferences

public void setFunctionColumnPreferences(java.lang.String analyze)

setDynamicColumnPreferences

protected void setDynamicColumnPreferences(java.lang.String analizar)

setGroupColumnPreference

protected void setGroupColumnPreference(java.lang.String analizar)

setOrderColumnPreferences

protected void setOrderColumnPreferences(java.lang.String analizar)

setTemplateList

public void setTemplateList(java.util.List templates)

getTemplateList

public java.util.List getTemplateList()

getTemplateCombo

public javax.swing.JComboBox getTemplateCombo()

setUser

public void setUser(java.lang.String user)

setPreferenceKey

public void setPreferenceKey(java.lang.String preferenceKey)

setPreferences

public void setPreferences(ApplicationPreferences prefs)

setModel

public void setModel(javax.swing.table.TableModel model)

getModel

public javax.swing.table.TableModel getModel()

createFunctionColumns

protected java.util.Vector createFunctionColumns(java.util.Vector columns)

setReportDescription

public void setReportDescription(java.lang.String reportDescription)

setReportEntity

protected void setReportEntity(java.lang.String entity)

setGroupColumns

protected void setGroupColumns(java.util.Vector v)

getConfigurations

protected java.util.List getConfigurations()

getUpdateReportListener

public UpdateReportListener getUpdateReportListener()

deleteConfiguration

public void deleteConfiguration(java.lang.String conf)

showDeleteReportDialog

protected void showDeleteReportDialog()

setContainer

public void setContainer(java.lang.Object container)

center

public void center()

getUpButton

public javax.swing.JButton getUpButton()

getDownButton

public javax.swing.JButton getDownButton()

getAllUpButton

public javax.swing.JButton getAllUpButton()

getUpGroupButton

public javax.swing.JButton getUpGroupButton()

getAllDownButton

public javax.swing.JButton getAllDownButton()

getDownGroupButton

public javax.swing.JButton getDownGroupButton()

getAllUpGroupButton

public javax.swing.JButton getAllUpGroupButton()

getAllDownGroupButton

public javax.swing.JButton getAllDownGroupButton()

getOperationTypePopup

public javax.swing.JPopupMenu getOperationTypePopup()

isTable

public boolean isTable()

getCurrentDynamicItem

public SelectableDynamicItem getCurrentDynamicItem()

setCurrentDynamicItem

public void setCurrentDynamicItem(SelectableDynamicItem currentDynamicItem)

getPrintingColumnList

public javax.swing.JList getPrintingColumnList()

getGroupList

public javax.swing.JList getGroupList()

getOrderCols

public java.util.List getOrderCols()

getGroupPopup

public javax.swing.JPopupMenu getGroupPopup()

getSimpleLineMenu

public javax.swing.JRadioButtonMenuItem getSimpleLineMenu()

getMultilineMenu

public javax.swing.JRadioButtonMenuItem getMultilineMenu()

getMultilinePopup

public javax.swing.JPopupMenu getMultilinePopup()

getQuery

public QueryExpression getQuery()

getAscendingOpMenu

public javax.swing.JRadioButtonMenuItem getAscendingOpMenu()

getDescendingOpMenu

public javax.swing.JRadioButtonMenuItem getDescendingOpMenu()

setCurrentItem

public void setCurrentItem(SelectableFunctionItem currentItem)

getCurrentItem

public SelectableFunctionItem getCurrentItem()

setCurrentDateGroupItem

public void setCurrentDateGroupItem(SelectableDateGroupItem currentDateGroupItem)

getCurrentDateGroupItem

public SelectableDateGroupItem getCurrentDateGroupItem()

getChartPanel

public javax.swing.JPanel getChartPanel()

getUpdateCheck

public javax.swing.JToggleButton getUpdateCheck()

getMultigroups

public java.lang.Object[] getMultigroups()

getTextsToTranslate

public java.util.Vector getTextsToTranslate()

setComponentLocale

public void setComponentLocale(java.util.Locale l)

addTemplates

public void addTemplates(java.util.List templates)

getOptionMenu

public javax.swing.JPopupMenu getOptionMenu()

setOptionMenu

public void setOptionMenu(javax.swing.JPopupMenu optionMenu)

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle res)

getReportEngine

public ReportEngine getReportEngine()

getGroupByDatePopup

public javax.swing.JPopupMenu getGroupByDatePopup()

getGroupByDateMenuItem

public javax.swing.JRadioButtonMenuItem getGroupByDateMenuItem()

setGroupByDateMenuItem

public void setGroupByDateMenuItem(javax.swing.JRadioButtonMenuItem groupByDate)

getGroupByDateTimeMenuItem

public javax.swing.JRadioButtonMenuItem getGroupByDateTimeMenuItem()

setGroupByDateTimeMenuItem

public void setGroupByDateTimeMenuItem(javax.swing.JRadioButtonMenuItem groupByDateTime)

getGroupByMonthMenuItem

public javax.swing.JRadioButtonMenuItem getGroupByMonthMenuItem()

setGroupByMonthMenuItem

public void setGroupByMonthMenuItem(javax.swing.JRadioButtonMenuItem groupByMonth)

getGroupByMonthAndYearMenuItem

public javax.swing.JRadioButtonMenuItem getGroupByMonthAndYearMenuItem()

setGroupByMonthAndYearMenuItem

public void setGroupByMonthAndYearMenuItem(javax.swing.JRadioButtonMenuItem groupByMonthAndYear)

getGroupByQuarterMenuItem

public javax.swing.JRadioButtonMenuItem getGroupByQuarterMenuItem()

setGroupByQuarterMenuItem

public void setGroupByQuarterMenuItem(javax.swing.JRadioButtonMenuItem groupByQuarter)

getGroupByQuarterAndYearMenuItem

public javax.swing.JRadioButtonMenuItem getGroupByQuarterAndYearMenuItem()

setGroupByQuarterAndYearMenuItem

public void setGroupByQuarterAndYearMenuItem(javax.swing.JRadioButtonMenuItem groupByQuarterAndYear)

getGroupByYearMenuItem

public javax.swing.JRadioButtonMenuItem getGroupByYearMenuItem()

setGroupByYearMenuItem

public void setGroupByYearMenuItem(javax.swing.JRadioButtonMenuItem groupByYear)

getTable

public Table getTable()

setTable

public void setTable(Table table)

Ontimize