EDOBE XDOM PMML Manuel d'utilisateur Page 41

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 98
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 40
41
The column selection control is a list box of column names with
selection indicating which Columns to Copy. Use the standard
Windows selection mechanism of shift-click to select a range of items
and ctrl-click to change the selection state of a single item.
The standard property dialogs used in Spotfire Miner are singletons.
There is only a single dialog of each type that is reused. This reduces
the memory usage and the time needed to display the dialog. A
ramification of this is that the state of the dialog is not reset when it is
closed. Any initialization to the dialog needs to be done when the
dialog is restored.
The key methods for setting and getting the properties are
restoreProperties() and saveProperties(). The constructor and
getInstance() methods are boilerplate routines, and the
createOptionsPanel() method defines the first page of the dialog.
We override the
onHelp() method to launch a message box with
some help information. While it’s preferable to display a more
descriptive external help file, we use the message box to keep the
example self-contained.
The file
ThirdCopyDialog.java contains:
import com.insightful.miner.*;
import javax.swing.*;
import java.awt.*;
import java.util.Vector;
public class ThirdCopyDialog extends NodeDialog {
// Static instance of the dialog
private static ThirdCopyDialog instance = null;
// Controls
private JList listBox;
private DefaultListModel listModel;
public static ThirdCopyDialog getInstance() {
if (instance == null) {
instance = new ThirdCopyDialog();
}
return(instance);
}
Vue de la page 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 97 98

Commentaires sur ces manuels

Pas de commentaire