2023-09-17 22:13:42 +03:00
|
|
|
package GlobalData.CompilerOption.UI;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common_old.Current;
|
|
|
|
|
import Common_old.UI.Tables.DBObjectRenderer;
|
2024-10-07 14:44:24 +03:00
|
|
|
import _VisualDVM.Syntax.VisualiserFonts;
|
2023-09-17 22:13:42 +03:00
|
|
|
import GlobalData.CompilerOption.CompilerOption;
|
|
|
|
|
public class CompilerOptionParameterValueRenderer extends DBObjectRenderer {
|
|
|
|
|
@Override
|
|
|
|
|
public void Display() {
|
|
|
|
|
if (value != null) {
|
|
|
|
|
CompilerOption option = (CompilerOption) value;
|
|
|
|
|
if (option.hasParameter()) {
|
|
|
|
|
setFont(Current.getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
|
|
|
|
setText(option.parameterValue.isEmpty() ? "не задано" : option.parameterValue);
|
|
|
|
|
} else {
|
|
|
|
|
setFont(Current.getTheme().Fonts.get(VisualiserFonts.UnknownState));
|
|
|
|
|
setText("нет");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|