Package org.pentaho.reporting.tools.configeditor.util

Examples of org.pentaho.reporting.tools.configeditor.util.VerticalLayout


    editorArea = new JPanel();
    editorArea.setLayout(new BorderLayout());

    final JPanel contentArea = new JPanel();
    contentArea.setLayout(new VerticalLayout());//this, BoxLayout.Y_AXIS));
    contentArea.add(moduleNameField);
    contentArea.add(producerField);
    contentArea.add(descriptionArea);

    setLayout(new BorderLayout());
View Full Code Here


   */
  public DefaultModuleEditor()
  {
    messages = Messages.getInstance();
    contentpane = new JPanel();
    contentpane.setLayout(new VerticalLayout());

    helpPane = new JEditorPane();
    helpPane.setEditable(false);
    helpPane.setEditorKit(new HTMLEditorKit());
    helpPane.setPreferredSize(new Dimension(600, 100));
View Full Code Here

  private KeyedComboBoxModel whitespaceModel;
  private KeyedComboBoxModel textAlignModel;

  public ParagraphPropertiesPane()
  {
    setLayout(new VerticalLayout());

    leftAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Left"));
    centerAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Center"));
    rightAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Right"));
    final ButtonGroup halignGroup = new ButtonGroup();
    halignGroup.add(leftAlignButton);
    halignGroup.add(centerAlignButton);
    halignGroup.add(rightAlignButton);

    topAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Top"));
    middleAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Middle"));
    bottomAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Bottom"));
    final ButtonGroup valignGroup = new ButtonGroup();
    valignGroup.add(topAlignButton);
    valignGroup.add(middleAlignButton);
    valignGroup.add(bottomAlignButton);

    textAlignModel = createTextAlignmentModel();
    whitespaceModel = createWhitspaceModel();

    final JComboBox textAlignmentComboBox = new JComboBox(textAlignModel);
    wrapTextCheckbox = new JCheckBox(Messages.getString("ParagraphPropertiesPane.AllowTextWrapping"));
    lineHeightField = new JTextField();
    lineHeightField.setColumns(10);
    final JComboBox whitespaceComboBox = new JComboBox(whitespaceModel);

    final JPanel halignPanel = new JPanel();
    halignPanel.setLayout(new VerticalLayout());
    halignPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("ParagraphPropertiesPane.HorizontalAlignment")));
    halignPanel.add(leftAlignButton);
    halignPanel.add(centerAlignButton);
    halignPanel.add(rightAlignButton);

    final JPanel valignPanel = new JPanel();
    valignPanel.setLayout(new VerticalLayout());
    valignPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("ParagraphPropertiesPane.VerticalAlignment")));
    valignPanel.add(topAlignButton);
    valignPanel.add(middleAlignButton);
    valignPanel.add(bottomAlignButton);
View Full Code Here

    overflowXCheckbox = new JCheckBox(Messages.getString("AdvancedFontPropertiesPane.OverflowX"));
    overflowYCheckbox = new JCheckBox(Messages.getString("AdvancedFontPropertiesPane.OverflowY"));
    quateField = new JTextField();
    quateField.setColumns(30);

    setLayout(new VerticalLayout());

    final JPanel encodingCarrier = new JPanel();
    encodingCarrier.setLayout(new BoxLayout(encodingCarrier, BoxLayout.X_AXIS));
    encodingCarrier.add(new JLabel(Messages.getString("AdvancedFontPropertiesPane.Encoding")));
    encodingCarrier.add(new JComboBox(encodingModel));

    final JPanel pdfPanel = new JPanel();
    pdfPanel.setLayout(new VerticalLayout());
    pdfPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("AdvancedFontPropertiesPane.PDFSettings")));
    pdfPanel.add(embedFontsCheckbox);
    pdfPanel.add(encodingCarrier);

    final JPanel quateCarrier = new JPanel();
    quateCarrier.setLayout(new BoxLayout(quateCarrier, BoxLayout.X_AXIS));
    quateCarrier.add(new JLabel(Messages.getString("AdvancedFontPropertiesPane.Quate")));
    quateCarrier.add(quateField);

    final JPanel textProcessingPanel = new JPanel();
    textProcessingPanel.setLayout(new VerticalLayout());
    textProcessingPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("AdvancedFontPropertiesPane.TextProcessingSettings")));
    textProcessingPanel.add(trimTextCheckbox);
    textProcessingPanel.add(overflowXCheckbox);
    textProcessingPanel.add(overflowYCheckbox);
    textProcessingPanel.add(quateCarrier);
