public SplashWindow(String backgroundImage, String version) { setShowShadow(true); setBackgroundImage(backgroundImage); setShowEdges(false); setWidth(447); setHeight(257); setShowMinimizeButton(false); setShowTitle(false); setShowHeader(false); setIsModal(true); centerInPage(); setShowCloseButton(false); VLayout layout = new VLayout(); VLayout spacer = new VLayout(); spacer.setHeight(90); layout.addMember(spacer); HLayout versionLayout = new HLayout(); versionLayout.setAlign(Alignment.LEFT); versionLayout.setHeight(15); HLayout spacer3 = new HLayout(); spacer3.setWidth(25); versionLayout.addMember(spacer3); VLayout temp = new VLayout(5); Label versionLabel = new Label( "Core Version: " + BLCMain.getMessageManager().getString("openAdminVersion") + "/" + BLCMain.getMessageManager().getString("buildDate")); versionLabel.setWrap(false); versionLabel.setStyleName("versionStyle"); versionLabel.setHeight(15); temp.addMember(versionLabel); buildDateLabel = new Label(" "); buildDateLabel.setWrap(false); buildDateLabel.setStyleName("versionStyle"); buildDateLabel.setHeight(15); temp.addMember(buildDateLabel); versionLayout.addMember(temp); layout.addMember(versionLayout); VLayout spacer2 = new VLayout(); spacer2.setHeight(10); layout.addMember(spacer2); HLayout progressLayout = new HLayout(); progressLayout.setAlign(Alignment.CENTER); simpleProgress = new SimpleProgress(24); simpleProgress.setWidth(417); progressLayout.addMember(simpleProgress); layout.addMember(progressLayout); setBorder("1px solid #3b4726"); addItem(layout); KeyIdentifier escapeKey = new KeyIdentifier(); escapeKey.setKeyName(KeyNames.ESC); Page.registerKey( escapeKey, new KeyCallback() { public void execute(String keyName) { SplashWindow.this.hide(); } }); }
public Boolean isActive() { return simpleProgress.isActive(); }
public void startProgress() { showClientBuildDate(); simpleProgress.setVisible(true); show(); simpleProgress.startProgress(); }
public void stopProgress() { simpleProgress.stopProgress(this); }
public void explicitShow() { showClientBuildDate(); simpleProgress.setVisible(false); show(); }