Beispiel #1
0
  private void createUiComponent(boolean enabled) {
    bagSettingsPanel = createSettingsPanel();

    infoPanel = new JPanel(new GridBagLayout());
    infoPanel.setToolTipText(bagView.getPropertyMessage("bagView.bagInfoInputPane.help"));
    Border emptyBorder = new EmptyBorder(5, 5, 5, 5);
    infoPanel.setBorder(emptyBorder);

    GridBagConstraints gbc =
        LayoutUtil.buildGridBagConstraints(
            0, 0, 1, 1, 0, 0, GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST);
    infoPanel.add(bagSettingsPanel, gbc);

    bagInfoInputPane = new BagInfoInputPane(bagView, false);
    bagInfoInputPane.setToolTipText(bagView.getPropertyMessage("bagView.bagInfoInputPane.help"));
    bagInfoInputPane.setEnabled(false);

    gbc =
        LayoutUtil.buildGridBagConstraints(
            0, 1, 1, 1, 1, 1, GridBagConstraints.BOTH, GridBagConstraints.WEST);
    infoPanel.add(bagInfoInputPane, gbc);
    this.setViewportView(infoPanel);
  }
Beispiel #2
0
  public void updateInfoFormsPane(boolean enabled) {
    // need to remove something?
    infoPanel.remove(bagInfoInputPane);
    infoPanel.validate();

    bagInfoInputPane = new BagInfoInputPane(bagView, enabled);
    bagInfoInputPane.setToolTipText(bagView.getPropertyMessage("bagView.bagInfoInputPane.help"));

    GridBagConstraints gbc =
        LayoutUtil.buildGridBagConstraints(
            0, 1, 1, 1, 1, 1, GridBagConstraints.BOTH, GridBagConstraints.WEST);
    infoPanel.add(bagInfoInputPane, gbc);

    this.validate();
  }
Beispiel #3
0
 public void showTabPane(int i) {
   bagInfoInputPane.setSelectedIndex(i);
   bagInfoInputPane.invalidate();
 }
Beispiel #4
0
 public void updateInfoForms() {
   bagInfoInputPane.populateForms(bag, false);
   bagInfoInputPane.enableForms(false);
   bagInfoInputPane.invalidate();
 }