View Full Code Here

    editorArea = new JPanel();
    editorArea.setLayout(new BorderLayout());

    final JPanel contentArea = new JPanel();
    contentArea.setLayout(new VerticalLayout());//this, BoxLayout.Y_AXIS));
    contentArea.add(moduleNameField);
    contentArea.add(producerField);
    contentArea.add(descriptionArea);

    setLayout(new BorderLayout());
View Full Code Here

   */
  public DefaultModuleEditor()
  {
    messages = Messages.getInstance();
    contentpane = new JPanel();
    contentpane.setLayout(new VerticalLayout());

    helpPane = new JEditorPane();
    helpPane.setEditable(false);
    helpPane.setEditorKit(new HTMLEditorKit());
    helpPane.setPreferredSize(new Dimension(600, 100));
View Full Code Here

    overflowXCheckbox = new JCheckBox(Messages.getString("AdvancedFontPropertiesPane.OverflowX"));
    overflowYCheckbox = new JCheckBox(Messages.getString("AdvancedFontPropertiesPane.OverflowY"));
    quateField = new JTextField();
    quateField.setColumns(30);

    setLayout(new VerticalLayout());

    final JPanel encodingCarrier = new JPanel();
    encodingCarrier.setLayout(new BoxLayout(encodingCarrier, BoxLayout.X_AXIS));
    encodingCarrier.add(new JLabel(Messages.getString("AdvancedFontPropertiesPane.Encoding")));
    encodingCarrier.add(new JComboBox(encodingModel));

    final JPanel pdfPanel = new JPanel();
    pdfPanel.setLayout(new VerticalLayout());
    pdfPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("AdvancedFontPropertiesPane.PDFSettings")));
    pdfPanel.add(embedFontsCheckbox);
    pdfPanel.add(encodingCarrier);

    final JPanel quateCarrier = new JPanel();
    quateCarrier.setLayout(new BoxLayout(quateCarrier, BoxLayout.X_AXIS));
    quateCarrier.add(new JLabel(Messages.getString("AdvancedFontPropertiesPane.Quate")));
    quateCarrier.add(quateField);

    final JPanel textProcessingPanel = new JPanel();
    textProcessingPanel.setLayout(new VerticalLayout());
    textProcessingPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("AdvancedFontPropertiesPane.TextProcessingSettings")));
    textProcessingPanel.add(trimTextCheckbox);
    textProcessingPanel.add(overflowXCheckbox);
    textProcessingPanel.add(overflowYCheckbox);
    textProcessingPanel.add(quateCarrier);
View Full Code Here

  private KeyedComboBoxModel whitespaceModel;
  private KeyedComboBoxModel textAlignModel;

  public ParagraphPropertiesPane()
  {
    setLayout(new VerticalLayout());

    leftAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Left"));
    centerAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Center"));
    rightAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Right"));
    final ButtonGroup halignGroup = new ButtonGroup();
    halignGroup.add(leftAlignButton);
    halignGroup.add(centerAlignButton);
    halignGroup.add(rightAlignButton);

    topAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Top"));
    middleAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Middle"));
    bottomAlignButton = new JRadioButton(Messages.getString("ParagraphPropertiesPane.Bottom"));
    final ButtonGroup valignGroup = new ButtonGroup();
    valignGroup.add(topAlignButton);
    valignGroup.add(middleAlignButton);
    valignGroup.add(bottomAlignButton);

    textAlignModel = createTextAlignmentModel();
    whitespaceModel = createWhitspaceModel();

    final JComboBox textAlignmentComboBox = new JComboBox(textAlignModel);
    wrapTextCheckbox = new JCheckBox(Messages.getString("ParagraphPropertiesPane.AllowTextWrapping"));
    lineHeightField = new JTextField();
    lineHeightField.setColumns(10);
    final JComboBox whitespaceComboBox = new JComboBox(whitespaceModel);

    final JPanel halignPanel = new JPanel();
    halignPanel.setLayout(new VerticalLayout());
    halignPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("ParagraphPropertiesPane.HorizontalAlignment")));
    halignPanel.add(leftAlignButton);
    halignPanel.add(centerAlignButton);
    halignPanel.add(rightAlignButton);

    final JPanel valignPanel = new JPanel();
    valignPanel.setLayout(new VerticalLayout());
    valignPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("ParagraphPropertiesPane.VerticalAlignment")));
    valignPanel.add(topAlignButton);
    valignPanel.add(middleAlignButton);
    valignPanel.add(bottomAlignButton);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.tools.configeditor.util.VerticalLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.