private void fillTable() { options_.putStringProperty("directory.open",tfDirOpen_.getText()); options_.putStringProperty("directory.save",tfDirSave_.getText()); options_.putIntegerProperty ("window.size",chWinSize_.getSelectedIndex()); setDirty(false); }
public void mouseClicked(MouseEvent _evt) { redispatchMouseEvent(_evt, false); setVisible(false); frame_.getImplementation().contextHelp(getTarget()); }
protected BuBackgroundPainter createBackgroundPainter() { BuBackgroundPainter bp = new BuBackgroundPainter(); if (isBlocked()) { bp.setBar(true); bp.setBarHeight(BuLib.isMetal() ? 8 + BuResource.BU.getDefaultFrameSize() : 0); /* * (BuLib.isSlaf() ? 10+BuResource.BU.getDefaultFrameSize() : 0)); */ } return bp; }
protected BuButton[] getButtons() { btCopier_ =new BuButton(BuResource.BU.loadButtonCommandIcon("COPIER"), _("Copier")); btContinuer_=new BuButton(BuResource.BU.loadButtonCommandIcon("CONTINUER"), _("Continuer")); btCopier_ .addActionListener(this); btContinuer_.addActionListener(this); return new BuButton[] { btCopier_,btContinuer_ }; }
public void print(PrintJob _job, Graphics _g) { BuPrinter.INFO_DOC =new BuInformationsDocument(); BuPrinter.INFO_DOC.name=getTitle(); BuPrinter.INFO_DOC.logo=BuResource.BU.getIcon("image",24); BuPrinter.printImage(_job,_g,getImage()); }
public Colorizer(BuCommonInterface _app) { super(); app_ = _app; setName(BuResource.BU.getString("Coloration")); if (app_ != null) setTaskView(app_.getMainPanel().getTaskView()); }
private void updateComponents() { for(int i=0;i<NB;i++) text_[i].setText(options_.getStringProperty("user."+PROP[i])); setDirty(false); } }
private void fillTable() { for(int i=0;i<NB;i++) options_.putStringProperty("user."+PROP[i],text_[i].getText()); setDirty(false); }
final void updateCbState() { l_.setEnabled(!cbNew_.isSelected()); tfTitle_.setEnabled(cbNew_.isSelected()); } }
protected void fillTable() { for(int i=0;i<NBL;i++) options_.putBooleanProperty(CODES[i],cbEtats_[i].isSelected()); setDirty(false); }
public void about() { BuInformationsSoftware il = getInformationsSoftware(); BuDialogMessage bd = new BuDialogMessage(getApp(), il, il.about()); bd.activate(); }
void addInternalFrame(JInternalFrame _f) { if (desktop_ != null) { desktop_.addInternalFrame(_f); if (getAssistant() != null) getAssistant().addEmitters(_f); } }
public BuToolButton addToolButton (String _text, String _tip, String _cmd, boolean _enabled) { BuIcon icon=BuResource.BU.loadToolCommandIcon(_cmd); return addToolButton(_text,_tip,_cmd,icon,_enabled); }
public BuTextPane() { super(); BuAutoStyledDocument doc=new BuAutoStyledDocument(); doc.setTextPane(this); doc.addDocumentListener(this); doc.addUndoableEditListener(this); setDocument(doc); }
public BuApplication() { super(); BuRegistry.register(this); setImplementation(new BuCommonImplementation()); }
public void setSelected(boolean _state) throws PropertyVetoException { super.setSelected(_state); if(isSelected()) ltPages_.requestFocus(); }
public void cancelPreferences() { options_.readIniFile(); updateComponents(); }
protected void updateMenuDirs() { int l = dirs_.getSelectedValues().length; BuActionEnabler.setEnabledForAction(pmDirs_, "OUVRIR_REPERTOIRE", l == 1); BuActionEnabler.setEnabledForAction(pmDirs_, "DETRUIRE_REPERTOIRE", l == 1); BuActionEnabler.setEnabledForAction(pmDirs_, "RENOMMER_REPERTOIRE", l == 1); pmDirs_.computeMnemonics(); }
public Dimension preferredLayoutSize(Container _parent) { if(DEBUG) FuLog.debug("BML: preferred layout"); if(shouldReset_) reset(); return super.preferredLayoutSize(_parent); }