Search in sources :

Example 1 with AbstractWebBrowserFigure

use of org.csstudio.opibuilder.widgets.figures.AbstractWebBrowserFigure in project yamcs-studio by yamcs.

the class WebBrowserEditPart method registerPropertyChangeHandlers.

/**
 * {@inheritDoc}
 */
@Override
protected void registerPropertyChangeHandlers() {
    // URL
    IWidgetPropertyChangeHandler urlHandler = new IWidgetPropertyChangeHandler() {

        @Override
        public boolean handleChange(final Object oldValue, final Object newValue, final IFigure refreshableFigure) {
            ((AbstractWebBrowserFigure<?>) refreshableFigure).setUrl((String) newValue);
            return false;
        }
    };
    setPropertyChangeHandler(WebBrowserModel.PROP_URL, urlHandler);
}
Also used : AbstractWebBrowserFigure(org.csstudio.opibuilder.widgets.figures.AbstractWebBrowserFigure) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) IFigure(org.eclipse.draw2d.IFigure)

Aggregations

IWidgetPropertyChangeHandler (org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler)1 AbstractWebBrowserFigure (org.csstudio.opibuilder.widgets.figures.AbstractWebBrowserFigure)1 IFigure (org.eclipse.draw2d.IFigure)1