本文整理了Java中de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag.tookDefaultValue()
方法的一些代码示例,展示了Flag.tookDefaultValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flag.tookDefaultValue()
方法的具体详情如下:
包路径:de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag
类名称:Flag
方法名:tookDefaultValue
暂无
代码示例来源:origin: elki-project/elki
public FlagParameterConfigurator(Flag param, JComponent parent) {
super(param, parent);
// Input field
GridBagConstraints constraints = new GridBagConstraints();
constraints.gridwidth = 2;
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.weightx = 1.0;
value = new JCheckBox(param.getOptionID().getName());
if(param.isDefined() && !param.tookDefaultValue()) {
value.setSelected(param.isTrue());
}
value.setToolTipText(param.getShortDescription());
parent.add(value, constraints);
finishGridRow();
value.addActionListener(this);
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
public FlagParameterConfigurator(Flag param, JComponent parent) {
super(param, parent);
// Input field
GridBagConstraints constraints = new GridBagConstraints();
constraints.gridwidth = 2;
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.weightx = 1.0;
value = new JCheckBox(param.getName());
if(param.isDefined() && !param.tookDefaultValue()) {
value.setSelected(param.isTrue());
}
value.setToolTipText(param.getShortDescription());
parent.add(value, constraints);
finishGridRow();
value.addActionListener(this);
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-gui-minigui
public FlagParameterConfigurator(Flag param, JComponent parent) {
super(param, parent);
// Input field
GridBagConstraints constraints = new GridBagConstraints();
constraints.gridwidth = 2;
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.weightx = 1.0;
value = new JCheckBox(param.getOptionID().getName());
if(param.isDefined() && !param.tookDefaultValue()) {
value.setSelected(param.isTrue());
}
value.setToolTipText(param.getShortDescription());
parent.add(value, constraints);
finishGridRow();
value.addActionListener(this);
}
内容来源于网络,如有侵权,请联系作者删除!