Skip to content

Commit 88928c8

Browse files
committed
CSSTUDIO-2954 Add informative tooltips to the class Widget.
1 parent bf7cc7d commit 88928c8

File tree

1 file changed

+9
-0
lines changed
  • app/display/model/src/main/java/org/csstudio/display/builder/model

1 file changed

+9
-0
lines changed

app/display/model/src/main/java/org/csstudio/display/builder/model/Widget.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,23 @@ public Widget(final String type, final int default_width, final int default_heig
211211
// -- Mandatory properties --
212212
prelim_properties.add(this.type = propType.createProperty(this, type));
213213
prelim_properties.add(name = propName.createProperty(this, ""));
214+
name.setInformativeTooltip("The name of the widget.");
214215
prelim_properties.add(widget_class = propWidgetClass.createProperty(this, WidgetClassSupport.DEFAULT));
216+
widget_class.setInformativeTooltip("The style class of the widget.");
215217
prelim_properties.add(x = propX.createProperty(this, 0));
218+
x.setInformativeTooltip("The x-coordinate of the widget counted in pixels from the left side of the screen.");
216219
prelim_properties.add(y = propY.createProperty(this, 0));
220+
y.setInformativeTooltip("The y-coordinate of the widget counted in pixels from the top of the screen.");
217221
prelim_properties.add(width = propWidth.createProperty(this, default_width));
222+
width.setInformativeTooltip("The width of the widget in pixels.");
218223
prelim_properties.add(height = propHeight.createProperty(this, default_height));
224+
height.setInformativeTooltip("The height of the widget in pixels.");
219225
prelim_properties.add(actions = propActions.createProperty(this, ActionInfos.EMPTY));
226+
actions.setInformativeTooltip("Actions to execute when the widget is clicked on.");
220227
prelim_properties.add(rules = propRules.createProperty(this, Collections.emptyList()));
228+
rules.setInformativeTooltip("Rules associated with the widget.");
221229
prelim_properties.add(scripts = propScripts.createProperty(this, Collections.emptyList()));
230+
scripts.setInformativeTooltip("Scripts associated with the widget.");
222231

223232
// -- Widget-specific properties --
224233
defineProperties(prelim_properties);

0 commit comments

Comments
 (0)