Search in sources :

Example 6 with ActionsProperty

use of org.csstudio.opibuilder.properties.ActionsProperty in project yamcs-studio by yamcs.

the class BoolSwitchModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
    removeProperty(PROP_ACTIONS);
    addProperty(new ActionsProperty(PROP_ACTIONS, "Actions", WidgetPropertyCategory.Behavior, false));
// setPropertyDescription(PROP_PVNAME, "Readback PV");
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ActionsProperty(org.csstudio.opibuilder.properties.ActionsProperty)

Example 7 with ActionsProperty

use of org.csstudio.opibuilder.properties.ActionsProperty in project yamcs-studio by yamcs.

the class ImageBoolButtonModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new FilePathProperty(PROP_ON_IMAGE, "On Image", WidgetPropertyCategory.Image, new Path(""), FILE_EXTENSIONS));
    addProperty(new FilePathProperty(PROP_OFF_IMAGE, "Off Image", WidgetPropertyCategory.Image, new Path(""), FILE_EXTENSIONS));
    addProperty(new BooleanProperty(PROP_STRETCH, "Stretch to Fit", WidgetPropertyCategory.Image, false));
    addProperty(new BooleanProperty(PROP_AUTOSIZE, "Auto Size", WidgetPropertyCategory.Image, true));
    addProperty(new BooleanProperty(PROP_NO_ANIMATION, "No Animation", WidgetPropertyCategory.Image, false));
    addProperty(new BooleanProperty(PROP_ALIGN_TO_NEAREST_SECOND, "Animation aligned to the nearest second", WidgetPropertyCategory.Image, false));
    removeProperty(PROP_ACTIONS);
    addProperty(new ActionsProperty(PROP_ACTIONS, "Actions", WidgetPropertyCategory.Behavior, false));
    setPropertyVisible(PROP_ON_COLOR, false);
    setPropertyVisible(PROP_OFF_COLOR, false);
    FigureTransparencyHelper.addProperty(this);
}
Also used : IPath(org.eclipse.core.runtime.IPath) Path(org.eclipse.core.runtime.Path) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ActionsProperty(org.csstudio.opibuilder.properties.ActionsProperty) FilePathProperty(org.csstudio.opibuilder.properties.FilePathProperty)

Aggregations

ActionsProperty (org.csstudio.opibuilder.properties.ActionsProperty)7 BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)7 IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)3 StringProperty (org.csstudio.opibuilder.properties.StringProperty)3 ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)2 ComplexDataProperty (org.csstudio.opibuilder.properties.ComplexDataProperty)2 FilePathProperty (org.csstudio.opibuilder.properties.FilePathProperty)2 IPath (org.eclipse.core.runtime.IPath)2 Path (org.eclipse.core.runtime.Path)2 PropertyChangeEvent (java.beans.PropertyChangeEvent)1 PropertyChangeListener (java.beans.PropertyChangeListener)1 UID (java.rmi.server.UID)1 DisplayScaleData (org.csstudio.opibuilder.datadefinition.DisplayScaleData)1 WidgetScaleData (org.csstudio.opibuilder.datadefinition.WidgetScaleData)1 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)1 DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)1 FontProperty (org.csstudio.opibuilder.properties.FontProperty)1 RulesProperty (org.csstudio.opibuilder.properties.RulesProperty)1 ScriptProperty (org.csstudio.opibuilder.properties.ScriptProperty)1 UnchangableStringProperty (org.csstudio.opibuilder.properties.UnchangableStringProperty)1