public void print() { getApp().print(); }
public void displayURL(String _url) { getApp().displayURL(_url); }
public void exit() { getApp().exit(); }
public void setMainToolBar(BuToolBar _tb) { main_toolbar_ = _tb; if (!(getApp() instanceof BuSubApp)) { if ((content_.getComponentCount() > 1) && (content_.getComponent(1) != null)) content_.remove(1); if (main_toolbar_ != null) { content_.add(main_toolbar_, BuBorderLayout.NORTH); main_toolbar_.revalidate(); // content_.doLayout(); // content_.validate(); } } }
public boolean confirmExit() { BuInformationsSoftware il = getInformationsSoftware(); BuDialogConfirmation bd = new BuDialogConfirmation(getApp(), il, _("Voulez-vous vraiment quitter ce logiciel ?")); int r = bd.activate(); return (r == JOptionPane.YES_OPTION); }
public void about() { BuInformationsSoftware il = getInformationsSoftware(); BuDialogMessage bd = new BuDialogMessage(getApp(), il, il.about()); bd.activate(); }
public void license() { BuInformationsSoftware il = getInformationsSoftware(); BuDialogMessage bd = new BuDialogMessage(getApp(), il, il.license()); bd.activate(); }
public void pointerHelp() { BuCommonInterface app = getApp(); if (app instanceof BuApplication) { BuApplication appli = (BuApplication) app; if (glasspane_ == null) { glasspane_ = new BuGlassPaneHelp(appli); glasspane_.setVisible(false); } if (appli.getGlassPane() != glasspane_) appli.setGlassPane(glasspane_); // System.err.println("SET-GLASSPANE"); glasspane_.setVisible(true); appli.invalidate(); appli.doLayout(); appli.validate(); glasspane_.repaint(); } }
public void fullscreen() { if (!(getApp() instanceof JFrame)) return; final JInternalFrame frame = getCurrentInternalFrame(); if (frame == null) return; final JWindow win = new JWindow(); final JComponent cwin = (JComponent) win.getContentPane(); final JFrame app = (JFrame) getApp(); final Dimension de = app.getToolkit().getScreenSize();
protected void menusOrganisationFenetres() { if (!hasDesktop()) return; BuDesktop desktop = getMainPanel().getDesktop(); boolean appli = (getApp() instanceof JFrame); JInternalFrame frame = desktop.getCurrentInternalFrame(); boolean b; b = (desktop.getNormalFramesCount() > 0); setEnabledForAction("CASCADE", b); setEnabledForAction("MOSAIQUE", b); b = (desktop.getIconifiedFramesCount() > 0); setEnabledForAction("RANGERICONES", b); b = (desktop.getPalettesCount() > 0); setEnabledForAction("RANGERPALETTES", b); b = (frame != null); setEnabledForAction("PLEINECRAN", b && appli); if (isCloseFrameMode()) { b = (frame != null) && frame.isClosable(); setEnabledForAction("FERMER", b); } // TMP // desktop.adjustSize(); } }