detail form first step
This commit is contained in:
parent
22c29caf90
commit
4bc1104eae
|
@ -89,18 +89,19 @@ public class DetailForm {
|
||||||
Style.emphaticTitleFont(detailForm.getPowerSourceLabel());
|
Style.emphaticTitleFont(detailForm.getPowerSourceLabel());
|
||||||
Style.emphaticTitleFont(detailForm.getSensorsLabel());
|
Style.emphaticTitleFont(detailForm.getSensorsLabel());
|
||||||
|
|
||||||
detailForm.getOsTextPane().setContentType("text/html; charset=utf-8");
|
String contentType = "text/html; charset=utf-8";
|
||||||
detailForm.getComputerTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getOsTextPane().setContentType(contentType);
|
||||||
detailForm.getBaseBoardTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getComputerTextPane().setContentType(contentType);
|
||||||
detailForm.getCpuTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getBaseBoardTextPane().setContentType(contentType);
|
||||||
detailForm.getMemoryTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getCpuTextPane().setContentType(contentType);
|
||||||
detailForm.getStorageTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getMemoryTextPane().setContentType(contentType);
|
||||||
detailForm.getGraphicsCardTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getStorageTextPane().setContentType(contentType);
|
||||||
detailForm.getDisplayTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getGraphicsCardTextPane().setContentType(contentType);
|
||||||
detailForm.getSoundCardTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getDisplayTextPane().setContentType(contentType);
|
||||||
detailForm.getNetworkTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getSoundCardTextPane().setContentType(contentType);
|
||||||
detailForm.getPowerSourceTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getNetworkTextPane().setContentType(contentType);
|
||||||
detailForm.getSensorsTextPane().setContentType("text/html; charset=utf-8");
|
detailForm.getPowerSourceTextPane().setContentType(contentType);
|
||||||
|
detailForm.getSensorsTextPane().setContentType(contentType);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void initInfo() {
|
private static void initInfo() {
|
||||||
|
@ -111,6 +112,7 @@ public class DetailForm {
|
||||||
|
|
||||||
detailForm.getOsTextPane().setText(getOsInfo());
|
detailForm.getOsTextPane().setText(getOsInfo());
|
||||||
detailForm.getComputerTextPane().setText(getComputerInfo());
|
detailForm.getComputerTextPane().setText(getComputerInfo());
|
||||||
|
detailForm.getBaseBoardTextPane().setText(getBaseBoardInfo());
|
||||||
detailForm.getPowerSourceTextPane().setText(PowerSourceForm.getPowerInfoText(hardware.getPowerSources()));
|
detailForm.getPowerSourceTextPane().setText(PowerSourceForm.getPowerInfoText(hardware.getPowerSources()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +154,10 @@ public class DetailForm {
|
||||||
private static String getBaseBoardInfo() {
|
private static String getBaseBoardInfo() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
Baseboard baseboard = App.si.getHardware().getComputerSystem().getBaseboard();
|
Baseboard baseboard = App.si.getHardware().getComputerSystem().getBaseboard();
|
||||||
|
builder.append("<b>Manufacturer: </b>").append(baseboard.getManufacturer());
|
||||||
|
builder.append("<br/><b>Model: </b>").append(baseboard.getModel());
|
||||||
|
builder.append("<br/><b>Version: </b>").append(baseboard.getVersion());
|
||||||
|
builder.append("<br/><b>SerialNumber: </b>").append(baseboard.getSerialNumber());
|
||||||
|
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue