奇新Java控件

JComponentPack v3.4 发布说明

修正错误 显示红色
添加新功能 显示绿色
JComponentPack 3.4正式发布! - 2012年2月6日
   

添加新功能:

  1. JDataTable support insert multiple rows and then accept changes to databases.
    New methods in JDataTable:
    JDataTable.moveToInsertRow(boolean);
  2. Sets the row attributes in JDataTable directly, add new methods:
    JDataTable.setAttributesEnabled(boolean);
    JDataTable.setDeleteRowAttributes(AttributeSet);
    JDataTable.setInsertRowAttributes(AttributeSet);
    JDataTable.setUpdateCellAttributes(AttributeSet);
  3. New ColumnValue class in com.zfqjava.sql package to add values for specified SQL type,
    the SyncRow.addColumn methods get updated to support the ColumnValue class.
  4. JDataGrid allow reset row and column header:
    New methods in JDataGrid:
    JDataGrid.resetRowHeader();
    JDataGrid.resetColumnHeader();
  5. JDataForm add new method to fetch the control button, include ok and reset button:
    New method in JDataForm:
    JDataForm.getControlButton
  6. JBean add new method to set the status bar directly:
    JBean.setStatusBar
  7. JLineBar support two different view component, list and tree, use getViewComponent() method to get the actual component: JList or JTree:
    New methods in JLineBar:
    JLineBar.setViewComponentType(int);
    JLineBar.getViewComponentType();
    JLIneBar.getViewComponent();
  8. New constructors added in JStatusBar to add extra component:
    JStatusBar(int, Component[]);
  9. JLocationBar allow set the location text directly:
    JLocationBar.setLocationText(String);
    JLocationBar.getLocationText();
  10. AComboBox component add new method to get the popup button:
    AComboBox.getPopupButton();
  11. DataGridModelAdapter add many methods to set the editable property for row, column and cell:
    DataGridModelAdapter.getResolveCellEditable(int, int);
    DataGridModelAdapter.clearCellEditable(int, int);
    DataGridModelAdapter.setColumnEditable(boolean, int);
    DataGridModelAdapter.isColumnEditable(int);
    DataGridModelAdapter.getColumnEditable(int);
    DataGridModelAdapter.clearColumnEditable(int);
    DataGridModelAdapter.setRowEditable(boolean, int);
    DataGridModelAdapter.isRowEditable(int);
    DataGridModelAdapter.getRowEditable(int);
    DataGridModelAdapter.clearRowEditable(int);
  12. ResultSetTableModel add new methods to get connection, auto generated column names, etc.
    ResultSetTableModel.getConnection();
    ResultSetTableModel.setPageSize(int);
    ResultSetTableModel.getAutoGeneratedColumnSet();
    ResultSetTableModel.setAutoGeneratedColumnSet();
    ResultSetTableModel.moveToInsertRow(boolean);
    ResultSetTableModel.removeInsertRow();
  13. Adds new PivotTableModel to support pivot table, the "PivotTableDemo" in run-demo.bat demonstrate this feature.
  14. New SyncAction and new method "buildSql" in SyncHelper allow customizing the insert, update and delete sql statement.
  15. New TreeHeaderTableModel and TreeHeaderTableModelHelper with the new tree view component type in JLineBar to support the tree header in JDataGrid, the "TreeHeaderGridDemo" in run-demo.bat demonstrate this feature.
  16. New component XScrollBar to support tabbed component in scroll bar.
  17. New component XViewport is a JViewport extension allow disable the JViewport paint rountine.
  18. WorkBook add new method to get the WorkSheet by the specified name:
    WorkBook.getSheet(String);
  19. New ColorIcon added in com.zfqjava.swing package to paint the specified color.
  20. CellManager add new method named "configurePreferredCellComponentType" to configure the preferred cell component type, the boolean value will use the check box, the date type will use the JCalendar.
  21. Two new static factory method "valueOf" method added in Cell class:
    Cell.valueOf(int, int);
    Cell.valueOf(int, int, int, int);
  22. New method added in AbstractCellEditor to customize the focus gained behavior:
    AbstractCellEditor.getFocusGainedBehavior();
    AbstractCellEditor.setFocusGainedBehavior(int);
  23. Chart package: AbstractNode add new methods:
    AbstractNode.isToggleOnSelect();
    AbstractNode.setToggleOnSelect(boolean);
    AbstractNode.isLabelRendererEnabled();
    AbstractNode.setLabelRendererEnabled(boolean);
  24. Chart package: ArcNode add new methods:
    ArcNode.setAngle(double, double);
    ArcNode.getAngleStart();
    ArcNode.getAngleExtent();
  25. Chart package: Chart class add new method to customize the layout behavior:
    Chart.isLayoutOnSelectionChanged();
    Chart.setLayoutOnSelectionChanged();
  26. Chart package: Link add new methods to customize the segment label:
    Link.setSegmentLabel(int, String);
    Link.getSegmentLabel(int);
    Link.setPointLabel(int, String);
    Link.getPointLabel(int);
  27. Chart package: PieChart add new methods to customize the series link and percent label:
    PieChart.isSeriesLinkVisible();
    PieChart.setSeriesLinkVisible(boolean);
    PieChart.isPercentVisible();
    PieChart.setPercentVisible(boolean);
  28. AbstractDataGridModel add new methods to customize the editable property and other:
    AbstractDataGridModel.clearRowEditable(int);
    AbstractDataGridModel.clearColumnEditable(int);
    AbstractDataGridModel.clearCellEditable(int, int);
    AbstractDataGridModel.getResolveCellEditable(int, int);
    AbstractDataGridModel.findColumn(String);
    AbstractDataGridModel.isColumnNameSet(int);
    AbstractDataGridModel.getFormulaContext();
