Search in sources :

Example 1 with BoolButtonModel

use of org.csstudio.opibuilder.widgets.model.BoolButtonModel in project yamcs-studio by yamcs.

the class BoolButtonEditPart method doCreateFigure.

@Override
protected IFigure doCreateFigure() {
    final BoolButtonModel model = getWidgetModel();
    BoolButtonFigure btn = new BoolButtonFigure();
    initializeCommonFigureProperties(btn, model);
    btn.setEffect3D(model.isEffect3D());
    btn.setSquareButton((model.isSquareButton()));
    btn.setShowLED(model.isShowLED());
    return btn;
}
Also used : BoolButtonModel(org.csstudio.opibuilder.widgets.model.BoolButtonModel) BoolButtonFigure(org.csstudio.swt.widgets.figures.BoolButtonFigure)

Aggregations

BoolButtonModel (org.csstudio.opibuilder.widgets.model.BoolButtonModel)1 BoolButtonFigure (org.csstudio.swt.widgets.figures.BoolButtonFigure)1