/** * @return true si l'utilisateur n'a choisi que des connexions locales */ public boolean isAllLocalSet(){ return allLocal_.isSelected(); }
/** * @return l'tat de la case "ne plus demander" */ public boolean getDoNotAskValue(){ return doNotAsk_.isSelected(); }
public void itemStateChanged(final ItemEvent _e) { if (cbChangedLeg_.isSelected()) { if (plageEnCours_ != null && tfPlageLeg_ != null) { ajusteSelectedPlageLegende(true); tfPlageLeg_.setText(plageEnCours_.getLegende()); } } else if (tfPlageLeg_ != null) { tfPlageLeg_.setText(CtuluLibString.EMPTY_STRING); } if (tfPlageLeg_ != null) tfPlageLeg_.setEnabled(cbChangedLeg_.isSelected()); } });
private final Font value() { Font r=null; try { r=new Font(""+ltFamille_.getSelectedValue(), Font.PLAIN | (cbBold_ .isSelected() ? Font.BOLD : 0) | (cbItalic_.isSelected() ? Font.ITALIC : 0), Integer.parseInt(""+ltTaille_.getSelectedValue())); } catch(Exception ex) { } return r; }
private void fillTable() { options_.putBooleanProperty(ASTUCES_VISIBLES_PREF, cbAstuceVisible_.isSelected()); }
public void validatePreferences() { BuPreferences.BU.putBooleanProperty(exit_, cbExit_.isSelected()); BuPreferences.BU.putBooleanProperty(splash_, cbSplash_.isSelected()); if (cbUpdate_ != null) { BuPreferences.BU.putBooleanProperty(update_, cbUpdate_.isSelected()); } setDirty(false); }
private final int style() { int r=0; if(cbUnderlined_ .isSelected()) r|=UNDERLINED; if(cbCrossed_ .isSelected()) r|=CROSSED; if(cbSmallcaps_ .isSelected()) r|=SMALL_CAPS; if(cbCondensed_ .isSelected()) r|=CONDENSED; if(cbExpanded_ .isSelected()) r|=EXPANDED; if(cbTransparent_.isSelected()) r|=TRANSPARENT; if(rbShadow_ .isSelected()) r|=SHADOW; if(rbExtrabold_ .isSelected()) r|=EXTRA_BOLD; if(rbAura_ .isSelected()) r|=AURA; if(rbEmboss_ .isSelected()) r|=EMBOSS; if(rbEngrave_ .isSelected()) r|=ENGRAVE; if(rbBlur_ .isSelected()) r|=BLUR; return r; }
private void fillTable() { for(int i=0;i<NBF;i++) options_.putBooleanProperty ("monitor."+NOMS[i].toLowerCase(), cbMoniteurs[i].isSelected()); setDirty(false); }
private void fillTable() { for(int i=0;i<CODES.length;i++) options_.putBooleanProperty ("command."+CODES[i][0],cbEtats_[i].isSelected()); setDirty(false); }
protected void fillTable() { for(int i=0;i<NBL;i++) options_.putBooleanProperty(CODES[i],cbEtats_[i].isSelected()); setDirty(false); }
/** * Modifie le contenu du label si l'item selectionne de <code>chElement_</code> a ete modifie ou modifie l'etat du * label en fontion de la CheckBox emettrice de l'evenement. */ public void itemStateChanged(final ItemEvent _e) { final Object source = _e.getSource(); if (source instanceof BuCheckBox) { setLabelEnabled(((BuCheckBox) source).isSelected()); } else if (source.equals(chElement_) && _e.getStateChange() == ItemEvent.SELECTED) { majLabel(); } } }
public void actionPerformed(final ActionEvent _evt){ if (_evt.getSource() == allLocal_) { boolean b = allLocal_.isSelected(); doNotAsk_.setEnabled(b); t_.setEnabled(!b); if (b) { for (int i = 0; i < this.distant_.length; i++) { distant_[i] = false; } ((AbstractTableModel) t_.getModel()).fireTableDataChanged(); } } }
/** * Actions lances lorsqu'un bouton du panneau est activ. */ public void actionPerformed(final ActionEvent _evt) { if (_evt.getSource()==cbOrig_) { tfX0_.setEnabled(cbOrig_.isSelected()); tfY0_.setEnabled(cbOrig_.isSelected()); lbX0_.setEnabled(cbOrig_.isSelected()); lbY0_.setEnabled(cbOrig_.isSelected()); } // Rotation demande. else if (_evt.getSource()==btApply_) { if (sceneEditor_==null) return; Double angDeg=(Double)tfAng_.getValue(); Double x0=(Double)tfX0_.getValue(); Double y0=(Double)tfY0_.getValue(); if (angDeg!=null && angDeg.doubleValue()!=0. && x0!=null && y0!=null) { sceneEditor_.rotateSelectedObjects(Math.toRadians(angDeg.doubleValue()), x0.doubleValue(), y0.doubleValue()); } } }
void savePanel() { boolean modified = ajusteSelectedPlageLegende(false); if (!isDiscreteTarget_ && plageEnCours_ != null) { final BPlage p = (BPlage) plageEnCours_; if (cbChangedLeg_ != null && cbChangedLeg_.isSelected()) { modified |= p.setLegende(tfPlageLeg_.getText()); // Fred deja effectue par la premiere ligne } /* * else { modified |= p.ajusteLegendes(default_.getFormatter(), default_.getSep()); } */ } if (modified) { model_.fireModified(plageEnCours_); } }
public void itemStateChanged(final ItemEvent _e) { if (_e.getSource() == cbZeroUsed_) { if (fmt_ != null) { ((CtuluDurationFormatter) fmt_).setAlwaysDisplayZero(cbZeroUsed_.isSelected()); } updateFmt(); } else if (_e.getStateChange() == ItemEvent.SELECTED) { final JComboBox cb = ((JComboBox) _e.getSource()); if (cb.getSelectedIndex() == 0) { fmt_ = null; } else { fmt_ = (CtuluNumberFormat) cb.getSelectedItem(); if (cbZeroUsed_ != null) { ((CtuluDurationFormatter) fmt_).setAlwaysDisplayZero(cbZeroUsed_.isSelected()); } } updateFmt(); } } }
private void buildDecimalFormat() { final boolean isGroup = decimalFormat_.isGroupingUsed(); if (cbISExp_.isSelected()) { decimalFormat_.applyPattern("0.#####E0"); } else { decimalFormat_.applyPattern("0.##"); } int i = 0; if (tfFraction_.getText() != null && tfFraction_.getText().trim().length() > 0) { i = ((Integer) tfFraction_.getValue()).intValue(); } decimalFormat_.setMaximumFractionDigits(i); i = 0; if (tfFractionMin_.getText() != null && tfFractionMin_.getText().trim().length() > 0) { i = ((Integer) tfFractionMin_.getValue()).intValue(); } decimalFormat_.setMinimumFractionDigits(i); decimalFormat_.setGroupingUsed(isGroup); this.currentDecimalFmt_.setFmt(decimalFormat_); }
protected void updateAbility(){ //chConnection_.setEnabled(true); boolean b; /* b = cbSocksProxyActivated_.isSelected(); tfSocksProxyHost_.setEnabled(b); tfSocksProxyPort_.setEnabled(b); tfSocksProxyUsername_.setEnabled(b); tfSocksProxyPassword_.setEnabled(b);*/ b = cbHttpProxyActivated_.isSelected(); tfHttpProxyHost_.setEnabled(b); tfHttpProxyPort_.setEnabled(b); tfHttpNonProxyHosts_.setEnabled(b); /* b = cbFtpProxyActivated_.isSelected(); tfFtpProxyHost_.setEnabled(b); tfFtpProxyPort_.setEnabled(b); tfFtpNonProxyHosts_.setEnabled(b);*/ } }
private void fillTable() { for(int i=0;i<NBL;i++) if(cbLangues_[i].isSelected()) options_.putStringProperty("locale.language",CODES[i]); options_.putBooleanProperty ("translation.fallBackOnEnglish",cbFallBack_.isSelected()); setDirty(false); }
/** * Renvoie une instance de <code>EbliPageFormat</code> prenant en compte les modifs apportes dans ce panel. */ public EbliPageFormat getEbliPageFormatModifie() { final EbliPageFormat r = new EbliPageFormat(); r.setPageFormat(pageFormat_); r.setEnteteVisible(cbEnteteVisible_.isSelected()); r.setPiedVisible(cbPiedVisible_.isSelected()); r.setEntete(enteteGauche_.getCleSelected(), enteteMilieu_.getCleSelected(), enteteDroit_.getCleSelected()); r.setPied(piedGauche_.getCleSelected(), piedMilieu_.getCleSelected(), piedDroit_.getCleSelected()); return r; } /**
/** * Mise a jour du panneau, l'origine et le bouton apply, en fonction de la slection */ public void updateForSelectionChanged() { if (sceneEditor_.getScene().isSelectionEmpty()) { btApply_.setEnabled(false); return; } btApply_.setEnabled(true); if (!cbOrig_.isSelected()) { GrBoite bt=sceneEditor_.getScene().getDomaineOnSelected(); tfX0_.setText(formatter_.getXYFormatter().format(bt.getMidX())); tfY0_.setText(formatter_.getXYFormatter().format(bt.getMidY())); } }