public class ArgumentComponentComboBox extends ArgumentComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComboBox |
comboBox |
protected MainControl |
mainControl |
CL_DEFAULT, CL_ERROR, DEFAULT_FONT, DEFAULT_INNER_BORDER, DEFAULT_TEXT_BORDER, markIfError
Constructor and Description |
---|
ArgumentComponentComboBox() |
Modifier and Type | Method and Description |
---|---|
ExecutionReturn |
evaluate()
Evaluates the user input and creates a respective graphana value
|
javax.swing.JComboBox |
getComboBox() |
java.awt.Component |
getComponent()
Returns the topmost component to add it into a GUI
|
protected java.lang.String |
getText() |
void |
init(MainControl mainControl,
ScriptType scriptType,
ArgumentComponentManager argumentComponentManager) |
void |
setToolTip(java.lang.String tooltip)
Sets the tooltip of the component and eventually of sub components
|
void |
setValue(ExecutionReturn value)
Sets the value within the component to the given value
|
addKeyListener, checkAndExecute, error, evaluateToString, getComponentHeight, getComponentMinWidth, getInnerComponent, getTopParent, init, resetToolTip, setComponentColor, setMarkIfError, setParameterName, throwError, throwError, throwStringError, throwStringError, unmark
protected javax.swing.JComboBox comboBox
protected MainControl mainControl
public void init(MainControl mainControl, ScriptType scriptType, ArgumentComponentManager argumentComponentManager)
init
in class ArgumentComponent
public java.awt.Component getComponent()
ArgumentComponent
getComponent
in class ArgumentComponent
public javax.swing.JComboBox getComboBox()
public void setValue(ExecutionReturn value)
ArgumentComponent
setValue
in class ArgumentComponent
protected java.lang.String getText()
public ExecutionReturn evaluate()
ArgumentComponent
evaluate
in class ArgumentComponent
public void setToolTip(java.lang.String tooltip)
ArgumentComponent
setToolTip
in class ArgumentComponent