版本更新日志

JComponentPack 3.3 - 2011年9月1日

添加新功能:

  1. JDataTable can set color and other attributes for insert row, delete row, update cells, the "datatable.bat" or "datatable.sh" demonstrates this features.
    ResultSetDataGridModelAdapter.setDeleteRowAttributes(AttributeSet);
    ResultSetDataGridModelAdapter.setInsertRowAttributes(AttributeSet);
    ResultSetDataGridModelAdapter.setUpdateCellAttributes(AttributeSet);
  2. JDataTable can add or update the hidden column in databases.
    ResultSetTableModel.setSyncHelper(SyncHelper);
  3. JDataTable can map the column names in databases, support SQL as clause.
    ResultSetTableModel.setColumnNameMap(Map<String, String>);
  4. JDataTable can log sql statement when accept changes.
    ResultSetTableModel.setLogSql(boolean);
  5. JDataTable can get notified by RowSetListener:
    ResultSetTableModel.addRowSetListener(RowSetListener);
  6. JDataTable add several new methods:
    JDataTable.moveToInsertRow();
    JDataTable.markAsDeletedRow(boolean);
    JDataTable.nextPage();
    JDataTable.previousPage();
    JDataTable.hasPreviousPage();
    JDataTable.isPreviousPageEnabled();
    JDataTable.hasNextPage();
    JDataTable.isNextPageEnabled();
    JDataTable.isFirstPage();
    JDataTable.isLastPage();
    JDataTable.hasPreviousRow();
    JDataTable.isPreviousRowEnabled();
    JDataTable.hasNextRow();
    JDataTable.isNextRowEnabled();
  7. JDataTable can get notified when sync to database, the SyncListener is updated:
    SyncListener.syncFailed(SyncEvent);
    SyncListener.syncSucceeded(SyncEvent);
    ResultSetTableModel.addSyncListener(SyncListener);
  8. CellManager can change the editor or renderer component type directly:
    CellManager.setCellEditorComponentTypeByClass(Class, CellEditorComponentType);
    CellManager.setCellRendererComponentTypeByClass(Class, CellRendererComponentType);
  9. ModelIO add new property named "CHARSET", you could set the charset when read or write TableModel for "txt, csv" and other formats.
  10. JSyntaxEditor add several new formats for syntax highlighting.
