public class ArgumentComponentManager
extends java.lang.Object
Constructor and Description |
---|
ArgumentComponentManager(MainControl mainControl)
Creates an instance
|
Modifier and Type | Method and Description |
---|---|
void |
addType(ScriptType argumentType,
java.lang.Class<? extends ArgumentComponent> argumentComponentClass)
Calls addType with the name of the given type and the given argument component class
|
void |
addType(java.lang.String[] argumentTypeNames,
ArgumentComponentFactory argumentComponentFactory)
Calls addType for each of the entries of the given array with the given argument component factory
|
void |
addType(java.lang.String[] argumentTypeNames,
java.lang.Class<? extends ArgumentComponent> argumentComponentClass)
Calls addType with each of the entries of the given array with the given argument component class
|
void |
addType(java.lang.String argumentTypeName,
ArgumentComponentFactory argumentComponentFactory)
Registers a new argument component factory and associates it with the given Graphana type
|
void |
addType(java.lang.String argumentTypeName,
java.lang.Class<? extends ArgumentComponent> argumentComponentClass)
Registers the given type key word with the given argument component class.
|
ArgumentComponent |
getArgumentComponent(ScriptType argumentType,
java.awt.Container topParent)
Creates and returns an argument component its class is associated with the given type
|
MainControl |
getMainControl() |
java.lang.String |
openAutoCompleteAssistant(SignatureInterface signature,
java.awt.Component parentComponent)
Opens the call assistant for a call of the operation of the given signature.
|
ArgumentsPanel |
openCallAssistant(Description description,
ArgumentsPanelSettings settings,
java.lang.String title,
ParameterTuple parameters,
java.awt.Component parentComponent,
UpdateArgumentsMode updateMode)
Creates a call assistant according to the given parameters.
|
java.lang.String |
openScriptCallAssistant(ScriptCallSignature scriptCallSignature,
java.awt.Component parentComponent)
Opens the call assistant for a call of the script of the given script signature.
|
public ArgumentComponentManager(MainControl mainControl)
mainControl
- the main control of Graphanapublic void addType(java.lang.String argumentTypeName, ArgumentComponentFactory argumentComponentFactory)
argumentTypeName
- the key of the type to associate withargumentComponentFactory
- the factory to create an argument component whenever a component of the given
type is demandedpublic void addType(java.lang.String[] argumentTypeNames, ArgumentComponentFactory argumentComponentFactory)
public void addType(java.lang.String argumentTypeName, java.lang.Class<? extends ArgumentComponent> argumentComponentClass)
argumentTypeName
- the name of the Graphana type to associate the argument component withargumentComponentClass
- the class of the argument component to registerpublic void addType(java.lang.String[] argumentTypeNames, java.lang.Class<? extends ArgumentComponent> argumentComponentClass)
public void addType(ScriptType argumentType, java.lang.Class<? extends ArgumentComponent> argumentComponentClass)
public ArgumentComponent getArgumentComponent(ScriptType argumentType, java.awt.Container topParent)
argumentType
- the type of the valuetopParent
- the parent into which the component is to be addedpublic ArgumentsPanel openCallAssistant(Description description, ArgumentsPanelSettings settings, java.lang.String title, ParameterTuple parameters, java.awt.Component parentComponent, UpdateArgumentsMode updateMode)
description
- the description of the operation to callsettings
- determines, what the user can do with the created calltitle
- the title of the call assistantparameters
- the parameters of the callparentComponent
- the component into which the panel is to be addedupdateMode
- determines, which type of values are needed when fetching the evaluated callpublic java.lang.String openAutoCompleteAssistant(SignatureInterface signature, java.awt.Component parentComponent)
signature
- the signature holding the parameters to build the call assistantparentComponent
- the component into which the assistant is to be addedpublic java.lang.String openScriptCallAssistant(ScriptCallSignature scriptCallSignature, java.awt.Component parentComponent)
scriptCallSignature
- the signature of the script to callparentComponent
- the component into which the assistant is to be addedpublic MainControl getMainControl()