MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / createStatusBar

Method createStatusBar

CodenameOne/src/com/codename1/ui/Form.java:632–661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

630 ///
631 /// a Component that represents the status bar if the OS requires status bar spacing
632 protected Component createStatusBar() {
633 if (getUIManager().isThemeConstant("statusBarScrollsUpBool", true)) {
634 Button bar = new Button();
635 bar.setShowEvenIfBlank(true);
636 if (getUIManager().isThemeConstant("landscapeTitleUiidBool", false)) {
637 bar.setUIID("StatusBar", "StatusBarLandscape");
638 } else {
639 bar.setUIID("StatusBar");
640 }
641 bar.addActionListener(new ActionListener() {
642
643 @Override
644 public void actionPerformed(ActionEvent evt) {
645 Component c = findScrollableChild(getContentPane());
646 if (c != null) {
647 c.scrollRectToVisible(new Rectangle(0, 0, 10, 10), c);
648 }
649 }
650 });
651 return bar;
652 } else {
653 Container bar = new Container();
654 if (getUIManager().isThemeConstant("landscapeTitleUiidBool", false)) {
655 bar.setUIID("StatusBar", "StatusBarLandscape");
656 } else {
657 bar.setUIID("StatusBar");
658 }
659 return bar;
660 }
661 }
662
663 /// Here so dialogs can disable this
664 void initTitleBarStatus() {

Callers 1

initTitleBarStatusMethod · 0.95

Calls 5

getUIManagerMethod · 0.95
isThemeConstantMethod · 0.80
addActionListenerMethod · 0.65
setShowEvenIfBlankMethod · 0.45
setUIIDMethod · 0.45

Tested by

no test coverage detected