(PCGenFrame frame)
| 61 | private final Button loadStatusButton; |
| 62 | |
| 63 | PCGenStatusBar(PCGenFrame frame) |
| 64 | { |
| 65 | this.frame = frame; |
| 66 | this.messageLabel = new JLabel(); |
| 67 | this.progressBar = new JProgressBar(); |
| 68 | this.loadStatusButton = new Button(); |
| 69 | |
| 70 | setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS)); |
| 71 | add(messageLabel); |
| 72 | add(Box.createHorizontalGlue()); |
| 73 | progressBar.setStringPainted(true); |
| 74 | progressBar.setVisible(false); |
| 75 | add(progressBar); |
| 76 | add(Box.createHorizontalGlue()); |
| 77 | JFXPanel wrappedButton = GuiUtility.wrapParentAsJFXPanel(loadStatusButton); |
| 78 | //todo: calculate this rather than hard code |
| 79 | wrappedButton.setMaximumSize(new Dimension(750, 20000000)); |
| 80 | add(wrappedButton); |
| 81 | loadStatusButton.setOnAction(PCGenStatusBar::loadStatusLabelAction); |
| 82 | } |
| 83 | |
| 84 | public void setContextMessage(String message) |
| 85 | { |
nothing calls this directly
no test coverage detected