de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag.getShortDescription()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(167)

本文整理了Java中de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag.getShortDescription()方法的一些代码示例,展示了Flag.getShortDescription()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flag.getShortDescription()方法的具体详情如下:
包路径:de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag
类名称:Flag
方法名:getShortDescription

Flag.getShortDescription介绍

暂无

代码示例

代码示例来源: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);
}

相关文章