|
S-PLUS Connect/Java v1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.insightful.controls.SplusLabelBox
com.insightful.controls.SplusComboBox
com.insightful.splus.SplusDataSetComboBox
Combo box listing S-PLUS data sets. Queries the S-PLUS engine for a list of objects extending data.frame. Keeps a list of the columns in the selected data.frame, and updates this list when the selection changes. Updates the option lists of registered SplusDataColumnComboBox and SplusDataColumnListBox objects when the column list changes.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
SplusDataSetComboBox()
Create a combo box labeled "Data Set". |
|
SplusDataSetComboBox(String text)
Create a combo box with the specified label. |
|
SplusDataSetComboBox(String text,
char mnemonic)
Create a combo box with the specified label and mnemonic. |
|
SplusDataSetComboBox(String text,
int mnemonic)
Create a combo box with the specified label and mnemonic. |
Method Summary | |
String[] |
getColumnList()
Get the stashed column names for the current data set. |
static String |
getCurrentDataSet()
Get the "current data set". |
static String[] |
getDataSetList()
Get the names of all objects inheriting from data.frame in the first S-PLUS database. |
void |
registerColumnControl(SplusControlMethods control)
Register a control whose option list should be the column names of the data set selected in this combo box. |
static void |
updateDataSetList()
Query the engine to refresh the list of data.frames. |
Methods inherited from class com.insightful.controls.SplusComboBox |
addActionListener, addItemListener, getActionCommand, getAppend, getOptionList, getPrepend, getSelectedIndex, getValue, isEditable, isEnabled, setActionCommand, setAppend, setEditable, setEnabled, setOptionList, setPrepend, setSelectedIndex, setValue |
Methods inherited from class com.insightful.controls.SplusLabelBox |
getMnemonic, getText, setActionControl, setLabelEnabled, setLabelFor, setMnemonic, setMnemonic, setText |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.insightful.controls.SplusControlMethods |
getMnemonic, getText, setMnemonic, setMnemonic, setText |
Constructor Detail |
public SplusDataSetComboBox()
public SplusDataSetComboBox(String text, char mnemonic)
public SplusDataSetComboBox(String text, int mnemonic)
public SplusDataSetComboBox(String text)
Method Detail |
public static final String getCurrentDataSet()
public static final String[] getDataSetList()
public static final void updateDataSetList()
public String[] getColumnList()
getColumnList
in interface SplusDataColumnListProvider
public void registerColumnControl(SplusControlMethods control)
We maintain a Vector of SplusDataColumnListBox and similar controls registered as corresponding to this SplusDataSetComboBox. When the data set is changed we call setOptionList() for these controls to reflect the set of columns in the new data set.
This mechanism is used rather than just having the other controls be listeners so that we can obtain the list of column names once and reliably update this.columnList before telling the controls to refresh their option lists.
registerColumnControl
in interface SplusDataColumnListProvider
|
S-PLUS Connect/Java v1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |