|
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.SplusTimeSeriesComboBox
A variation on SplusDataSetComboBox for "timeSeries" objects. It varies from SplusDataSetComboBox in a few ways:
+ The default prompt is "Time Series Data".
+ There's no concept of a current timeSeries object on initialization.
+ The list of objects is always updated when the control is created. Since there's usually only one of these controls in a dialog, we don't worry about multiple such calls per dialog launch.
+ The query is for "timeSeries" objects.
+ Column names are obtained with the query "names(seriesData(obj))".
This is a separate class rather than an extension of SplusDataSetComboBox because the static dataSetList would be corrupted for "data.frame" controls if we stuck "timeSeries" object names in it.
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 | |
SplusTimeSeriesComboBox()
Create the combo box labeled "Time Series Data". |
|
SplusTimeSeriesComboBox(String text)
Create the combo box with the specified label. |
|
SplusTimeSeriesComboBox(String text,
char mnemonic)
Create the combo box with the specified label and mnemonic. |
|
SplusTimeSeriesComboBox(String text,
int mnemonic)
Create the combo box with the specified label and mnemonic. |
Method Summary | |
String[] |
getColumnList()
Get the list of column names. |
void |
registerColumnControl(SplusControlMethods control)
Register a control whose option list should be the column names of the timeSeries object selected in this combo box. |
static void |
updateDataSetList()
Update the list of timeSeries objects. |
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 SplusTimeSeriesComboBox()
public SplusTimeSeriesComboBox(String text, char mnemonic)
public SplusTimeSeriesComboBox(String text, int mnemonic)
public SplusTimeSeriesComboBox(String text)
Method Detail |
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 SplusTimeSeriesComboBox. When the selection is changed we call setOptionList() for these controls to reflect the set of columns in the new timeSeries object.
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 |