Browse Source

REPORT-1344 表单报表块翻页改进并增加局部导出

master
frharry 8 years ago
parent
commit
b7343f7b99
  1. 8
      designer_form/src/com/fr/design/mainframe/FormToolBarButton.java

8
designer_form/src/com/fr/design/mainframe/FormToolBarButton.java

@ -99,12 +99,14 @@ public class FormToolBarButton extends JButton implements MouseListener {
* @param e 鼠标点击事件
*/
public void mouseClicked(MouseEvent e) {
//该button只在报表块工具栏中使用,
//parent只有FormToolBarPane一种,故可以直接强转
final FormToolBarPane toolBarPane = (FormToolBarPane) this.getParent();
if (BaseUtils.isAuthorityEditing()) {
auhtorityMouseAction();
return;
}
if (e.getClickCount() >= 2) {
final FormToolBarPane toolBarPane = (FormToolBarPane) this.getParent();
final FormEditToolBar editToolBar = new FormEditToolBar();
editToolBar.populate(toolBarPane.getFToolBar(), this);
BasicDialog dialog = editToolBar.showWindow(DesignerContext.getDesignerFrame());
@ -119,11 +121,9 @@ public class FormToolBarButton extends JButton implements MouseListener {
private void auhtorityMouseAction() {
if (this.getParent() instanceof FormToolBarPane && this.isEnabled()) {
if (this.isEnabled()) {
this.setSelected(!this.isSelected());
}
}
/**

Loading…
Cancel
Save