/** * Adds a titled separator to the form using the specified constraints. * * @param text * the separator titel * @param encodedConstraints * a string representation for the constraints * @return the added separator */ public final JComponent addSeparator(String text, String encodedConstraints) { return addSeparator(text, new CellConstraints(encodedConstraints)); }
/** * Adds an internationalized (i15d) textual label to the form using the * specified constraints. * * @param resourceKey the resource key for the label's text * @param encodedConstraints a string representation for the constraints * @return the added label */ public final JLabel addI15dLabel(String resourceKey, String encodedConstraints) { return addI15dLabel(resourceKey, new CellConstraints(encodedConstraints)); }
/** * Adds a title to the form using the specified constraints. * * @param resourceKey the resource key for the separator title * @param encodedConstraints a string representation for the constraints * @return the added title label */ public final JLabel addI15dTitle(String resourceKey, String encodedConstraints) { return addI15dTitle(resourceKey, new CellConstraints(encodedConstraints)); }
/** * Define the layout for common fields of all GlyphBoard classes. */ private void defineLayout () { final CellConstraints cst = new CellConstraints(); int r = 1; // -------------------------------- builder.add(groupField, cst.xyw(5, r, 3)); } }
PluginPane () { final Collection<String> ids = PluginsManager.getInstance().getPluginIds(); box = new JComboBox<>(ids.toArray(new String[ids.size()])); box.setToolTipText("Default plugin to be launched"); box.setSelectedItem(PluginsManager.defaultPluginId.getValue()); PanelBuilder builder = new PanelBuilder(layout2, this); CellConstraints cst = new CellConstraints(); final int r = 1; builder.add(box, cst.xy(1, r)); builder.add(new JLabel("Plugin launched on MusicXML output"), cst.xy(3, r)); }
private JComponent buildContents() { FormLayout layout = new FormLayout("FILL:150DLU", "FILL:DEFAULT"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(list, cc.xy(1, 1)); builder.setBorder(BorderFactory.createLineBorder(new Color(0x777777), 1)); return builder.getPanel(); }
private JComponent buildEditorPanel() { FormLayout layout = new FormLayout("FILL:DEFAULT:NONE", //$NON-NLS-1$ "FILL:DEFAULT:NONE,CENTER:DEFAULT:NONE"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(monthView, cc.xy(1, 1)); builder.add(new JButton(nullAction), cc.xywh(1, 2, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); return builder.getPanel(); }
private JComponent buildHeader() { FormLayout layout = new FormLayout("FILL:24PX", //$NON-NLS-1$ "FILL:DEFAULT:NONE,2DLU,FILL:DEFAULT:GROW(1.0)"); //$NON-NLS-1$ builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(new JButton(showFavoritesAction), cc.xy(1, 1)); builder.add(showButton, cc.xy(1, 3)); // builder.add(new JButton(clearAction), cc.xy(1, 3)); return builder.getPanel(); }
private JComponent buildEditorPanel() { FormLayout layout = new FormLayout("FILL:DEFAULT:NONE,FILL:250DLU:GROW(1.0)", //$NON-NLS-1$ "CENTER:DEFAULT:NONE,FILL:250DLU:GROW(1.0)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); builder.setDefaultDialogBorder(); CellConstraints cc = new CellConstraints(); builder.add(enableButton, cc.xy(1, 1)); builder.add(new JScrollPane(ta), cc.xyw(1, 2, 2)); return builder.getPanel(); }
private JComponent buildEditorPanel() { FormLayout layout = new FormLayout( "FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE", //$NON-NLS-1$ "FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(new JButton(previousMonthAction), cc.xy(1, 1)); builder.add(new JButton(nextMonthAction), cc.xy(3, 1)); builder.add(label, cc.xy(2, 1)); builder.add(buildDays(), cc.xyw(1, 2, 3)); return builder.getPanel(); }
private JComponent buildContents() { FormLayout layout = new FormLayout("FILL:DEFAULT:GROW(1.0)", //$NON-NLS-1$ "FILL:DEFAULT:NONE,3DLU,FILL:DEFAULT:GROW(1.0)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(pathBar, cc.xy(1, 1)); builder.add(cardPanel, cc.xy(1, 3)); return builder.getPanel(); }
@Override protected JComponent buildEditorPanel() { FormLayout layout = new FormLayout("CENTER:DEFAULT:GROW(1.0)", "FILL:DEFAULT:NONE,4DLU,FILL:DEFAULT:NONE"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(pageSizeSlider, cc.xy(1, 1)); builder.add(pageSizeLabel, cc.xy(1, 3)); return builder.getPanel(); }
private void defineLayout () { CellConstraints cst = new CellConstraints(); FormLayout layout = new FormLayout("190dlu", "pref," + Panel.getFieldInterline() + ",pref"); PanelBuilder builder = new PanelBuilder(layout, getBody()); builder.add(shapeHistory.panel, cst.xy(1, 1)); builder.add(setsPanel, cst.xy(1, 3)); for (Panel shapesPanel : shapesPanels.values()) { builder.add(shapesPanel, cst.xy(1, 3)); // All overlap setsPanel shapesPanel.setVisible(false); } }
private JComponent buildContents() { FormLayout layout = new FormLayout("FILL:MAX(75DLU;PREF):GROW(1.0)", //$NON-NLS-1$ "CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(ToolBarFactory.buildToolBar(selectAllAction, unSelectAllAction), cc.xy(1, 1)); builder.add(panel, cc.xy(1, 2)); return builder.getPanel(); }
protected JPanel buildContents() { FormLayout formLayout = new FormLayout("p,4dlu,fill:100dlu:grow", // columns //$NON-NLS-1$ "p" // rows //$NON-NLS-1$ ); PanelBuilder builder = new PanelBuilder(formLayout); builder.setDefaultDialogBorder(); CellConstraints cc = new CellConstraints(); builder.add(comparaisonTypeBox, cc.xy(1, 1)); builder.add(textField, cc.xy(3, 1)); return builder.getPanel(); }
private JComponent buildEditorPanel() { FormLayout layout = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:" //$NON-NLS-1$ + CENTER_WIDTH + "PX:NONE,FILL:DEFAULT:GROW(1.0)", //$NON-NLS-1$ "FILL:DEFAULT:GROW(1.0)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(leftScrollPane, cc.xy(1, 1)); builder.add(centerScrollPane, cc.xy(2, 1)); builder.add(rightScrollPane, cc.xy(3, 1)); return builder.getPanel(); }
private JComponent buildContentsLeftRight() { FormLayout layout = new FormLayout("FILL:20PX", //$NON-NLS-1$ "CENTER:DEFAULT:GROW(0.35),FILL:20PX,CENTER:DEFAULT:GROW(0.15),FILL:DEFAULT:NONE,CENTER:DEFAULT:GROW(0.15),FILL:20PX,CENTER:DEFAULT:GROW(0.35)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(upLabel, cc.xy(1, 2)); builder.add(textLabel, cc.xy(1, 4)); builder.add(downLabel, cc.xy(1, 6)); return builder.getPanel(); }
private void defineLayout () { component.setNoInsets(); body.setNoInsets(); CellConstraints cst = new CellConstraints(); FormLayout layout = new FormLayout("pref", "pref," + Panel.getFieldInterline() + ",pref"); PanelBuilder builder = new PanelBuilder(layout, component); builder.add(header, cst.xy(1, 1)); builder.add(body, cst.xy(1, 3)); }
private JPanel buildContents() { FormLayout layout = new FormLayout("FILL:DEFAULT:GROW(1.0)", //$NON-NLS-1$ "FILL:PREF:GROW(1.0),CENTER:3DLU:NONE,FILL:MAX(22DLU;PREF):NONE"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); builder.setDefaultDialogBorder(); CellConstraints cc = new CellConstraints(); builder.add(new IconFeedbackComponentValidationResultPanel(validationResultModel, buildEditorPanel()), cc.xy(1, 1)); builder.add(keyTypedResultView, cc.xy(1, 3)); return builder.getPanel(); }
private void defineLayout () { final FormLayout layout = Panel.makeFormLayout(1, 3); final PanelBuilder builder = new PanelBuilder(layout, getBody()); final CellConstraints cst = new CellConstraints(); int r = 1; // -------------------------------- builder.add(rStart.getLabel(), cst.xy(1, r)); builder.add(rStart.getField(), cst.xy(3, r)); builder.add(rLength.getLabel(), cst.xy(5, r)); builder.add(rLength.getField(), cst.xy(7, r)); } }