
Public Member Functions | |
| boolean | getOn () |
| This function tells us if the display is switched on or not. | |
| ReadOnlyCalculatorApplet | getApplet () |
| Get a read-only interface for the CalculatorApplet. | |
| boolean | hasCaret (final ScrollableLabel scrollableLabel) |
| Find if scrollableLabel has the Caret. | |
| boolean jscicalc.ReadOnlyDisplayPanel.getOn | ( | ) |
This function tells us if the display is switched on or not.
Probably it is redundant because the state should always match CalculatorPanel.
Implemented in jscicalc.DisplayPanel.
Referenced by jscicalc.ExtraPanel.paintComponent().
| ReadOnlyCalculatorApplet jscicalc.ReadOnlyDisplayPanel.getApplet | ( | ) |
Get a read-only interface for the CalculatorApplet.
Useful because view classes should never change the CalculatorApplet state
Implemented in jscicalc.DisplayPanel.
Referenced by jscicalc.DisplayLabel.getBase(), jscicalc.ExtraPanel.paintComponent(), jscicalc.DisplayLabel.setExpression(), jscicalc.DisplayLabel.setNewExpression(), jscicalc.EntryLabel.update(), and jscicalc.DisplayLabel.update().
| boolean jscicalc.ReadOnlyDisplayPanel.hasCaret | ( | final ScrollableLabel | scrollableLabel | ) |
Find if scrollableLabel has the Caret.
This allows us to query the interface and find whether EntryPanel or DisplayPanel has permission to display a Caret
| scrollableLabel | The Scrollable label we wish to know about |
Implemented in jscicalc.DisplayPanel.
Referenced by jscicalc.ScrollableLabel.updateCaretVisibility().
1.5.5