Search in sources :

Example 6 with BasePanel

use of com.revolsys.swing.component.BasePanel in project com.revolsys.open by revolsys.

the class AbstractRecordLayer method newPropertiesTabGeneral.

@Override
protected BasePanel newPropertiesTabGeneral(final TabbedValuePanel tabPanel) {
    final BasePanel generalPanel = super.newPropertiesTabGeneral(tabPanel);
    newPropertiesTabGeneralPanelFilter(generalPanel);
    return generalPanel;
}
Also used : BasePanel(com.revolsys.swing.component.BasePanel)

Example 7 with BasePanel

use of com.revolsys.swing.component.BasePanel in project com.revolsys.open by revolsys.

the class AbstractRecordLayer method newPropertiesPanelFields.

protected void newPropertiesPanelFields(final TabbedValuePanel propertiesPanel) {
    final RecordDefinition recordDefinition = getRecordDefinition();
    final BaseJTable fieldTable = RecordDefinitionTableModel.newTable(recordDefinition);
    final BasePanel fieldPanel = new BasePanel(new BorderLayout());
    fieldPanel.setPreferredSize(new Dimension(500, 400));
    final JScrollPane fieldScroll = new JScrollPane(fieldTable);
    fieldPanel.add(fieldScroll, BorderLayout.CENTER);
    propertiesPanel.addTab("Fields", fieldPanel);
}
Also used : JScrollPane(javax.swing.JScrollPane) BasePanel(com.revolsys.swing.component.BasePanel) BorderLayout(java.awt.BorderLayout) BaseJTable(com.revolsys.swing.table.BaseJTable) Dimension(java.awt.Dimension) RecordDefinition(com.revolsys.record.schema.RecordDefinition)

Example 8 with BasePanel

use of com.revolsys.swing.component.BasePanel in project com.revolsys.open by revolsys.

the class MergeRecordsDialog method initDialog.

protected void initDialog() {
    setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    setMinimumSize(new Dimension(600, 100));
    addWindowListener(this);
    final BasePanel panel = new BasePanel(new BorderLayout());
    add(new JScrollPane(panel, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED));
    this.mergedRecordsPanel = new JPanel(new VerticalLayout());
    panel.add(this.mergedRecordsPanel, BorderLayout.CENTER);
    final JPanel buttonsPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    add(buttonsPanel, BorderLayout.SOUTH);
    final JButton cancelButton = RunnableAction.newButton("Cancel", this::cancel);
    buttonsPanel.add(cancelButton);
    this.okButton = RunnableAction.newButton("OK", this::finish);
    this.okButton.setEnabled(false);
    buttonsPanel.add(this.okButton);
    pack();
    SwingUtil.autoAdjustPosition(this);
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) BasePanel(com.revolsys.swing.component.BasePanel) FlowLayout(java.awt.FlowLayout) BorderLayout(java.awt.BorderLayout) JButton(javax.swing.JButton) VerticalLayout(org.jdesktop.swingx.VerticalLayout) Dimension(java.awt.Dimension)

Aggregations

BasePanel (com.revolsys.swing.component.BasePanel)8 BorderLayout (java.awt.BorderLayout)4 VerticalLayout (org.jdesktop.swingx.VerticalLayout)4 Dimension (java.awt.Dimension)3 JLabel (javax.swing.JLabel)3 ValueField (com.revolsys.swing.component.ValueField)2 Rectangle (java.awt.Rectangle)2 Window (java.awt.Window)2 JDialog (javax.swing.JDialog)2 JPanel (javax.swing.JPanel)2 JScrollPane (javax.swing.JScrollPane)2 GeometryFactory (com.revolsys.geometry.model.GeometryFactory)1 Point (com.revolsys.geometry.model.Point)1 RecordDefinition (com.revolsys.record.schema.RecordDefinition)1 CoordinateSystemField (com.revolsys.swing.map.component.CoordinateSystemField)1 Project (com.revolsys.swing.map.layer.Project)1 BaseJTable (com.revolsys.swing.table.BaseJTable)1 TablePanel (com.revolsys.swing.table.TablePanel)1 ToolBar (com.revolsys.swing.toolbar.ToolBar)1 Component (java.awt.Component)1