Package io.openems.edge.app.common.props
Class CommonProps
java.lang.Object
io.openems.edge.app.common.props.CommonProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic final AppDef
<OpenemsApp, Nameable, Type.Parameter.BundleProvider> alias()
Creates aAppDef
for a alias.static final AppDef
<OpenemsApp, Nameable, Type.Parameter.BundleProvider> Creates a defaultAppDef
with theAppDef.translationBundleSupplier
set.static final <APP extends OpenemsApp,
PROP extends Nameable, PARAM extends Type.Parameter.BundleParameter>
AppDef<APP, PROP, PARAM> installationHint
(AppDef.FieldValuesSupplier<APP, PROP, PARAM, String> firstText, AppDef.FieldValuesSupplier<APP, PROP, PARAM, String>... otherTexts) Creates aAppDef
for a installation hint.static final <APP extends OpenemsApp,
PROP extends Nameable, PARAM extends Type.Parameter.BundleParameter>
AppDef<APP, PROP, PARAM> Creates a installation hint to warn the user that the current app is not an official app from the company of this edge.
-
Method Details
-
defaultDef
Creates a defaultAppDef
with theAppDef.translationBundleSupplier
set.- Returns:
- the
AppDef
-
alias
Creates aAppDef
for a alias.- Returns:
- the
AppDef
-
installationHint
@SafeVarargs public static final <APP extends OpenemsApp,PROP extends Nameable, AppDef<APP,PARAM extends Type.Parameter.BundleParameter> PROP, installationHintPARAM> (AppDef.FieldValuesSupplier<APP, PROP, PARAM, String> firstText, AppDef.FieldValuesSupplier<APP, PROP, PARAM, String>... otherTexts) Creates aAppDef
for a installation hint. Only displays the text of the supplier with a checkbox to accept these conditions. Also does not safe the value.- Type Parameters:
APP
- the type of theOpenemsApp
PROP
- the type of theNameable
PARAM
- the type of theType.Parameter
- Parameters:
firstText
- the first text to ensure that there is at least one elementotherTexts
- the additional texts of the conditions to accept- Returns:
- the
AppDef
-
installationHintOfUnofficialApp
public static final <APP extends OpenemsApp,PROP extends Nameable, AppDef<APP,PARAM extends Type.Parameter.BundleParameter> PROP, installationHintOfUnofficialApp()PARAM> Creates a installation hint to warn the user that the current app is not an official app from the company of this edge. This can be used for apps which are in a early beta testing stage.- Type Parameters:
APP
- the type of theOpenemsApp
PROP
- the type of theNameable
PARAM
- the type of theType.Parameter
- Returns:
- the
AppDef
-