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);*/ } }
public void setTitleVisibleTarget(final BSelecteurTargetInterface _target, final boolean _txtEnable) { txtTitle_.setSelecteurTarget(_target); if (cbVisible_ != null) { cbVisible_.setSelecteurTarget(_target); } txtTitle_.tf_.setEnabled(_txtEnable); }
protected void updateAbility() { boolean b; b=(liGenDeskDecor_.getSelectedItem()==optionsStr_.get("DESKTOP_TEXTURE")); liGenDeskTexture_.setEnabled(b); liGenDeskCouleur_.setEnabled(!b); b=(liGenAspAspect_.getSelectedItem()==optionsStr_.get("ASPECT_METAL")); liGenAspMetal_.setEnabled(b); b=(liGenAspAspect_.getSelectedItem()==optionsStr_.get("ASPECT_SLAF")); liGenAspSlaf_.setEnabled(b); b=(liGenAspAspect_.getSelectedItem()==optionsStr_.get("ASPECT_SKINLF")); tfGenAspSkinlf_.setEnabled(b); b=(liGenAspAspect_.getSelectedItem()==optionsStr_.get("ASPECT_OYOAHA")); tfGenAspOyoaha_.setEnabled(b); } }
final void updateCbState() { l_.setEnabled(!cbNew_.isSelected()); tfTitle_.setEnabled(cbNew_.isSelected()); } }
public void valueChanged(final ListSelectionEvent _evt) { final JList src= (JList)_evt.getSource(); final int ind= src.getSelectedIndex(); if (src == lsAxes_) { if ((ind < 0) || (ind >= axes_.length)) { return; } final Axe a= (Axe)axes_[ind]; tfAxeTitre_.setText(a.titre_); cbAxeVisible_.setSelected(a.visible_); cbAxeGraduations_.setSelected(a.graduations_); cbAxeGrille_.setSelected(a.grille_); tfAxePas_.setValue(new Double(a.pas_)); tfAxeEcart_.setValue(new Integer(a.ecart_)); if (a.vertical_) { tfAxeEcart_.setEnabled(true); } btAxeCouleur_.setIcon(new BuColorIcon(a.aspect_.contour_)); } else if (src == lsCourbes_) { if ((ind < 0) || (ind >= courbes_.length)) { return; } final CourbeDefault c= (CourbeDefault)courbes_[ind]; tfCourbeTitre_.setText(c.titre_); cbCourbeVisible_.setSelected(c.visible_); cbCourbeMarqueurs_.setSelected(c.marqueurs_); btCourbeCouleur_.setIcon(new BuColorIcon(c.aspect_.contour_)); } } public void propertyChange(final PropertyChangeEvent _evt) {
/** * 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()); } } }
private void createAxeEcart() { tfAxeEcart_= BuTextField.createIntegerField(); tfAxeEcart_.setColumns(8); tfAxeEcart_.setEnabled(false); if (axes_.length > 0) { tfAxeEcart_.setValue(new Integer(((Axe)axes_[0]).ecart_)); } tfAxeEcart_.setActionCommand("AXEECART"); tfAxeEcart_.addActionListener(this); } private void createAxePas() {
public void actionPerformed(ActionEvent _evt) { //JComponent source=(JComponent)_evt.getSource(); //System.err.println("SOURCE="+source.getName()); //System.err.println("ACTION="+_evt.getActionCommand()); setDirty(true); chBrowser_.setEnabled(cbExterne_.isSelected()); tfPerso_ .setEnabled(cbPerso_ .isSelected()); }
tfAxeEcart_.setValue(new Integer(a.ecart_)); if (a.vertical_) { tfAxeEcart_.setEnabled(true);
tfMinV_.setEnabled(cbBornes_.isSelected()); tfMaxV_.setValue(null); tfMaxV_.setEnabled(cbBornes_.isSelected()); if (!cbBornes_.isSelected()) { firePropertyChange("minValeur", 0., Double.NaN);
public void targetChanged(final ZCalqueEditable _target) { bZ_= (_target != null && _target.getModelEditable() != null && _target.getModelEditable().getGeomData().getAttributeIsZ() != null); lbDz_.setEnabled(bZ_); tfDz_.setEnabled(bZ_); }
public void actionPerformed(ActionEvent _evt) { current_.setEnabled(false); current_.repaint(0); String p = FuLib.expandedPath(current_.getText()); /* * File r=null; try { r=new URLAdapter(new URL(p)); ((URLAdapter)r).init(); } catch(Exception ex) { r=new * File(p); } */ VfsFile r = VfsFile.createFile(p); if (r.exists()) { setCurrentDirectory(r); } else { getToolkit().beep(); current_.setText(FuLib.reducedPath(last_ == null ? "" : "" + last_)); } current_.setEnabled(true); current_.repaint(0); current_.requestFocus(); } };
cbBornes_.addActionListener(this); tfMinV_ = BuTextField.createDoubleField(); tfMinV_.setEnabled(false); tfMinV_.addActionListener(this); tfMaxV_ = BuTextField.createDoubleField(); tfMaxV_.setEnabled(false); tfMaxV_.addActionListener(this); cbPaletteLocale_ = new JCheckBox(EbliResource.EBLI.getString("Palette locale"));
private void updateComponents() { int type=options_.getIntegerProperty("browser.type"); String exec=options_.getStringProperty("browser.exec"); switch(type) { case 2: cbExterne_.setSelected(true); chBrowser_.setSelectedItem(exec); break; case 3: cbPerso_.setSelected(true); tfPerso_.setText(exec); break; default: cbInterne_.setSelected(true); break; } chBrowser_.setEnabled(type==2); tfPerso_ .setEnabled(type==3); setDirty(false); } }
tfX0_.setEnabled(false); tfY0_.setEnabled(false); lbX0_.setEnabled(false); lbY0_.setEnabled(false);
txtInc_.setColumns(5); txtInc_.getDocument().addDocumentListener(this); txtInc_.setEnabled(false); timePn.add(txtInc_); pn.add(timePn);