Ticket #1397 (closed enhancement: fixed)
PopupView component
| Reported by: | Joonas Lehtinen | Owned by: | Joonas Lehtinen |
|---|---|---|---|
| Priority: | major | Milestone: | User Interface Library 5.3.0 RC |
| Component: | Server-side framework | Version: | trunk |
| Keywords: | Cc: | ||
| Known Issue description: | |||
| Hours estimate: | Deadline (dd.mm.yyyy): | ||
| Known Issue version (since): | Known Issue title: | ||
| Hours done: | Depends to: | ||
| Affects documentation: | no | ||
| Known Issue workaround: | |||
| Affects release notes: | yes | Contract: | |
Description
We should have simple wrapper component for editing a property value in such way that the value is shown as plain text normally and when a user clicks the text, an more advanced editor pops up. This would be really nice for example in tables.
(dummy draft-level) API proposal:
editor = new PopupEditor(Property thatIsShownOrEdited, Property.Editor thatIsShownInEditorMode)
By default the property value is shown using toString. if this is not ok, one could define better formatter for the value.
editor.setPropertyValueFormatter(new PopupEditor.PropertyValueFormatter() {
String getPropertyValueAsHTML(Object value)
});
Change History
Note: See
TracTickets for help on using
tickets.
