});
return page;
}
private void createHeader(PrintFrame header) {
FlowDownFrame down = new FlowDownFrame(header, 1, 0.23);
ListFrame text = new ListFrame(down, 1, 1);
text.setFont(DEFAULTFONT, 14, SWT.BOLD);
text.setAlignment(SWT.CENTER);
text.setMargin(0.1, 0.1, 0.0, 0.0);
text.add("Deck Registration Sheet");
down = new FlowDownFrame(header, 1, 0.02);
BorderFrame border = new BorderFrame(down, 1, 1);
border.setBackground(SWT.COLOR_GRAY);
down = new FlowDownFrame(header, 1, 0.25);
FlowRightFrame right = new FlowRightFrame(down, 0.3, 1);
text = new ListFrame(right, 1, 1);
text.setFont(DEFAULTFONT, 11, SWT.BOLD);
text.setAlignment(SWT.CENTER);
text.setMargin(0.1, 0.1, 0.0, 0.0);
text.add("Player Name: " + deck.get(DeckConstants.FEATURE_PLAYER));
right = new FlowRightFrame(down, 0.5, 1);
text = new ListFrame(right, 1, 1);
text.setFont(DEFAULTFONT, 11, SWT.BOLD);
text.setAlignment(SWT.CENTER);
text.setMargin(0.1, 0.1, 0.0, 0.0);
text.add("DCI: " + deck.get(DeckConstants.FEATURE_DCI));
right = new FlowRightFrame(down, 0.2, 1.0);
text = new ListFrame(right, 1, 1);
text.setFont(DEFAULTFONT, 11, SWT.BOLD);
text.setAlignment(SWT.CENTER + SWT.RIGHT);
text.setMargin(0.1, 0.1, 0.0, 0.0);
text.add("Date: " + deck.get(DeckConstants.FEATURE_TOURNAMENT_DATE));
down = new FlowDownFrame(header, 1.0, 0.25);
right = new FlowRightFrame(down, 0.3, 1.0);
text = new ListFrame(right, 1, 1);
text.setFont(DEFAULTFONT, 11, SWT.NORMAL);
text.setAlignment(SWT.CENTER);
text.setMargin(0.1, 0.1, 0.0, 0.0);
text.add("Tournament: " + deck.get(DeckConstants.FEATURE_TOURNAMENT_TITLE));
right = new FlowRightFrame(down, 0.5, 1.0);
text = new ListFrame(right, 1, 1);
text.setFont(DEFAULTFONT, 11, SWT.NORMAL);
text.setAlignment(SWT.CENTER);
text.setMargin(0.1, 0.1, 0.0, 0.0);
text.add("City: " + deck.get(DeckConstants.FEATURE_TOURNAMENT_CITY));
right = new FlowRightFrame(down, 0.2, 1.0);
text = new ListFrame(right, 1, 1);
text.setFont(DEFAULTFONT, 11, SWT.NORMAL);
text.setAlignment(SWT.CENTER + SWT.RIGHT);
text.setMargin(0.1, 0.1, 0.0, 0.0);
text.add("Type: " + deck.get(DeckConstants.FEATURE_TOURNAMENT_TYPE));
down = new FlowDownFrame(header, 1, 0.25);
right = new FlowRightFrame(down, 0.5, 1.0);
text = new ListFrame(right, 1, 1);
text.setFont(DEFAULTFONT, 11, SWT.NORMAL);
text.setAlignment(SWT.CENTER);
text.setMargin(0.1, 0.1, 0.0, 0.0);