JComponentPack 3.2 - 2010年12月2日

添加新功能:

  1. Adds several new components: JFlowChart, JSlideShow, JTextEditor, JSyntaxEditor, JDataForm, JDesktop.
  2. ResourceManager support single ResourceBundle since this version, adds two new API in ResourceManager:

    ResourceManager.getBundle(String);
    ResourceManager.getDefaultBundle();

  3. AbstractDataGridModel and it's subclass DefaultDataGrid, LargeDataGridModel support the default attributes, adds new API in AbstractDataGridModel:

    AbstractDataGridModel.getDefaultAttributes();
    AbstractDataGridModel.setDefaultAttributes(AttributeSet);

  4. Adds new DefaultStyleDemo to demonstrate the default attributes in the AbstractDataGridModel.
  5. Adds new property named "domainName" in License class.
  6. The JComponentPack JavaFX components support JavaFX1.2 Runtime.
  7. Adds new API in JDataGrid, this will improve the render performance of JDataGrid with a lot of cell attributes:

    JDataGrid.getCellAttributes(int row, int column, boolean readOnly);

  8. AnchorLayout adds new Location: N, S, E, W, C, the LayoutDemo also demonstrate this new feature.
  9. The Cell Editor and Renderer support button cell, the ButtonCellDemo2 demonstrate this new feature.
  10. JCommonPane adds new method named "createVendorCopyrightPanel" to support creating the copyright panel.
  11. JPrintPreview component generate the new preview image again when magnify, this feature will avoid preview the highly pixilated image when magnify.
  12. JPrintPreview component adds new bound property named "pageableEnabled",this property enable the page feature on printing for all Printable object, this value is false by defalut to keep the backward compatibility, you can enable it by invoke "printPreview.setPageableEnabled(true);".
  13. JPrintPreview adds new bound property named "attributesEnabled" to enable using the new cross-platform page setup dialog, print dialog, these new dialogs is provided by "javax.print" API, you can invoke the method "printPreview.setAttributesEnabled(true);" to enable this new feature, the PrintPreviewDemo demonstrate this new feature.
  14. Adds several new API in JDataGrid:

    JDataGrid.setCellManager(CellManager);
    JDataGrid.stopEditing();
    JDataGrid.cancelEditing();
    JDataGrid.getFocusLostBehavior();
    JDataGrid.setFocusLostBehavior(int);
    JDataGrid.getLeadSelectionRow();
    JDataGrid.getLeadSelectionColumn();

修正错误:

  1. Cell border stroke should be single selection in cell attributes dialog.
  2. Show popup in JDataGridBean, the current cell editing should stop.
  3. The WorkSheet should create a CellSelectionModel by default when load .xls files.
  4. The method "JCommonPane.createVendorBannerPanel(Map)" layout the logo on the wrong location.
JComponentPack 3.1 - 2009年9月21日

新功能介绍:
1.Adds font panel in cell attributes panel.
2.Adds new BooleanConverter, support the following values:
string types: CHAR or VARCHAR
true values: "TRUE", "YES", "T", "Y", "true", "yes", "t", "y",
false values: "FALSE", "NO", "F", "N", "false", "no", "f", "n"
number types, includes SQL types: BIT, TINYINT, SMALLINT, INTEGER or BIGINT
3.AbstractDataGridModel has been add the following methods:
AbstractDataGridModel .isColumnClassSet(int);
The DefaultDataGridModel and LargeDataGridModel has been implemented
this methods.
4.DataGridModelAdapter and it's subclass ResultSetDataGridModelAdapter now
supports set the column type to override the column type of the ResultSet,
the following methods in these classes has been modified:
DataGridModelAdapter.getColumnClass(int);
DataGridModelAdapter.setColumnClass(Class, int)
5.The new listener SyncListener has been added into the com.zfqjava.sql package:
com.zfqjava.sql.SyncListener
com.zfqjava.sql.SyncEvent
6.ResultSetTableModel and RowSetTableModel adds the followings methods.
ResultSetTableModel.addSyncListener(SyncListener);
ResultSetTableModel.removeSyncListener(SyncListener);
ResultSetTableModel.getSyncListeners();
RowSetTableModel.addSyncListener(SyncListener);
RowSetTableModel.removeSyncListener(SyncListener);
RowSetTableModel.getSyncListeners();
7.Hyperlink for cell
8.Text Rotate support
9.Disable the default browse button inside the hyper link popup
dataGridBean.getAppMap().put(JCommonPane.LOCATION_BROWSE_BUTTON_HIDDEN, true)
10.New API in JDataGridBean to get the popup menu:
JDataGridBean.getPopupMenu(String);
11.JDataGrid component support read and write new file format: Excel 2007 OOXML (.xlsx)

