use of com.sldeditor.filter.v2.envvar.EnvironmentVariableField in project sldeditor by robward-scisys.
the class ExpressionSubPanel method setUpEnvVarPanel.
/**
* Sets the up env var panel.
*/
protected void setUpEnvVarPanel() {
if (VendorOptionManager.getInstance().isAllowed(this.parent.getVendorOptionList(), EnvironmentVariableField.getVendorOption())) {
panelEnvVar = new JPanel();
FlowLayout fl_panelEnvVar = (FlowLayout) panelEnvVar.getLayout();
fl_panelEnvVar.setAlignment(FlowLayout.LEFT);
rdbtnEnvVar = new JRadioButton(ENVVAR);
rdbtnEnvVar.setActionCommand(ENVVAR);
buttonGroup.add(rdbtnEnvVar);
panelEnvVar.add(rdbtnEnvVar);
envVarField = new EnvironmentVariableField(new SubPanelUpdatedInterface() {
@Override
public void updateSymbol() {
buttonGroup.setSelected(rdbtnEnvVar.getModel(), true);
updateButtonState(true);
}
}, EnvironmentVariableManager.getInstance());
panelEnvVar.add(envVarField);
box.add(panelEnvVar);
}
}
use of com.sldeditor.filter.v2.envvar.EnvironmentVariableField in project sldeditor by robward-scisys.
the class EnvVarPanel method createUI.
/**
* Creates the ui.
*/
private void createUI() {
setLayout(new BorderLayout());
envVarField = new EnvironmentVariableField(new SubPanelUpdatedInterface() {
@Override
public void updateSymbol() {
updateButtonState(true);
}
}, EnvironmentVariableManager.getInstance());
add(envVarField, BorderLayout.NORTH);
add(createApplyRevertPanel(), BorderLayout.CENTER);
}
Aggregations