public BuInformationsSoftware getInformationsSoftware() { return implementation_.getInformationsSoftware(); }
public String toString() { return "implementation " + getInformationsSoftware().name; }
public BuInformationsSoftware getInformationsSoftware() { return implementation_.getInformationsSoftware(); }
public BuInformationsSoftware getInformationsSoftware() { return implementation_.getInformationsSoftware(); }
protected Icon getFrameIcon() { Icon img = null; if (app_ != null) { img = app_.getInformationsSoftware().logo; } if (img == null) { img = BuResource.BU.getToolIcon("aide"); } return img; }
public void contextHelp(String _url) { /* * if(_url.startsWith("AIDE_CONTEXTUELLE")) _url=_url.substring(_url.indexOf('(')+1, _url.indexOf(')')); */ try { URL url = new URL(new URL(getInformationsSoftware().man), _url); String ll = Locale.getDefault().getLanguage(); String newUrl = url.toString(); if (!ll.equals("fr")) { ll = "en"; int i = newUrl.lastIndexOf(".html"); if (i >= 0) newUrl = newUrl.substring(0, i) + "-" + ll + newUrl.substring(i); } // System.err.println("URL = "+_url); displayURL(newUrl); } catch (Exception ex) {} }
public void setSlafTheme(String _arg) { try { int i = Integer.parseInt(_arg); BuSlafCustomTheme[] themes = BuSlafCustomTheme.getList(); // System.err.println("SLAF THEME"+i+" "+themes[i]); Class c = Class.forName("com.memoire.slaf.SlafLookAndFeel"); Method m = c.getMethod("setCurrentTheme", new Class[] { String.class }); m.invoke(null, new Object[] { themes[i].getKey() }); setLookAndFeel("com.memoire.slaf.SlafLookAndFeel"); } catch (Exception ex) { FuLog.warning("could not set the Slaf theme", ex); BuDialogMessage dm = new BuDialogMessage(app_, getInformationsSoftware(), _("Le thme pour Slaf n'a pu tre mis en place") + "."); dm.activate(); } }
/** * Appelle le constructeur de <code>DjaFrame(_app,_file,_grid,_tools</code>. Si <code>_app</code> est non nulle, * recupere les <code>BuInformationsSoftware</code> ;sinon instanciation de nouvelles infos. De meme pour les * <code>BuInformationsDocument</code>. Ces infos sont utilisees pour les entetes et pied de page (<code>getInformations..</code>. * * @param _app */ public EbliDjaFrame(final BuCommonImplementation _app, final String _file, final DjaGrid _grid, final boolean _tools, final BuInformationsDocument _id) { super(_app, _file, _grid, _tools); if (_app != null) { is_ = _app.getInformationsSoftware(); } else { is_ = new BuInformationsSoftware(); } if (_id == null) { id_ = new BuInformationsDocument(); } else { id_ = _id; } delegueImpression_ = new EbliPageableDelegate(this); }
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(); }
tm = _("L'aspect n'a pu tre trouv") + ". [" + tm + "]"; BuDialogMessage dm = new BuDialogMessage(app_, getInformationsSoftware(), tm); dm.activate(); tm = _("L'aspect n'a pu mettre jour l'arbre des composants") + ". [" + tm + "]"; BuDialogMessage dm = new BuDialogMessage(app_, getInformationsSoftware(), tm); dm.activate();
public void setMetalTheme(String _arg) { try { int i = Integer.parseInt(_arg); BuMetalCustomTheme[] themes = BuMetalCustomTheme.getList(); MetalLookAndFeel.setCurrentTheme(themes[i]); setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); } catch (Exception ex) { BuDialogMessage dm = new BuDialogMessage(app_, getInformationsSoftware(), _("Le thme pour Metal n'a pu tre mis en place") + "."); dm.activate(); } }
public void actionPerformed(ActionEvent _evt) { String action = _evt.getActionCommand(); // FuLog.debug("BuBrowserFrame : "+action); if ("ALLER".equals(action)) { FuLog.debug("BBR: ALLER " + tfURL_.getText()); setDocumentUrl(tfURL_.getText()); } else if ("EFFACER".equals(action)) { setUrlText("", false); } else if ("RECULER".equals(action)) { pane_.back(); } else if ("AVANCER".equals(action)) { pane_.forward(); } else if ("RAFRAICHIR".equals(action)) { pane_.reload(); } else if ("MAISON".equals(action)) { if (app_ != null) setDocumentUrl(app_.getInformationsSoftware().baseManUrl()); else setHtmlSource(INTRO, "Introduction"); } }
/** * Affiche la boite de dialogue de FudaaAstuces. */ public static int showDialog( final BuPreferences _pref, final BuCommonImplementation _app, final FudaaAstucesAbstract _astuces) { return new FudaaAstucesDialog( _pref, _app, _app.getInformationsSoftware(), new FudaaAstucesPanel(_astuces)) .activate(); } }
public void actionPerformed(final ActionEvent _evt) { if ("AJOUTER".equals(_evt.getActionCommand())) { final BuDialogInput dial= new BuDialogInput( app_, (app_ == null ? null : app_.getInformationsSoftware()), EbliLib.getS("Ajouter une formule"), EbliLib.getS("Formule") + ":", ""); if (dial.activate() != JOptionPane.CANCEL_OPTION) { fu_.ajouteFormule(dial.getValue()); } } if ("ENLEVER".equals(_evt.getActionCommand())) { final BuDialogInput dial= new BuDialogInput( app_, (app_ == null ? null : app_.getInformationsSoftware()), EbliLib.getS("Enlever une formule"), EbliLib.getS("Formule") + ":", ""); if (dial.activate() != JOptionPane.CANCEL_OPTION) { fu_.enleveFormule(dial.getValue()); } } }
String arg = ""; BuMainPanel mp = getMainPanel(); BuInformationsSoftware il = getInformationsSoftware();
base_=new URL(app_.getInformationsSoftware().man);
public void preview() { JInternalFrame frame = getMainPanel().getCurrentInternalFrame(); if (frame instanceof BuPrintable) { /* * Image[] images=BuPrinter.preview (getFrame(),frame.getTitle(),(BuPrintable)frame); if(images!=null) { * BuPreviewFrame pf=new BuPreviewFrame(this,images); addInternalFrame(pf); } */ BuPrinter.preview(this, frame.getTitle(), (BuPrintable) frame); } else { BuInformationsSoftware il = getInformationsSoftware(); /* BuDialogError bd= */new BuDialogError(this, il, _("La prvisualisation n'est pas disponible pour") + "\"" + frame.getTitle() + "\".").activate(); } }
public EbliFilleTableau( final BuCommonImplementation _app, final BuInformationsDocument _id) { super("", true, true, true, true, null, _id); if (_app != null) { super.setInformationsSoftware(_app.getInformationsSoftware()); } app_= _app; utiliseFormules_= false; setName("ifTABLEAU"); btAjouter_= new BuButton(BuResource.BU.getString("Ajouter")); btAjouter_.setToolTipText(EbliLib.getS("Ajouter une formule")); // btAjouter_.setIcon(BuLib.loadToolCommandIcon("ajouter")); btAjouter_.setIcon(BuResource.BU.loadMenuCommandIcon("ajouter")); btAjouter_.setActionCommand("AJOUTER"); btAjouter_.addActionListener(this); btEnlever_= new BuButton(BuResource.BU.getString("Enlever")); btEnlever_.setToolTipText(EbliLib.getS("Enlever une formule")); btEnlever_.setIcon(BuResource.BU.loadMenuCommandIcon("enlever")); btEnlever_.setActionCommand("ENLEVER"); btEnlever_.addActionListener(this); content_= (JComponent)getContentPane(); content_.setLayout(new BuBorderLayout()); setTitle(EbliLib.getS("Tableau")); setFrameIcon(BuResource.BU.getIcon("tableau")); setLocation(60, 60); } public void setUtiliseFormules(final boolean _utiliseFormules) {