public void layout(final DefaultFormBuilder builder) { for(int i = 0; i < n; i++){ builder.append(""); } }
@Override protected final JComponent buildEditorPanel() { FormLayout layout = new FormLayout("FILL:250DLU:GROW(1.0)", //$NON-NLS-1$ ""); //$NON-NLS-1$ DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.append(ToolBarFactory.buildToolBar(addAction, cloneAction, null, editAction, deleteAction), builder.getColumnCount()); builder.appendRow(builder.getLineGapSpec()); builder.nextLine(2); builder.appendRow("FILL:80DLU:GROW(1.0)"); builder.append(new JSyScrollPane(table), builder.getColumnCount()); return builder.getPanel(); }
public JNDIDataSourceView() { jndiPath = new JTextFieldUndoable(); // assemble FormLayout layout = new FormLayout("right:80dlu, 3dlu, fill:200dlu", ""); DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.setDefaultDialogBorder(); builder.appendSeparator("JNDI Configuration"); builder.append("JNDI Location:", jndiPath); this.setLayout(new BorderLayout()); this.add(builder.getPanel(), BorderLayout.CENTER); }
/** * Adds three components to the panel; each component will span a single * data column. Proceeds to the next data column. * * @param c1 the first component to add * @param c2 the second component to add * @param c3 the third component to add */ public void append(Component c1, Component c2, Component c3) { append(c1); append(c2); append(c3); }
/** * Adds a component to the panel using the default constraints * with a column span of 1. Then proceeds to the next data column. * * @param component the component to add */ public void append(Component component) { append(component, 1); }
/** * Adds a component to the panel using the default constraints * with a column span of 1. Then proceeds to the next data column. * * @param component the component to add */ public void append(Component component) { append(component, 1); }
/** * Adds an internationalized (i15d) text label to the panel using * the given resource key and proceeds to the next column. * * @param resourceKey the resource key for the the label's text * @return the added label */ public JLabel appendI15d(String resourceKey) { return append(getI15dString(resourceKey)); }
/** * Adds an internationalized (i15d) text label to the panel using * the given resource key and proceeds to the next column. * * @param resourceKey the resource key for the the label's text * @return the added label */ public JLabel appendI15d(String resourceKey) { return append(getI15dString(resourceKey)); }
private void appendLabeledComponent(final DefaultFormBuilder formBuilder, String labelKey, Component component) { final String text = TextUtils.getText(labelKey); final JLabel label = new JLabel(text); TranslatedElement.TEXT.setKey(label, labelKey); formBuilder.append(label, 5); formBuilder.append(component); formBuilder.nextLine(); }
/** * Adds a text label to the panel and proceeds to the next column. * * @param textWithMnemonic * the label's text - may mark a mnemonic * @return the added label */ public JLabel append(String textWithMnemonic) { JLabel label = getComponentFactory().createLabel(textWithMnemonic); append(label); return label; }
/** * Adds a title label to the panel and proceeds to the next column. * * @param textWithMnemonic the label's text - may mark a mnemonic * @return the added title label */ public JLabel appendTitle(String textWithMnemonic) { JLabel titleLabel = getComponentFactory().createTitle(textWithMnemonic); append(titleLabel); return titleLabel; }
/** * Adds a title label to the panel and proceeds to the next column. * * @param textWithMnemonic * the label's text - may mark a mnemonic * @return the added title label */ public JLabel appendTitle(String textWithMnemonic) { JLabel titleLabel = getComponentFactory().createTitle(textWithMnemonic); append(titleLabel); return titleLabel; }
/** * Adds a title label to the panel and proceeds to the next column. * * @param textWithMnemonic the label's text - may mark a mnemonic * @return the added title label */ public JLabel appendTitle(String textWithMnemonic) { JLabel titleLabel = getComponentFactory().createTitle(textWithMnemonic); append(titleLabel); return titleLabel; }
/** * Adds a text label to the panel and proceeds to the next column. * * @param textWithMnemonic the label's text - may mark a mnemonic * @return the added label */ public JLabel append(String textWithMnemonic) { JLabel label = getComponentFactory().createLabel(textWithMnemonic); append(label); return label; }
private void addStyleBox(final DefaultFormBuilder formBuilder) { mStyleBox = uiFactory.createStyleBox(); mSetStyle = new BooleanProperty(ControlGroup.SET_RESOURCE); final StyleChangeListener listener = new StyleChangeListener(); mSetStyle.addPropertyChangeListener(listener); mSetStyle.layout(formBuilder); formBuilder.append(new JLabel(TextUtils.getText("style"))); formBuilder.append(mStyleBox); formBuilder.nextLine(); } private void addAutomaticLayout(final DefaultFormBuilder formBuilder) {
public JComponent buildEditorPanel() { FormLayout layout = new FormLayout("FILL:DEFAULT:NONE,3DLU,FILL:DEFAULT:NONE,3DLU,FILL:DEFAULT:NONE"); DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.append(listToList); // for (JCheckBox checkBox : visibleBoxs) { // builder.append(checkBox); // } return builder.getPanel(); }
private void initView() { attributes = new JComboBox(); attributes.setEditable(false); attributes.setRenderer(new AttributeRenderer()); DefaultFormBuilder builder = new DefaultFormBuilder(new FormLayout( "right:70dlu, 3dlu, fill:200dlu", "")); builder.setDefaultDialogBorder(); builder.append("Auto Incremented:", attributes); setLayout(new BorderLayout()); add(builder.getPanel(), BorderLayout.CENTER); }
public StandardModePanel() { FormLayout layout = new FormLayout( "right:77dlu, 1dlu, fill:100:grow, 1dlu, left:80dlu, 1dlu", ""); builder = new DefaultFormBuilder(layout); builder.append("Output Directory:", outputFolder, selectOutputFolder); builder.nextLine(); setLayout(new BorderLayout()); add(builder.getPanel(), BorderLayout.CENTER); } }