|
|
@ -73,13 +73,13 @@ public class RegPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
private void initComponents(){ |
|
|
|
private void initComponents(){ |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 0)); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(10, 0, 10, 0)); |
|
|
|
regComboBox = new UIComboBox(regType); |
|
|
|
regComboBox = new UIComboBox(regType); |
|
|
|
regComboBox.setRenderer(listCellRender); |
|
|
|
regComboBox.setRenderer(listCellRender); |
|
|
|
|
|
|
|
|
|
|
|
JPanel contentPane = TableLayoutHelper.createGapTableLayoutPane(new Component[][]{new Component[]{new UILabel(Inter.getLocText("FR-Designer_Input_Rule")), regComboBox}}, TableLayoutHelper.FILL_LASTCOLUMN, 18, 7); |
|
|
|
JPanel contentPane = TableLayoutHelper.createGapTableLayoutPane(new Component[][]{new Component[]{new UILabel(Inter.getLocText("FR-Designer_Input_Rule")), regComboBox}}, TableLayoutHelper.FILL_LASTCOLUMN, 18, 7); |
|
|
|
this.add(contentPane, BorderLayout.NORTH); |
|
|
|
this.add(contentPane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
JPanel centerPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
regErrorMsgPane = new RegErrorMsgPane(); |
|
|
|
regErrorMsgPane = new RegErrorMsgPane(); |
|
|
|
final JPanel cardPane = FRGUIPaneFactory.createCardLayout_S_Pane(); |
|
|
|
final JPanel cardPane = FRGUIPaneFactory.createCardLayout_S_Pane(); |
|
|
|
detailedCardLayout = new CardLayout(); |
|
|
|
detailedCardLayout = new CardLayout(); |
|
|
@ -88,8 +88,9 @@ public class RegPane extends BasicPane { |
|
|
|
cardPane.add((regLengthPane = new RegLengthPane()), "Length"); |
|
|
|
cardPane.add((regLengthPane = new RegLengthPane()), "Length"); |
|
|
|
cardPane.add((regPhonePane = new RegPhonePane()), "Phone"); |
|
|
|
cardPane.add((regPhonePane = new RegPhonePane()), "Phone"); |
|
|
|
cardPane.add((customRegRexPane = new CustomRegRexPane()), "Custom"); |
|
|
|
cardPane.add((customRegRexPane = new CustomRegRexPane()), "Custom"); |
|
|
|
this.add(cardPane, BorderLayout.CENTER); |
|
|
|
centerPane.add(cardPane, BorderLayout.NORTH); |
|
|
|
this.add(regErrorMsgPane, BorderLayout.SOUTH); |
|
|
|
centerPane.add(regErrorMsgPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
this.add(centerPane, BorderLayout.CENTER); |
|
|
|
regComboBox.addActionListener(new ActionListener(){ |
|
|
|
regComboBox.addActionListener(new ActionListener(){ |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
RegExp regExp = (RegExp)regComboBox.getSelectedItem(); |
|
|
|
RegExp regExp = (RegExp)regComboBox.getSelectedItem(); |
|
|
|