use of com.revolsys.swing.component.TabbedValuePanel in project com.revolsys.open by revolsys.
the class AbstractLayer method showProperties.
@Override
public void showProperties(final String tabName) {
final MapPanel map = getMapPanel();
if (map != null) {
if (this.exists) {
if (checkShowProperties()) {
try {
final Window window = SwingUtilities.getWindowAncestor(map);
final TabbedValuePanel panel = newPropertiesPanel();
panel.setSelectdTab(tabName);
panel.showDialog(window);
refresh();
} finally {
removeProperty("INTERNAL_PROPERTIES_VISIBLE");
}
}
}
}
}
use of com.revolsys.swing.component.TabbedValuePanel in project com.revolsys.open by revolsys.
the class GriddedElevationModelLayer method newPropertiesPanel.
@Override
public TabbedValuePanel newPropertiesPanel() {
final TabbedValuePanel propertiesPanel = super.newPropertiesPanel();
newPropertiesPanelStyle(propertiesPanel);
return propertiesPanel;
}
use of com.revolsys.swing.component.TabbedValuePanel in project com.revolsys.open by revolsys.
the class Layer method showRendererProperties.
default void showRendererProperties(final LayerRenderer<?> renderer) {
final MapPanel map = getMapPanel();
if (map != null && isExists() && checkShowProperties()) {
try {
final Window window = SwingUtilities.getWindowAncestor(map);
final TabbedValuePanel panel = newPropertiesPanel();
panel.setSelectdTab("Style");
final LayerStylePanel stylePanel = panel.getTab("Style");
if (stylePanel != null) {
stylePanel.setSelectedRenderer(renderer);
panel.showDialog(window);
}
refresh();
} finally {
removeProperty("INTERNAL_PROPERTIES_VISIBLE");
}
}
}
Aggregations