/** * Adds a separator without text that spans all columns. * * @return the added titled separator */ public JComponent appendSeparator() { return appendSeparator(""); }
/** * Adds a separator without text that spans all columns. * * @return the added titled separator */ public JComponent appendSeparator() { return appendSeparator(""); }
/** * Adds a separator without text that spans all columns. * * @return the added titled separator */ public JComponent appendSeparator() { return appendSeparator(""); }
/** * Appends an internationalized titled separator for * the given resource key that spans all columns. * * @param resourceKey the resource key for the separator title's text * @return the added titled separator */ public JComponent appendI15dSeparator(String resourceKey) { return appendSeparator(getI15dString(resourceKey)); }
public void addToParent(Container pParent) { JPanel panel = (JPanel)pParent; DefaultFormBuilder builder= (DefaultFormBuilder)panel.getClientProperty(SwingXMLBuilder.FORMBUILDER_PROPERTY); builder.appendSeparator(mText); } }
/** * Appends an internationalized titled separator for the given resource key * that spans all columns. * * @param resourceKey * the resource key for the separator title's text */ public void appendI15dSeparator(String resourceKey) { appendSeparator(getI15dString(resourceKey)); }
/** * Appends an internationalized titled separator for * the given resource key that spans all columns. * * @param resourceKey the resource key for the separator title's text * @return the added titled separator */ public JComponent appendI15dSeparator(String resourceKey) { return appendSeparator(getI15dString(resourceKey)); }
builder.setDefaultDialogBorder(); builder.appendSeparator("Stored Procedure Configuration"); builder.append("Procedure Name:", name.getComponent()); builder.append("Catalog:", catalog.getComponent());
public GeneratorTabPanel(String[] modeNames, Component[] modePanels) { this.generationMode = new JComboBox(modeNames); this.modeLayout = new CardLayout(); this.modesPanel = new JPanel(modeLayout); generationMode.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { modeLayout.show(modesPanel, generationMode.getSelectedItem().toString()); } }); // assemble FormLayout layout = new FormLayout("right:70dlu, 3dlu, fill:300, fill:100dlu:grow", ""); DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.setDefaultDialogBorder(); builder.append("Type:", generationMode, 1); builder.appendSeparator(); for (int i = 0; i < modeNames.length; i++) { modesPanel.add(modePanels[i], modeNames[i]); } setLayout(new BorderLayout()); add(builder.getPanel(), BorderLayout.NORTH); add(modesPanel, BorderLayout.CENTER); }
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); }
builder.setDefaultDialogBorder(); builder.appendSeparator("DataMap Configuration"); builder.append("DataMap Name:", name.getComponent(), 2); builder.append("File:", location, 3); builder.append("Quote SQL Identifiers:", quoteSQLIdentifiers, 3); builder.appendSeparator("Entity Defaults"); builder.append("DB Catalog:", defaultCatalog.getComponent(), updateDefaultCatalog); builder.append("DB Schema:", defaultSchema.getComponent(), updateDefaultSchema); builder.append("Optimistic Locking:", defaultLockType, updateDefaultLockType); builder.appendSeparator("Client Class Defaults"); builder.append("Allow Client Entities:", clientSupport, new JPanel()); defaultClientPackageLabel = builder.append(
/** * Create panel with aligned labels on the right and fields on the left. */ public static JPanel createForm( String title, Component[] leftComponents, Component[] rightComponents) { if (leftComponents.length != rightComponents.length) { throw new IllegalArgumentException( "Arrays must be the same size, instead got " + leftComponents.length + "and " + rightComponents.length); } int numRows = leftComponents.length; if (numRows == 0) { throw new IllegalArgumentException("Zero components."); } FormLayout layout = new FormLayout("right:100, 3dlu, left:300", ""); DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.setDefaultDialogBorder(); if (title != null) { builder.appendSeparator(title); } for (int i = 0; i < numRows; i++) { builder.append(leftComponents[i], rightComponents[i]); builder.nextLine(); } return builder.getPanel(); }
public DBCP2DataSourceView() { propertiesFile = new JTextFieldUndoable(); // assemble FormLayout layout = new FormLayout("right:80dlu, 3dlu, fill:200dlu", ""); DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.setDefaultDialogBorder(); builder.appendSeparator("Apache DBCP2 Configuration"); builder.append("DBCP2 Properties File:", propertiesFile); setLayout(new BorderLayout()); add(builder.getPanel(), BorderLayout.CENTER); }
public CustomDataSourceView() { locationHint = new JTextFieldUndoable(); // assemble FormLayout layout = new FormLayout("right:80dlu, 3dlu, fill:200dlu", ""); DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.setDefaultDialogBorder(); builder.appendSeparator("Custom Configuration"); builder.append("Location Hint:", locationHint); this.setLayout(new BorderLayout()); this.add(builder.getPanel(), BorderLayout.CENTER); }
builder.setDefaultDialogBorder(); builder.appendSeparator("DbEntity Configuration"); builder.append("DbEntity Name:", name.getComponent()); builder.append(catalogLabel, catalog.getComponent()); builder.append("Qualifier", qualifier.getComponent()); builder.appendSeparator("Primary Key"); builder.append("PK Generation Strategy:", pkGeneratorType);
builder.nextLine(); builder.appendSeparator("Person"); JTextField nameTextField = new JTextField(); builder.append("&Name", nameTextField); builder.nextLine(); builder.appendSeparator("Company"); builder.append("Na&me", new JTextField()); builder.nextLine(); builder.nextRow(); builder.appendSeparator("Status"); JProgressBar progressBar = new JProgressBar(0,100);
public AdapterView() { this.customAdapter = new JTextFieldUndoable(); // assemble DefaultFormBuilder topPanelBuilder = new DefaultFormBuilder(new FormLayout( "right:pref, 3dlu, fill:200dlu", "")); topPanelBuilder.setDefaultDialogBorder(); topPanelBuilder.appendSeparator("DbAdapter Configuration"); topPanelBuilder.append("Custom Adapter (optional):", customAdapter); setLayout(new BorderLayout()); add(topPanelBuilder.getPanel(), BorderLayout.CENTER); }
@Override public void layout(final DefaultFormBuilder builder) { final String labelKey = getLabel(); final String text = TextUtils.getOptionalText(labelKey); if (builder.getColumn() > 1) builder.nextLine(); final JComponent separator = builder.appendSeparator(text); if(text != null) { for (Component child : separator.getComponents()) { if(child instanceof JLabel) TranslatedElement.TEXT.setKey((JComponent) child, labelKey); break; } } }
builder.setDefaultDialogBorder(); builder.appendSeparator("ObjEntity Configuration"); builder.append("ObjEntity Name:", name.getComponent()); builder.append("Inheritance:", superEntityCombo); builder.append(tableLabel, dbEntityCombo); isAbstractLabel = builder.append("Abstract class:", isAbstract); builder.appendSeparator(); builder.append("Exclude default listeners:", excludeDefaultListeners); clientSeparator = builder.appendSeparator("Java Client"); serverOnlyLabel = builder.append("Not for Client Use:", serverOnly); clientClassNameLabel = builder.append("Client Java Class:", clientClassName.getComponent());
topPanelBuilder.setDefaultDialogBorder(); topPanelBuilder.appendSeparator("DataNode Configuration"); topPanelBuilder.append("DataNode Name:", getDataNodeName(), 3); topPanelBuilder.append("Schema Update Strategy:", schemaUpdateStrategy, 3);