private static void writeShowFocusedControl(final ScrolledComposite composite) throws IOException { Boolean newValue = Boolean.valueOf(composite.getShowFocusedControl()); String prop = PROP_SHOW_FOCUSED_CONTROL; if (WidgetLCAUtil.hasChanged(composite, prop, newValue, Boolean.FALSE)) { JSWriter writer = JSWriter.getWriterFor(composite); writer.set("showFocusedControl", newValue); } }
public void preserveValues(final Widget widget) { ScrolledComposite composite = (ScrolledComposite) widget; ControlLCAUtil.preserveValues(composite); IWidgetAdapter adapter = WidgetUtil.getAdapter(composite); adapter.preserve(PROP_BOUNDS, composite.getBounds()); adapter.preserve(PROP_OVERFLOW, getOverflow(composite)); adapter.preserve(PROP_H_BAR_SELECTION, getBarSelection(composite.getHorizontalBar())); adapter.preserve(PROP_V_BAR_SELECTION, getBarSelection(composite.getVerticalBar())); adapter.preserve(Props.SELECTION_LISTENERS, Boolean.valueOf(hasSelectionListener(composite))); adapter.preserve(PROP_SHOW_FOCUSED_CONTROL, Boolean.valueOf(composite.getShowFocusedControl())); WidgetLCAUtil.preserveCustomVariant(composite); }