boolean isFixedSelected() { return cbChoose_.getSelectedIndex() == 0; }
public int getSelectedIdx(final Component _c) { return ((BuComboBox) _c).getSelectedIndex(); }
public final CtuluNumberFormat getCurrentFmt() { return cbChoose_.getSelectedIndex() == 0 ? (CtuluNumberFormat) currentFixedFmt_ : currentDecimalFmt_; }
public int getSelectedIndex() { return chValeur_.getSelectedIndex(); }
protected FuComparator getSorter() { FuComparator r; /* * String s=(String)sorters_.getSelectedItem(); if("Date".equals(s)) r=DATE_COMPARATOR; else if("Size".equals(s)) * r=SIZE_COMPARATOR; else if("Type".equals(s)) r=TYPE_COMPARATOR; else r=NAME_COMPARATOR; */ switch (sorters_.getSelectedIndex()) { case 1: r = TYPE_COMPARATOR; break; case 2: r = DATE_COMPARATOR; break; case 3: r = SIZE_COMPARATOR; break; default: r = NAME_COMPARATOR; break; } return r; }
public Object getCellEditorValue() { return new Integer(cb.getSelectedIndex()); } };
public int getVitesse() { return getTimeForAnim(cb_ == null ? 1 : cb_.getSelectedIndex()); }
public void setEnabled(final boolean _b) { super.setEnabled(_b && cbOut_.getSelectedIndex() >= 0); } };
private boolean isMixteValuesSelected(final BuComboBox _buComboBox) { return isMixteComponent(_buComboBox) && _buComboBox.getSelectedIndex() >= choices_.length; }
private float getSelectedTaille() { return taille_[cb_.getSelectedIndex()].getEpaisseur(); }
/** * @return null si c'est la chaine vide qui est selectionne */ public Object getValue(final Component _comp) { final BuComboBox buComboBox = ((BuComboBox) _comp); if (isMixteValuesSelected(buComboBox)) { return null; } if (useInteger_) { return new Integer(buComboBox.getSelectedIndex()); } return buComboBox.getSelectedItem(); }
void updateSep() { final SepModel model = (SepModel) cbSepChoice_.getModel(); String separateur = model.sepLst_[cbSepChoice_.getSelectedIndex()]; txtSep_.setEnabled(separateur == null); if (separateur == null) { separateur = txtSep_.getText(); if (separateur == null) { separateur = getPointVirg(); txtSep_.setText(separateur); } } setSep(separateur); }
private boolean isAlreadySet() { final int idx = cb_.getSelectedIndex(); if (idx >= 0) { final TraceLigneModel d = taille_[idx]; if (d.getEpaisseur() == getSelectedTaille()) { return true; } } return false; }
public String getSearchId() { return getID() + CtuluLibString.getString(cb_.getSelectedIndex()); }
public void contentsChanged(final ListDataEvent _e) { if (!isUpdatingFromSrc_ && _e.getIndex0() == -1 && _e.getIndex1() == -1 && isTargetUpdatable()) { if (Fu.DEBUG && FuLog.isDebug()) { FuLog.debug("FMV: palette cb update from cb"); } target_.getListSelectionModel().setSelectionInterval(cb_.getSelectedIndex(), cb_.getSelectedIndex()); } }
public void itemStateChanged(final ItemEvent _e) { if (_e.getStateChange() != ItemEvent.SELECTED) { return; } final Object source = _e.getSource(); if (source.equals(chListePages_)) { setPremierePageAffichee(chListePages_.getSelectedIndex()); } else if (source.equals(chZooms_)) { setZoom((Zoom) chZooms_.getSelectedItem()); } else if (source.equals(chVues_)) { setVue((Vue) chVues_.getSelectedItem()); } } final class SimplePanelPreview extends JComponent {
public void itemStateChanged(final ItemEvent _e) { if (_e.getStateChange() == ItemEvent.DESELECTED) { return; } final BuComboBox cb = (BuComboBox) _e.getSource(); final float coef = coef_[cb.getSelectedIndex()]; final GrBoite b = cv_.getU().getBoite(); float x = coef; float y = x; float z = x; if (b != null) { final double xy = Math.max(b.getDeltaX(), b.getDeltaY()); x = (float) (xy / coef); y = x; z = x; } cv_.setCoef(x, y, z); }
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 actionPerformed(final ActionEvent _e) { if (start_ == _e.getSource()) { stop_.setEnabled(true); pause_.setEnabled(true); setRun(true); start_.setEnabled(false); animStart(); } else if (stop_ == _e.getSource()) { animStop(); } else if (pause_ == _e.getSource()) { animPause(); } else if (btOut_ == _e.getSource()) { final int i = cbOut_.getSelectedIndex(); if (i >= 0) { outs_[i].getConfigurePanel(task_.getNbDisplayedAnimStep()).afficheModale(this); outs_[i].setHeight(pnDimImages_.getImageHeight()); outs_[i].setWidth(pnDimImages_.getImageWidth()); final String valide = outs_[i].isValid(false); if (valide == null) { btOut_.setForeground(Color.BLACK); btOut_.setToolTipText(outs_[i].getHtmlDesc()); } else { btOut_.setForeground(Color.RED); btOut_.setToolTipText(valide); } majInfo(); } } }
if (src == cbSaveVideo_) { if (cbSaveVideo_.isSelected()) { updateOutActivated(cbOut_.getSelectedIndex()); idx = cbOut_.getSelectedIndex(); btOut_.setEnabled(idx >= 0); if (idx >= 0) { setVitesse(cb_.getSelectedIndex());