Interface IPromptQueryConfig_DisplayResolution
-
public interface IPromptQueryConfig_DisplayResolutionMixin for aprompt query configuration modelthat allows the user to define the resolution of generated image or video files, such as e.g. 512x512 or 256x256. It is up to implementations to define which resolutions are supported, and what their identifiers are.Use of this mixin is optional, but ensures a consistent name for the property. When different prompt service handlers use the same property name, switching between different prompt service handlers preserves the configured data.
See also the
<xp:displayResolution/>Faces component from thehttp://www.xima.de/taglib/xfc/promptnamespace, which provides a user interface for editing the data defined by this mixin.- Since:
- 8.5.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_DISPLAY_RESOLUTIONThe name of the display resolution attribute.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDisplayResolution()Gets the resolution to use for generated files, in the format (width)x(height), such as e.g. 256x256 or 512x512.voidsetDisplayResolution(String displayResolution)Sets the resolution to use for generated files, in the format (width)x(height), such as e.g. 256x256 or 512x512.
-
-
-
Field Detail
-
ATTR_DISPLAY_RESOLUTION
static final String ATTR_DISPLAY_RESOLUTION
The name of the display resolution attribute. If you implement a custom serialization / deserialization, use this name for the attribute to increase compatibility with other prompt service handlers.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDisplayResolution
String getDisplayResolution()
Gets the resolution to use for generated files, in the format (width)x(height), such as e.g. 256x256 or 512x512.- Returns:
- The display resolution.
-
setDisplayResolution
void setDisplayResolution(String displayResolution)
Sets the resolution to use for generated files, in the format (width)x(height), such as e.g. 256x256 or 512x512.- Parameters:
displayResolution- The display resolution.
-
-