JComponentPack3.0 - 2009年4月6日

新功能介绍:

  3.0版本添加了最新的JDataGrid电子表格服务器端控件,JDataGrid小程序 直接支持最新的服务器端控件,您可以通过简单的设置,设置一个服务器端控 件的URL,就能读取,保存,下载各种不同格式的电子表格文件,所有的配置 在服务器端完成。   3.0版本添加了JDataGrid JavaFX控件"DataGrid"和"DataGridBean",您 可以在JavaFX脚本中直接调用这些控件,这些JavaFX控件直接支持最新的 JDataGrid电子表格服务器端控件。 版本 1.5.0 - 2009年2月16日 * Fix the following bugs: JDataGrid:
1.Click on any hyperlink in any column in applet datagrid, get IllegalArgumentException.
2.In the datagrid we have 2 JDataGrids and if we click on any hyperlink, it only selects the row
from corresponding JDataGrid.
3.The same license code should not add many times. * New Features:
1.Adds new classes in com.zfqjava.swing.cell package:
com.zfqjava.swing.cell.CellProvider2
com.zfqjava.swing.cell.CellArgs
2.Make the following classes to public:
com.zfqjava.swing.JCommonPane.BannerPanel
com.zfqjava.swing.JCommonPane.ImagePanel
com.zfqjava.swing.JCommonPane.ImageBannerPanel
3.Adds new API to create vendor banner panel.
com.zfqjava.swing.JCommonPane.createVendorBannerPanel(Map);
4.This version includes a new NetBeans IDE Plugin. 版本 1.4.0 - 2008年12月8日 * Fix the following bugs: 1.AComboBox component use JComboBox border throws ClassCastException
2.JPrintPreview component cannot work in JDataGridBean
3.JListView component switch to thumbnails view mode throws NPE.
4.XList and JListView start editing, the timer cannot work
5.JListView view file in details mode, the file rename cannot save
6.JListView component in small icon view mode, rename the file, the icon cannot display correctly.
7.JListView rename file, the file name need validation
8.JListView should provide a default transfer to display the icon?
9.JSideBar component should use VERTICAL layout Orientation. * New Features:
1.JListView component adds the following API:
JListView.sizeColumnWidthToFit(int);
JListView.getComponentFactory();
JListView.setComponentFactory(AbstractComponentFactory);
JListView.getAction(String);
JListView.addComponentFactory(String, String);
JListView.removeComponentFactory(String);
2.JListView component provides a default file transfer to support Drag&Drop operation.
3.JDataGrid component adds new client property "JDataGrid.notEditableCellRendererDisabled" to disable the cell renderer when the cell is not editable.
4.Introduce the new swing component "ASplitPane".
5.JTextSpeller expose the following API and inner classes:
JTextSpeller.AbstractSpeller
JTextSpeller.setSpeller(AbstractSpeller)
JTextSpeller.getSpeller();
JTextSpeller.createSpeller(Component);
6.JTextFinder expose the following API and inner classes:
JTextFinder.AbstractFinder
JTextFinder.setFinder(AbstractFinder)
JTextFinder.getFinder();
JTextFinder.createFinder(Component);
版本 1.3.0 - 2008年10月6日

  * LineChart和BarChart改变Model时,x和y轴和背景格子消失。  修正错误
