protected Object getData(JComponent _c) { return tfURL_.getText(); } });
protected Object getData(JComponent _c) { return current_.getText(); } });
public String getNewFrameTitle() { return tfTitle_.getText(); }
public void apply() { dir_ = new File(txtDir_.getText()); fmt_ = (String) cbFmt_.getSelectedItem(); pref_ = txtPrefix_.getText(); }
/** Enregistrement dans la hastables des preferences editees par ce panel. */ private void fillTable() { putNsAddress(nsAddr_.getText()); // putLOCAL_ADDR(localAddr_.getText()); putUdpAddress(udpAddr_.getText()); putTcpPort(Integer.parseInt(tcpPort_.getText())); putUdpPort(Integer.parseInt(udpPort_.getText())); // putCONNEXION_LOCAL(connexionLocale_.isSelected()); }
private void doGrapheSsTitre() { final String text= tfGrapheSousTitre_.getText(); graphe_.soustitre_= text; firePropertyChange("grapheSousTitre", null, null); } private JFileChooser createFileChooser() {
public void apply() { _fr.setTitle(tf.getText()); } };
public Object getValue() { return stringToValue(getText()); }
public String getTitle() { final String r = tftTitle_.getText(); final String rf = FuLib.clean(r); if (!r.equals(rf)) { tftTitle_.setText(rf); } return rf; }
private void doAxeTitre() { final String text= tfAxeTitre_.getText(); final int ind= lsAxes_.getSelectedIndex(); final Axe a= (Axe)axes_[ind]; a.titre_= text; final String[] itAxes= new String[axes_.length]; for (int i= 0; i < axes_.length; i++) { itAxes[i]= ((Axe)axes_[i]).titre_; if ((itAxes[i] == null) || (itAxes[i].trim().equals(""))) { itAxes[i]= "axe " + (i + 1); } } lsAxes_.setListData(itAxes); lsAxes_.setSelectedIndex(ind); firePropertyChange("axeTitre", null, null); } private void doCourbeCouleur() {
private void fillTable() { for(int i=0;i<NB;i++) options_.putStringProperty("user."+PROP[i],text_[i].getText()); setDirty(false); }
public void actionPerformed(ActionEvent _evt) { JComponent source=(JComponent)_evt.getSource(); // System.err.println("BuDialogInput : "+source); if((source==btValider_)||(source==tfValeur_)) { reponse_=JOptionPane.OK_OPTION; valeur_ =tfValeur_.getText(); setVisible(false); } if(source==btAnnuler_) { reponse_=JOptionPane.CANCEL_OPTION; valeur_ =null; setVisible(false); } }
public void actionPerformed(ActionEvent _evt) { JComponent source=(JComponent)_evt.getSource(); //System.err.println("SOURCE="+source.getName()); //System.err.println("ACTION="+_evt.getActionCommand()); if(source==btDirOpen_) tfDirOpen_.setText(getDirectory(tfDirOpen_.getText())); if(source==btDirSave_) tfDirSave_.setText(getDirectory(tfDirSave_.getText())); //chDirWin.setEnabled(cbExterne.isSelected()); setDirty(true); }
public void actionPerformed(ActionEvent _evt) { JComponent source=(JComponent)_evt.getSource(); //System.err.println("SOURCE="+source.getName()); //System.err.println("ACTION="+_evt.getActionCommand()); if(source==btDir_) tfDir_.setText(getDirectory(tfDir_.getText())); setDirty(true); updateAbility(); //chScript.setEnabled(cbExterne.isSelected()); }
protected void resolveDirectory() { VfsFile r = VfsFile.createFile(FuLib.expandedPath(current_.getText())); try { String c = r.getCanonicalPath(); if (!c.equals(r.getAbsolutePath())) current_.setText(c); } catch (IOException ex) {} }
public boolean valide() { if (CtuluLibString.isEmpty(tf.getText())) { lb.setForeground(Color.RED); lb.setToolTipText(CtuluLib.getS("Le nom ne doit pas tre vide")); return false; } return true; }
protected void renameLayer(final BCalque _calque) { final String title = _calque.getTitle(); final BuTextField ft = new BuTextField(title); ft.setColumns(title.length() + 2); final CtuluDialogPanel pn = new CtuluDialogPanel(); pn.setBorder(BuBorders.EMPTY3333); pn.setLayout(new BuGridLayout(2, 5, 5)); pn.add(new BuLabel(EbliLib.getS("Nom du calque"))); pn.add(ft); final String s = EbliLib.getS("Entrer le nouveau nom du calque"); ft.setToolTipText(s); if (pn.afficheModaleOk(CtuluLibSwing.getFrameAncestorHelper(_calque), s)) { _calque.setTitle(ft.getText()); } }
public boolean isValideValue() { final String oldTipId = "oldToolTip"; getStringValidator().isStringValid(super.getText()); if (getExpr().getLastError() != null) { if (getClientProperty(oldTipId) == null) { putClientProperty(oldTipId, getToolTipText()); } setForeground(Color.RED); setToolTipText(getExpr().getParser().getHtmlError()); return false; } if (getClientProperty(oldTipId) != null) { setToolTipText((String) getClientProperty(oldTipId)); } setForeground(UIManager.getColor(getUIClassID() + ".foreground")); return true; }