Revision 1601 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/extension/reportfromlayout/ConfigureReportFromLayoutPanelView.java

View differences:

ConfigureReportFromLayoutPanelView.java
10 10
import java.awt.Dimension;
11 11
import javax.swing.Box;
12 12
import javax.swing.ImageIcon;
13
import javax.swing.JButton;
13 14
import javax.swing.JCheckBox;
14 15
import javax.swing.JComboBox;
15 16
import javax.swing.JFrame;
......
27 28
   JLabel lblReport = new JLabel();
28 29
   JLabel lblIdentifier = new JLabel();
29 30
   JLabel lblLabel = new JLabel();
30
   JCheckBox chkCenterToCurrentRow = new JCheckBox();
31 31
   JCheckBox chkUseInternalPdfViewer = new JCheckBox();
32 32
   JComboBox cboLayout = new JComboBox();
33 33
   JTree treeSource = new JTree();
......
37 37
   TitledSeparator lblViewSeparator = new TitledSeparator();
38 38
   JLabel lblView = new JLabel();
39 39
   JComboBox cboView = new JComboBox();
40
   JCheckBox chkHighlightRecord = new JCheckBox();
40 41
   JCheckBox chkZoomToCurrentRow = new JCheckBox();
41 42
   JLabel lblBufferSize = new JLabel();
42 43
   JTextField txtBufferSize = new JTextField();
44
   JButton btnSelectSymbol = new JButton();
45
   JCheckBox chkCenterToCurrentRow = new JCheckBox();
43 46

  
44 47
   /**
45 48
    * Default constructor
......
131 134
   public JPanel createPanel()
132 135
   {
133 136
      JPanel jpanel1 = new JPanel();
134
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
137
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
135 138
      CellConstraints cc = new CellConstraints();
136 139
      jpanel1.setLayout(formlayout1);
137 140

  
......
156 159
      lblLabel.setText("_Label");
157 160
      jpanel1.add(lblLabel,cc.xy(2,10));
158 161

  
159
      chkCenterToCurrentRow.setActionCommand("_Center_to_current_row");
160
      chkCenterToCurrentRow.setName("chkCenterToCurrentRow");
161
      chkCenterToCurrentRow.setText("_Center_to_current_row");
162
      chkCenterToCurrentRow.setToolTipText("_Center_to_current_row_description");
163
      jpanel1.add(chkCenterToCurrentRow,cc.xywh(2,16,3,1));
164

  
165 162
      chkUseInternalPdfViewer.setActionCommand("_Center_to_current_row");
166 163
      chkUseInternalPdfViewer.setName("chkUseInternalPdfViewer");
167 164
      chkUseInternalPdfViewer.setText("_Use_internal_pdf_viewer");
168 165
      chkUseInternalPdfViewer.setToolTipText("_Use_internal_pdf_viewer_description");
169
      jpanel1.add(chkUseInternalPdfViewer,cc.xywh(2,20,3,1));
166
      jpanel1.add(chkUseInternalPdfViewer,cc.xywh(2,22,3,1));
170 167

  
171 168
      cboLayout.setName("cboLayout");
172 169
      jpanel1.add(cboLayout,cc.xy(4,2));
......
199 196
      cboView.setName("cboView");
200 197
      jpanel1.add(cboView,cc.xy(4,14));
201 198

  
202
      jpanel1.add(createPanel1(),cc.xywh(2,18,3,1));
203
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21 });
199
      chkHighlightRecord.setActionCommand("_Center_to_current_row");
200
      chkHighlightRecord.setName("chkHighlightRecord");
201
      chkHighlightRecord.setText("_Highlight_record");
202
      chkHighlightRecord.setToolTipText("_Highlight_record_in_report");
203
      jpanel1.add(chkHighlightRecord,cc.xy(2,16));
204

  
205
      jpanel1.add(createPanel1(),cc.xywh(2,20,3,1));
206
      btnSelectSymbol.setActionCommand("_Select_symbol");
207
      btnSelectSymbol.setName("btnSelectSymbol");
208
      btnSelectSymbol.setText("_Select_symbol");
209
      jpanel1.add(btnSelectSymbol,new CellConstraints(4,16,1,1,CellConstraints.LEFT,CellConstraints.DEFAULT));
210

  
211
      chkCenterToCurrentRow.setActionCommand("_Center_to_current_row");
212
      chkCenterToCurrentRow.setName("chkCenterToCurrentRow");
213
      chkCenterToCurrentRow.setText("_Center_to_current_row");
214
      chkCenterToCurrentRow.setToolTipText("_Center_to_current_row_description");
215
      jpanel1.add(chkCenterToCurrentRow,cc.xywh(2,18,3,1));
216

  
217
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 });
204 218
      return jpanel1;
205 219
   }
206 220

  

Also available in: Unified diff