* 在单元格编辑中添加了新的控件类型。 添加新功能 * AComboBox 添加了下列的API: 添加新功能 AComboBox.getValueClass();
AComboBox.setValueClass(Class);
AComboBox.addActionListener(ActionListener);
AComboBox.removeActionListener(ActionListener);
AComboBox.getActionListeners();
AComboBox.fireActionPerformed(ActionEvent); * DateCellEditor 支持通过JCalendar控件选择日期。 添加新功能 * 添加了标示单元格控件的CellRendererComponentType和CellEditorComponentType. 添加新功能 * 在JDataGrid中添加了改变单元格编辑和显示控件的新的API:
JDataGrid.setCellEditorComponentTypeByColumn(int, CellEditorComponentType);
JDataGrid.getCellEditorComponentTypeByColumn(int);
JDataGrid.setCellEditorComponentTypeByClass(Class, CellEditorComponentType);
JDataGrid.getCellEditorComponentTypeByClass(Class);
JDataGrid.setCellRendererComponentTypeByColumn(int, CellRendererComponentType);
JDataGrid.getCellRendererComponentTypeByColumn(int);
JDataGrid.setCellRendererComponentTypeByClass(Class, CellRendererComponentType);
JDataGrid.getCellRendererComponentTypeByClass(Class); * 在AbstractCellEditor中添加了改变编辑控件的API:
AbstractCellEditor.setCellEditorComponentType(CellEditorComponentType);
AbstractCellEditor.getCellEditorComponentType(); * 在AbstractCellRenderer中添加了改变编辑控件的API:
AbstractCellRenderer.setCellRendererComponentType(CellRendererComponentType);
AbstractCellRenderer.getCellRendererComponentType(); * 添加了新的CellEditorListener2, 可以获取JDataGrid单元格编辑验证失败的信息. * JDataGrid控件添加了新的API:
JDataGrid.addCellEditorListener(CellEditorListener);
JDataGrid.removeCellEditorListener(CellEditorListener);
JDataGrid.getCellEditorListeners(); * DateCellRenderer 和 DateCellEditor 默认使用日期格式,和JTable保持一致。 * 添加了新的CellSpanModel,JDataGrid控件可以直接使用TableModel,结合CellSpanModel
也能实现单元格的合并和分离,添加了下列类:
com.zfqjava.swing.CellSpanModel
com.zfqjava.swing.AbstractCellSpanModel
com.zfqjava.swing.DefaultCellSpanModel
com.zfqjava.swing.event.CellSpanEvent
com.zfqjava.swing.event.CellSpanListener * JDataGrid类添加了对CellSpanModel的支持的API:
JDataGrid.getCellSpanModel();
JDataGrid.setCellSpanModel(CellSpanModel);
JDataGrid.createCellSpanModel(); * 下列错误得到修改:
1.I have a Date column. I do an Excel-style "select & drag the corner" to advance the values in the cells below.
The day of the month advances correctly, but the month does not change. Thank Plamen Petrov for bug report. 2.JBean throws ConcurrentModificationException Thank Harry Dollard for bug report. 版本 1.2.0 - 2008年06月23日   * 澄清JPrintPreview.showInternalFrame和JPrintPreview.showFrame这两个方法的JavaDoc. 修正错误
* JPrintPreview控件添加了得到当前打开的JFrame的API: 添加新功能 JPrintPreview.getFrame(); * JPrintPreview控件调用showDialog后不能显示设置的打印数据。 修正错误 * JWizardPane控件自动设置 下一步 按钮。 添加新功能 * JWizardPane控件添加了新的辅助类: 添加新功能 * JDirChooser控件对话框新建文件夹工具提示错误。
感谢Kenny Huang报告这个Bug. 修正错误
* 改正了几个支持OpenOffice的公式的问题。 修正错误 * JListView控件简化了支持拖放功能代码,ListViewDemo演示了这个新功能。 添加新功能 * JDataGridBean控件添加了说明当前数据和数据位置的API: 添加新功能
JDataGridBean.setData(Object);
JDataGridBean.getData();
JDataGridBean.setDataLocation(Object);
JDataGridBean.getDataLocation(); * 添加了新的JTableWriteTableModelTask,在后台线程将TableModel或者WorkBook写到指定的文件。 添加新功能 * 添加了支持将WorkBook或者TableModel保存为PDF文件的Writer: ITextPdfWorkBookWriter. 添加新功能 * AbstractDataGridModel 添加了新的API: 添加新功能
AbstractDataGridModel.setCellClass(Class, Cell); * 改正了JDataGridBean单元格属性对话框类型面板不能匹配当前单元格类型的问题。
感谢 "William E Lucarell" 报告这个问题。 修正错误 * 改正了JDataGridBean单元格属性对话框底纹面板无法选择颜色的问题。
感谢 "William E Lucarell" 报告这个问题。 修正错误 * LargeDataGridModel不能自动转换单元格类型。
感谢 "William E Lucarell" 报告这个问题。 修正错误 版本 1.1.0 - 2008年05月06日   * 添加了新的ComponentCellRenderer。 添加新功能   * 添加了新的XCompoundBorder 添加新功能 * EnumCellRenderer添加了对控制的支持 添加新功能 * AComboBox 不支持编辑属性,抛出NPE. 修正错误 * AComboBox添加了新的API: 添加新功能
AComboBox.setComponentFactory(AbstractComponentFactory componentFactory);
AComboBox.getComponentFactory(); * CalendarDemo 用新的AComboBox特性. 添加新功能 * 改变AComboBox的边框样式 添加新功能 * AComboBox 弹出框能够切换 添加新功能 * JCalendar 添加了新的API: 添加新功能
JCalendar.getActionClickCount();
JCalendar.setActionClickCount(int); * XList控件使用AbstractCellEditor作为单元格编辑器类型 * XList 添加了新的API: 添加新功能
XList.getActionClickCount();
XList.setActionClickCount(int);
XList.isIndexEditable(int, EventObject); * JCalendar 添加了新的属性: 添加新功能
JCalendar.todayButtonFireActionEventEnabled * JDataGridBean和JDataTableBean添加了新的属性控制程序启动画面: 添加新功能
com.zfqjava.swing.JDataGridBean.hideSplash
com.zfqjava.swing.JDataTableBean.hideSplash * FormulaFactory添加了新的方法: 添加新功能
FormulaFactory.createFormulaContext(); * com.zfqjava.formula包中的CellUtils类改变为公共访问类。 * CellStyle实现了Serializable接口 添加新功能 * JDataGridBean 和 JDataTableBean的打印预览功能实现了在新 添加新功能
的窗口中显示的功能。 * JDataGridBean 添加了根据环境的不同选择打开新窗口的方式. 添加新功能 * JDataGridBean 和 JDataTableBean 添加了新的打印属性的API: 添加新功能
JDataGridBean.getPrintProperties();
JDataGridBean.setPrintProperties(Map);
JDataGridBean.createPrintProperties();

JDataTableBean.getPrintProperties();
JDataTableBean.setPrintProperties(Map);
JDataTableBean.createPrintProperties();

* JDataGridBean 添加了是否打印选中的单元格区域的功能。 添加新功能 JDataGridBean.isPrintSelectedCell(); JDataGridBean.setPrintSelectedCell(boolean); * JDataGrid输出Excel xml格式处理公式不正确。 修正错误
* JDataGrid 输出Excel xml格式支持合并的单元格。 修正错误
* JDataGrid 输出和输出 Excel xml文件单元格背景的处理不正确。 修正错误
* JDataGridBean 添加了新的API: 添加新功能 JDataGridBean.getSupportedFileSuffix(); JDataGridBean.setSupportedFileSuffix(Set); * ResultSetTableModel 添加了新的API: 添加新功能 ResultSetTableModel.getCountCommand(); ResultSetTableModel.setCountCommand(String); ResultSetTableModel.getCurrentAllRowCount(); ResultSetTableModel.setAllRowCount(int);
版本 1.0.0 - 2008年03月05日

初始版本.

Copyright (C) 2010 奇新公司-Java控件供应商 版权所有