/** * Constructs a CheckBoxListModel from an array of objects and then applies * setModel to it. * * @param listData the data to use */ @Override public void setListData(Object[] listData) { setModel(new CheckBoxListModel(listData)); }
@Override public void windowActivated(WindowEvent e) { // update title of parent if (getParentFrame() != null) { getParentFrame().createTitle(getTitle()); } } });
/** * sets the checked state of the element at the given index * * @param index the index of the element to set the checked state for * @param checked the new checked state */ public void setChecked(int index, boolean checked) { ((CheckBoxListModel) getModel()).setChecked(index, checked); }
/** * Save the currently selected classifier output to a file. * * @param name the name of the buffer to save */ protected void saveBuffer(String name) { StringBuffer sb = m_History.getNamedBuffer(name); if (sb != null) { if (m_SaveOut.save(sb)) { m_Log.logMessage("Save successful."); } } }
/** * Show the perspectives toolbar */ @Override public void showPerspectivesToolBar() { if (!isPerspectivesToolBarVisible()) { m_perspectiveManager.setPerspectiveToolBarIsVisible(true); add(m_perspectiveManager.getPerspectiveToolBar(), BorderLayout.NORTH); } }
/** * Hide the perspectives toolbar */ @Override public void hidePerspectivesToolBar() { if (isPerspectivesToolBarVisible()) { m_perspectiveManager.setPerspectiveToolBarIsVisible(false); remove(m_perspectiveManager.getPerspectiveToolBar()); } }
@Override public void actionPerformed(ActionEvent e) { SaveBuffer saveOut = new SaveBuffer(null, panel); StringBuffer sb = m_history.getNamedBuffer(selectedName); if (sb != null) { saveOut.save(sb); } } });
@Override public void windowActivated(WindowEvent e) { // update title of parent if (getParentFrame() != null) { getParentFrame().createTitle(getTitle()); } } });
@Override public void actionPerformed(ActionEvent e) { fListener.historySelected(new HistorySelectionEvent(fListener, history)); } });
/** * returns the checked state of the element at the given index * * @param index the index of the element to return the checked state for * @return the checked state of the specifed element */ public boolean getChecked(int index) { return ((CheckBoxListModel) getModel()).getChecked(index); }
/** * Save the currently selected associator output to a file. * * @param name the name of the buffer to save */ protected void saveBuffer(String name) { StringBuffer sb = m_History.getNamedBuffer(name); if (sb != null) { if (m_SaveOut.save(sb)) { m_Log.logMessage("Save successful."); } } }
/** * Show the perspectives toolbar */ @Override public void showPerspectivesToolBar() { if (!isPerspectivesToolBarVisible()) { m_perspectiveManager.setPerspectiveToolBarIsVisible(true); add(m_perspectiveManager.getPerspectiveToolBar(), BorderLayout.NORTH); } }
@Override public void actionPerformed(ActionEvent e) { SaveBuffer m_SaveOut = new SaveBuffer(null, panel); StringBuffer sb = m_history.getNamedBuffer(selectedName); if (sb != null) { m_SaveOut.save(sb); } } });
/** * Constructs a CheckBoxListModel from a Vector and then applies setModel to * it. */ @Override public void setListData(@SuppressWarnings("rawtypes") Vector listData) { setModel(new CheckBoxListModel(listData)); }
@Override public void actionPerformed(ActionEvent e) { fListener.historySelected(new HistorySelectionEvent(fListener, history)); } });
/** * Save the named buffer to a file. * * @param name the name of the buffer to be saved. */ protected void saveBuffer(String name) { StringBuffer sb = m_History.getNamedBuffer(name); if (sb != null) { if (m_SaveOut.save(sb)) { m_Log.logMessage("Save succesful."); } } }
@Override public void actionPerformed(ActionEvent e) { SaveBuffer saveOut = new SaveBuffer(null, panel); StringBuffer sb = m_history.getNamedBuffer(selectedName); if (sb != null) { saveOut.save(sb); } } });
/** * Constructs a CheckBoxListModel from an array of objects and then applies * setModel to it. * * @param listData the data to use */ @Override public void setListData(Object[] listData) { setModel(new CheckBoxListModel(listData)); }
/** * Save the named buffer to a file. * * @param name the name of the buffer to be saved. */ protected void saveBuffer(String name) { StringBuffer sb = m_History.getNamedBuffer(name); if (sb != null) { if (m_SaveOut.save(sb)) { m_Log.logMessage("Save succesful."); } } }
/** * Save the currently selected classifier output to a file. * * @param name the name of the buffer to save */ protected void saveBuffer(String name) { StringBuffer sb = m_History.getNamedBuffer(name); if (sb != null) { if (m_SaveOut.save(sb)) { m_Log.logMessage("Save successful."); } } }