List of usage examples for com.jgoodies.forms.layout CellConstraints xywh
public CellConstraints xywh(int col, int row, int colSpan, int rowSpan)
Examples:
cc.xywh(1, 3, 2, 1); cc.xywh(1, 3, 7, 3);
From source file:de.erdesignerng.visual.editor.comment.CommentEditorView.java
License:Open Source License
/** * Getter method for component Component_8. * * @return the initialized component/* w ww . j a v a 2 s .co m*/ */ public JPanel getComponent8() { if (component8 == null) { component8 = new JPanel(); String rowDef = "p"; String colDef = "60dlu,2dlu:grow,60dlu"; FormLayout layout = new FormLayout(colDef, rowDef); component8.setLayout(layout); CellConstraints cons = new CellConstraints(); component8.add(getOKButton(), cons.xywh(1, 1, 1, 1)); component8.add(getCancelButton(), cons.xywh(3, 1, 1, 1)); component8.setName("Component_8"); } return component8; }
From source file:de.erdesignerng.visual.editor.completecompare.CompleteCompareEditorView.java
License:Open Source License
/** * Initialize method./*w w w . java 2 s .c o m*/ */ private void initialize() { String rowDef = "8dlu,fill:250dlu:grow,8dlu,p,2dlu"; String colDef = "2dlu,fill:60dlu,2dlu:grow,fill:60dlu,2dlu"; FormLayout layout = new FormLayout(colDef, rowDef); setLayout(layout); CellConstraints cons = new CellConstraints(); add(getContentPanel(), cons.xywh(2, 2, 3, 1)); add(getOkButton(), cons.xywh(2, 4, 1, 1)); }
From source file:de.erdesignerng.visual.editor.completecompare.CompleteCompareEditorView.java
License:Open Source License
/** * Getter method for component ContentPanel. * * @return the initialized component//from w w w . j a v a 2 s . c o m */ public JPanel getContentPanel() { if (contentPanel == null) { contentPanel = new JPanel(); String rowDef = "2dlu,p,2dlu,fill:200dlu:grow,2dlu"; String colDef = "fill:180dlu:grow,2dlu,fill:180dlu:grow"; FormLayout layout = new FormLayout(colDef, rowDef); contentPanel.setLayout(layout); CellConstraints cons = new CellConstraints(); contentPanel.add(new DefaultSeparator(ERDesignerBundle.CURRENTMODEL), cons.xy(1, 2)); contentPanel.add(new DefaultSeparator(ERDesignerBundle.OTHERMODEL), cons.xywh(3, 2, 1, 1)); contentPanel.add(getCurrentModelView().getScrollPane(), cons.xy(1, 4)); contentPanel.add(getDatabaseView().getScrollPane(), cons.xy(3, 4)); } return contentPanel; }
From source file:de.erdesignerng.visual.editor.connection.DatabaseConnectionEditorView.java
License:Open Source License
private void initialize() { String theColDef = "2dlu,p,2dlu,fill:150dlu:grow,2"; String theRowDef = "2dlu,p,10dlu,p,2dlu,p,2dlu,p,2dlu,p,2dlu,p,2dlu,p,10dlu,p,2dlu"; FormLayout theLayout = new FormLayout(theColDef, theRowDef); setLayout(theLayout);//from www .j a va2s. c om CellConstraints cons = new CellConstraints(); add(new DefaultLabel(ERDesignerBundle.DIALECT), cons.xy(2, 2)); add(dialect, cons.xy(4, 2)); add(new DefaultLabel(ERDesignerBundle.ALIAS), cons.xy(2, 4)); add(alias, cons.xy(4, 4)); add(new DefaultLabel(ERDesignerBundle.JDBCDRIVER), cons.xy(2, 6)); add(driver, cons.xy(4, 6)); add(new DefaultLabel(ERDesignerBundle.JDBCURL), cons.xy(2, 8)); add(url, cons.xy(4, 8)); add(new DefaultLabel(ERDesignerBundle.USER), cons.xy(2, 10)); add(user, cons.xy(4, 10)); add(new DefaultLabel(ERDesignerBundle.PASSWORD), cons.xy(2, 12)); add(password, cons.xy(4, 12)); add(promptForPassword, cons.xywh(2, 14, 3, 1)); JPanel thePanel = new JPanel(); theColDef = "60dlu,2dlu:grow,60dlu,2dlu,60dlu,2dlu"; theRowDef = "p"; theLayout = new FormLayout(theColDef, theRowDef); thePanel.setLayout(theLayout); thePanel.add(testButton, cons.xy(1, 1)); testButton.setText("Test"); thePanel.add(okButton, cons.xy(3, 1)); okButton.setText("Ok"); thePanel.add(cancelButton, cons.xy(5, 1)); cancelButton.setText("Cancel"); dialect.addActionListener(e -> handleDialectChange((Dialect) dialect.getSelectedItem())); add(thePanel, cons.xywh(2, 16, 3, 1)); }
From source file:de.erdesignerng.visual.editor.connection.RepositoryConnectionEditorView.java
License:Open Source License
private void initialize() { String theColDef = "2dlu,p,2dlu,fill:150dlu:grow,2"; String theRowDef = "2dlu,p,2dlu,p,2dlu,p,2dlu,p,2dlu,p,10dlu,p,2dlu"; FormLayout theLayout = new FormLayout(theColDef, theRowDef); setLayout(theLayout);// w w w . j av a 2s. c o m CellConstraints cons = new CellConstraints(); add(new DefaultLabel(ERDesignerBundle.DIALECT), cons.xy(2, 2)); add(dialect, cons.xy(4, 2)); add(new DefaultLabel(ERDesignerBundle.JDBCDRIVER), cons.xy(2, 4)); add(driver, cons.xy(4, 4)); add(new DefaultLabel(ERDesignerBundle.JDBCURL), cons.xy(2, 6)); add(url, cons.xy(4, 6)); add(new DefaultLabel(ERDesignerBundle.USER), cons.xy(2, 8)); add(user, cons.xy(4, 8)); add(new DefaultLabel(ERDesignerBundle.PASSWORD), cons.xy(2, 10)); add(password, cons.xy(4, 10)); JPanel thePanel = new JPanel(); theColDef = "60dlu,2dlu:grow,60dlu,2dlu,60dlu,2dlu"; theRowDef = "p"; theLayout = new FormLayout(theColDef, theRowDef); thePanel.setLayout(theLayout); thePanel.add(testButton, cons.xy(1, 1)); testButton.setText("Test"); thePanel.add(okButton, cons.xy(3, 1)); okButton.setText("Ok"); thePanel.add(cancelButton, cons.xy(5, 1)); cancelButton.setText("Cancel"); dialect.addActionListener(e -> handleDialectChange((Dialect) dialect.getSelectedItem())); add(thePanel, cons.xywh(2, 12, 3, 1)); }
From source file:de.erdesignerng.visual.editor.convertmodel.ConvertModelEditorView.java
License:Open Source License
/** * Initialize method./*from w w w. j a va 2 s. c o m*/ */ private void initialize() { String rowDef = "2dlu,p,8dlu,p,8dlu,p,2dlu,fill:300dlu,8dlu,p,2dlu"; String colDef = "2dlu,60dlu,2dlu,fill:250dlu:grow,2dlu"; FormLayout layout = new FormLayout(colDef, rowDef); setLayout(layout); CellConstraints cons = new CellConstraints(); add(getComponent1(), cons.xywh(2, 4, 1, 1)); add(new DefaultSeparator(ERDesignerBundle.TARGETDIALECT), cons.xywh(2, 2, 3, 1)); add(getTargetDialect(), cons.xywh(4, 4, 1, 1)); add(new DefaultSeparator(ERDesignerBundle.DATATYPEMAPPING), cons.xywh(2, 6, 3, 1)); add(new JScrollPane(getMappingTable()), cons.xywh(2, 8, 3, 1)); add(getComponent8(), cons.xywh(2, 10, 3, 1)); }
From source file:de.erdesignerng.visual.editor.customtypes.CustomTypeEditorView.java
License:Open Source License
/** * Initialize method.// ww w. j a v a 2 s .co m */ private void initialize() { String rowDef = "2dlu,p,2dlu,p,fill:220dlu,p,20dlu,p,2dlu"; String colDef = "2dlu,left:45dlu,2dlu,fill:140dlu:grow,fill:60dlu,2dlu,fill:60dlu,2dlu"; FormLayout layout = new FormLayout(colDef, rowDef); setLayout(layout); CellConstraints cons = new CellConstraints(); add(getMainTabbedPane(), cons.xywh(2, 4, 6, 2)); add(getOkButton(), cons.xywh(5, 8, 1, 1)); add(getCancelButton(), cons.xywh(7, 8, 1, 1)); }
From source file:de.erdesignerng.visual.editor.customtypes.CustomTypeEditorView.java
License:Open Source License
/** * Getter method for component AttributesTab. * * @return the initialized component//from w w w . j av a2 s . c o m */ public DefaultTabbedPaneTab getTypesTab() { if (attributesTab == null) { attributesTab = new DefaultTabbedPaneTab(mainTabbedPane, ERDesignerBundle.TYPES); String rowDef = "2dlu,p,2dlu,p,165dlu:grow,p,2dlu,p,2dlu"; String colDef = "2dlu,50dlu:grow,2dlu,50dlu:grow,2dlu,50dlu:grow,11dlu:grow,2dlu,11dlu:grow,2dlu,80dlu:grow,2dlu,70dlu:grow,2dlu"; FormLayout layout = new FormLayout(colDef, rowDef); attributesTab.setLayout(layout); CellConstraints cons = new CellConstraints(); // this.m_attributestab.add(this.getUpButton(), cons.xywh(7, 2, 1, // 1)); // this.m_attributestab.add(this.getDownButton(), cons // .xywh(9, 2, 1, 1)); attributesTab.add(new DefaultScrollPane(getTypesList()), cons.xywh(2, 4, 8, 3)); attributesTab.add(getNewButton(), cons.xywh(2, 8, 1, 1)); attributesTab.add(getDeleteButton(), cons.xywh(6, 8, 4, 1)); attributesTab.add(getComponent15(), cons.xywh(11, 2, 3, 5)); attributesTab.add(getUpdateTypeButton(), cons.xywh(13, 8, 1, 1)); attributesTab.setName("AttributesTab"); } return attributesTab; }
From source file:de.erdesignerng.visual.editor.customtypes.CustomTypeEditorView.java
License:Open Source License
/** * Getter method for component AttributesGeneralTab. * * @return the initialized component//from w w w . j av a 2 s . co m */ public DefaultTabbedPaneTab getTypesGeneralTab() { if (attributesGeneralTab == null) { attributesGeneralTab = new DefaultTabbedPaneTab(component15, ERDesignerBundle.GENERAL); String rowDef = "2dlu,p,2dlu,p,2dlu,fill:50dlu:grow"; String colDef = "2dlu,left:40dlu,2dlu,60dlu:grow,2dlu"; FormLayout layout = new FormLayout(colDef, rowDef); attributesGeneralTab.setLayout(layout); CellConstraints cons = new CellConstraints(); attributesGeneralTab.add(getComponent20(), cons.xywh(2, 2, 1, 1)); attributesGeneralTab.add(getTypeName(), cons.xywh(4, 2, 1, 1)); attributesGeneralTab.add(new DefaultLabel(ERDesignerBundle.SQL), cons.xywh(2, 4, 1, 1)); attributesGeneralTab.add(getTypeddl().getScrollPane(), cons.xywh(2, 6, 3, 1)); attributesGeneralTab.setName("AttributesGeneralTab"); } return attributesGeneralTab; }
From source file:de.erdesignerng.visual.editor.domain.DomainEditorView.java
License:Open Source License
/** * Initialize method./*from w w w. j av a2 s . com*/ */ private void initialize() { String rowDef = "2dlu,p,2dlu,p,fill:220dlu,p,20dlu,p,2dlu"; String colDef = "2dlu,left:45dlu,2dlu,fill:140dlu:grow,fill:60dlu,2dlu,fill:60dlu,2dlu"; domainTable.setCellSelectionEnabled(true); FormLayout layout = new FormLayout(colDef, rowDef); setLayout(layout); CellConstraints cons = new CellConstraints(); add(getComponent15(), cons.xywh(2, 4, 6, 2)); add(getOkButton(), cons.xywh(5, 8, 1, 1)); add(getCancelButton(), cons.xywh(7, 8, 1, 1)); }