Class ResourceUUIDParameterRenderer
java.lang.Object
uno.anahata.asi.swing.agi.message.part.tool.param.ResourceUUIDParameterRenderer
- All Implemented Interfaces:
ParameterRenderer<Object>
A specialized parameter renderer for Resource UUIDs.
This renderer provides a sleek chip showing the Resource Name. It caches the name so it remains visible even if the resource is later unloaded from the context window.
- Author:
- anahata
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ResourceUUIDParameterRenderer. -
Method Summary
Modifier and TypeMethodDescriptionprivate JPanelcreateChip(String resourceUuid) Helper to create a visual JPanel chip representing the resource.Returns the Swing component that performs the rendering.voidinit(AgiPanel agiPanel, AbstractToolCall<?, ?> call, String paramName, Object value) Initializes the renderer with its context.booleanrender()Triggers the rendering logic.voidupdateContent(Object value) Updates the renderer with a new value.
-
Field Details
-
agiPanel
The parent agi panel providing context. -
value
The current object value. -
container
The main UI container.
-
-
Constructor Details
-
ResourceUUIDParameterRenderer
public ResourceUUIDParameterRenderer()Constructs a new ResourceUUIDParameterRenderer.
-
-
Method Details
-
init
Initializes the renderer with its context.- Specified by:
initin interfaceParameterRenderer<Object>- Parameters:
agiPanel- The parent agi panel.call- The tool call being rendered.paramName- The name of the parameter.value- The initial value.
-
getComponent
Returns the Swing component that performs the rendering.- Specified by:
getComponentin interfaceParameterRenderer<Object>- Returns:
- The rendering component.
-
updateContent
Updates the renderer with a new value.- Specified by:
updateContentin interfaceParameterRenderer<Object>- Parameters:
value- The new value to render.
-
render
public boolean render()Triggers the rendering logic.- Specified by:
renderin interfaceParameterRenderer<Object>- Returns:
- True if a visual update occurred.
-
createChip
-

