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

Method initImpl

CodenameOne/src/com/codename1/ui/Dialog.java:841–868  ·  view source on GitHub ↗
(String dialogUIID, String dialogTitleUIID, Layout lm)

Source from the content-addressed store, hash-verified

839 }
840
841 private void initImpl(String dialogUIID, String dialogTitleUIID, Layout lm) {
842 super.getContentPane().setUIID(dialogUIID);
843 super.getTitleComponent().setText("");
844 super.getTitleComponent().setVisible(false);
845 super.getTitleArea().setVisible(false);
846 super.getTitleArea().setUIID("Container");
847 lockStyleImages(getUnselectedStyle());
848 titleArea.setVisible(false);
849
850 if (lm != null) {
851 dialogContentPane = new Container(lm);
852 } else {
853 dialogContentPane = new Container();
854 }
855 dialogContentPane.setUIID("DialogContentPane");
856 dialogTitle = new Label("", dialogTitleUIID);
857 super.getContentPane().setLayout(new BorderLayout());
858 super.getContentPane().addComponent(BorderLayout.NORTH, dialogTitle);
859 super.getContentPane().addComponent(BorderLayout.CENTER, dialogContentPane);
860 super.getContentPane().setScrollable(false);
861 super.getContentPane().setAlwaysTensile(false);
862
863 super.getStyle().setBgTransparency(0);
864 super.getStyle().setBgImage(null);
865 super.getStyle().setBorder(null);
866 setSmoothScrolling(false);
867 deregisterAnimated(this);
868 }
869
870 /// When the dialog is disposed this form will show. Notice that this can only be set after show was invoked!
871 ///

Callers 2

DialogMethod · 0.95
initMethod · 0.45

Calls 15

getTitleAreaMethod · 0.80
lockStyleImagesMethod · 0.80
setTextMethod · 0.65
addComponentMethod · 0.65
setScrollableMethod · 0.65
getStyleMethod · 0.65
setUIIDMethod · 0.45
getContentPaneMethod · 0.45
getTitleComponentMethod · 0.45
setVisibleMethod · 0.45
getUnselectedStyleMethod · 0.45
setLayoutMethod · 0.45

Tested by

no test coverage detected