public class QueryControlView extends QueryViewPart implements PropertyChangeListener
query
Constructor and Description |
---|
QueryControlView() |
Modifier and Type | Method and Description |
---|---|
protected void |
changeRequest(int secondsOffset,
int secondsScale) |
protected void |
clear() |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent) |
void |
propertyChange(PropertyChangeEvent evt) |
void |
setFocus() |
protected void |
setQuery(AbstractQueryBuffer query) |
void |
updateData(int index,
Map<String,List<Double>> values,
List<ValueInformation> valueInformation)
Reports data update
|
void |
updateParameters(QueryParameters parameters,
Set<String> valueTypes)
Reports a change in parameters
|
protected void |
updateRequest() |
void |
updateState(QueryState state)
Updates the state of the query
|
addListener, dispose, getQueryFromSelection, removeListener, setSelection
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
protected void changeRequest(int secondsOffset, int secondsScale)
protected void updateRequest()
protected void setQuery(AbstractQueryBuffer query)
setQuery
in class QueryViewPart
protected void clear()
clear
in class QueryViewPart
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public void updateData(int index, Map<String,List<Double>> values, List<ValueInformation> valueInformation)
QueryListener
All arrays must have the same size.
updateData
in interface QueryListener
index
- index from which the data update starts, must be greater or
equal to zero
and lower than the reported number of entriesvalues
- the values that are updates, must not be null
valueInformation
- the value information for the provided values. must not be
null
public void updateParameters(QueryParameters parameters, Set<String> valueTypes)
QueryListener
updateParameters
in interface QueryListener
parameters
- the new parameters, must not be null
valueTypes
- the new value types to expect, must not be null
or emptypublic void updateState(QueryState state)
QueryListener
updateState
in interface QueryListener
state
- the new statepublic void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.