Ejemplo n.º 1
0
 private JPanel doLevelLayout() {
   final FormLayout layout = new FormLayout("5dlu, fill:default:grow, 5dlu", "5dlu, pref, 5dlu");
   final PanelBuilder builder = ComponentFactory.createBuilder(layout);
   final CellConstraints cc = new CellConstraints();
   builder.add(levelComboBox, cc.xy(2, 2));
   return ComponentFactory.createPanel(builder);
 }
Ejemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see eu.europa.ec.markt.dss.applet.view.DSSAppletView#doLayout()
  */
 @Override
 protected Container doLayout() {
   final FormLayout layout =
       new FormLayout(
           "5dlu, pref, 5dlu, pref, 5dlu ,pref:grow ,5dlu",
           "5dlu, pref, 5dlu, pref, 5dlu, pref, 5dlu, pref, 5dlu");
   final PanelBuilder builder = ComponentFactory.createBuilder(layout);
   final CellConstraints cc = new CellConstraints();
   builder.addSeparator(I18N_LIBRARY_PATH, cc.xyw(2, 2, 5));
   builder.add(selectFileSource, cc.xy(2, 4));
   builder.add(fileSourceLabel, cc.xyw(4, 4, 3));
   builder.addSeparator(I18N_PASSWORD, cc.xyw(2, 6, 5));
   builder.add(passwordField, cc.xyw(2, 8, 3));
   return ComponentFactory.createPanel(builder);
 }
Ejemplo n.º 3
0
  /*
   * (non-Javadoc)
   *
   * @see eu.europa.ec.markt.dss.applet.view.DSSAppletView#doInit()
   */
  @Override
  protected Container doLayout() {

    final JPanel formatPanel = doFormatLayout();
    final JPanel packagingPanel = doPackagingLayout();
    final JPanel levelPanel = doLevelLayout();

    final FormLayout layout =
        new FormLayout(
            "5dlu,pref:grow ,5dlu",
            "5dlu, pref, 5dlu, pref, 5dlu, pref, 5dlu,pref, 5dlu,pref, 5dlu, pref, 5dlu");
    final PanelBuilder builder = ComponentFactory.createBuilder(layout);
    final CellConstraints cc = new CellConstraints();
    builder.addSeparator(ResourceUtils.getI18n("SIGNATURE_FORMAT"), cc.xyw(2, 2, 1));
    builder.add(formatPanel, cc.xyw(2, 4, 1));
    builder.addSeparator(ResourceUtils.getI18n("PACKAGING"), cc.xyw(2, 6, 1));
    builder.add(packagingPanel, cc.xyw(2, 8, 1));
    builder.addSeparator(ResourceUtils.getI18n("LEVEL"), cc.xyw(2, 10, 1));
    builder.add(levelPanel, cc.xy(2, 12));
    return ComponentFactory.createPanel(builder);
  }
Ejemplo n.º 4
0
 private JPanel doPackagingLayout() {
   return ComponentFactory.createPanel(envelopingButton, envelopedButton, detachedButton);
 }
Ejemplo n.º 5
0
 private JPanel doFormatLayout() {
   return ComponentFactory.createPanel(cadesButton, xadesButton, padesButton, asicsButton);
 }