Package weka.gui.CheckBoxList

Examples of weka.gui.CheckBoxList.CheckBoxListModel


     *
     * @see #m_Capabilities
     * @see #m_List
     */
    protected void updateList() {
      CheckBoxListModel    model;
     
      model = (CheckBoxListModel) m_List.getModel();

      for (Capability cap: Capability.values())
  model.setChecked(model.indexOf(cap), m_Capabilities.handles(cap));
    }
View Full Code Here


     *
     * @see #m_Capabilities
     * @see #m_List
     */
    protected void updateCapabilities() {
      CheckBoxListModel    model;
     
      model = (CheckBoxListModel) m_List.getModel();

      for (Capability cap: Capability.values()) {
  if (model.getChecked(model.indexOf(cap)))
          m_Capabilities.enable(cap);
  else
    m_Capabilities.disable(cap);
      }
    }
View Full Code Here

    /**
     * sets up the GUI.
     */
    protected void initGUI() {
      JPanel      panel;
      CheckBoxListModel    model;

      setTitle("Filtering Capabilities...");
      setLayout(new BorderLayout());
     
      panel = new JPanel(new BorderLayout());
      panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
      getContentPane().add(panel, BorderLayout.NORTH);
      m_InfoLabel.setText(
      "<html>"
    + m_ClassType.getName().replaceAll(".*\\.", "") + "s"
    + " have to support <i>at least</i> the following capabilities <br>"
    + "(the ones highlighted <font color=\"" + GOETreeNode.NO_SUPPORT + "\">" + GOETreeNode.NO_SUPPORT + "</font> don't meet these requirements <br>"
    + "the ones highlighted  <font color=\"" + GOETreeNode.MAYBE_SUPPORT + "\">" + GOETreeNode.MAYBE_SUPPORT + "</font> possibly meet them):"
    + "</html>");
      panel.add(m_InfoLabel, BorderLayout.CENTER);
     
      // list
      getContentPane().add(new JScrollPane(m_List), BorderLayout.CENTER);
      model = (CheckBoxListModel) m_List.getModel();
      for (Capability cap: Capability.values())
  model.addElement(cap);
     
      // buttons
      panel = new JPanel(new FlowLayout(FlowLayout.CENTER));
      getContentPane().add(panel, BorderLayout.SOUTH);
     
View Full Code Here

     *
     * @see #m_Capabilities
     * @see #m_List
     */
    protected void updateList() {
      CheckBoxListModel    model;
     
      model = (CheckBoxListModel) m_List.getModel();

      for (Capability cap: Capability.values())
  model.setChecked(model.indexOf(cap), m_Capabilities.handles(cap));
    }
View Full Code Here

     *
     * @see #m_Capabilities
     * @see #m_List
     */
    protected void updateCapabilities() {
      CheckBoxListModel    model;
     
      model = (CheckBoxListModel) m_List.getModel();

      for (Capability cap: Capability.values()) {
  if (model.getChecked(model.indexOf(cap)))
          m_Capabilities.enable(cap);
  else
    m_Capabilities.disable(cap);
      }
    }
View Full Code Here

    /**
     * sets up the GUI.
     */
    protected void initGUI() {
      JPanel      panel;
      CheckBoxListModel    model;

      setTitle("Filtering Capabilities...");
      setLayout(new BorderLayout());
     
      panel = new JPanel(new BorderLayout());
      panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
      getContentPane().add(panel, BorderLayout.NORTH);
      m_InfoLabel.setText(
      "<html>"
    + m_ClassType.getName().replaceAll(".*\\.", "") + "s"
    + " have to support <i>at least</i> the following capabilities <br>"
    + "(the ones highlighted <font color=\"" + GOETreeNode.NO_SUPPORT + "\">" + GOETreeNode.NO_SUPPORT + "</font> don't meet these requirements <br>"
    + "the ones highlighted  <font color=\"" + GOETreeNode.MAYBE_SUPPORT + "\">" + GOETreeNode.MAYBE_SUPPORT + "</font> possibly meet them):"
    + "</html>");
      panel.add(m_InfoLabel, BorderLayout.CENTER);
     
      // list
      getContentPane().add(new JScrollPane(m_List), BorderLayout.CENTER);
      model = (CheckBoxListModel) m_List.getModel();
      for (Capability cap: Capability.values())
  model.addElement(cap);
     
      // buttons
      panel = new JPanel(new FlowLayout(FlowLayout.CENTER));
      getContentPane().add(panel, BorderLayout.SOUTH);
     
View Full Code Here

     *
     * @see #m_Capabilities
     * @see #m_List
     */
    protected void updateList() {
      CheckBoxListModel    model;
     
      model = (CheckBoxListModel) m_List.getModel();

      for (Capability cap: Capability.values())
  model.setChecked(model.indexOf(cap), m_Capabilities.handles(cap));
    }
View Full Code Here

     *
     * @see #m_Capabilities
     * @see #m_List
     */
    protected void updateCapabilities() {
      CheckBoxListModel    model;
     
      model = (CheckBoxListModel) m_List.getModel();

      for (Capability cap: Capability.values()) {
  if (model.getChecked(model.indexOf(cap)))
          m_Capabilities.enable(cap);
  else
    m_Capabilities.disable(cap);
      }
    }
View Full Code Here

TOP

Related Classes of weka.gui.CheckBoxList.CheckBoxListModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.