Download data/copilotj/plugin/awt/component/text_area_node.py from introvoyz045/CopilotJ: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/datasets/introvoyz045/CopilotJ/resolve/main/data/copilotj/plugin/awt/component/text_area_node.py
- Command line
-
hf download hf://datasets/introvoyz045/CopilotJ/data/copilotj/plugin/awt/component/text_area_node.py
-
curl -L -o text_area_node.py https://huggingface.co/datasets/introvoyz045/CopilotJ/resolve/main/data/copilotj/plugin/awt/component/text_area_node.py
612 Bytes
| # SPDX-FileCopyrightText: Copyright contributors to the CopilotJ project. | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| from typing import Literal | |
| from copilotj.plugin.awt._base import ActionResponse, ComponentBase, str_or_empty | |
| __all__ = ["TextAreaNode", "TextAreaSetTextResponse"] | |
| class TextAreaNode(ComponentBase[Literal["java.awt.TextArea"]]): | |
| text: str | None # text can be null if component.getText() is null | |
| def _describe_one_line(self) -> str: | |
| return f"TextArea: text={str_or_empty(self.text)}" | |
| type TextAreaSetTextResponse = ActionResponse[Literal["java.awt.TextArea.setText"], None] | |