use of org.csstudio.opibuilder.properties.IntegerProperty in project yamcs-studio by yamcs.
the class AbstractBoolControlModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new BooleanProperty(PROP_TOGGLE_BUTTON, "Toggle Button", WidgetPropertyCategory.Behavior, DEFAULT_TOGGLE_BUTTON));
addProperty(new ComboProperty(PROP_CONFIRM_DIALOG, "Show Confirm Dialog", WidgetPropertyCategory.Behavior, ShowConfirmDialog.stringValues(), 0));
addProperty(new StringProperty(PROP_PASSWORD, "Password", WidgetPropertyCategory.Behavior, ""));
addProperty(new StringProperty(PROP_CONFIRM_TIP, "Confirm Message", WidgetPropertyCategory.Behavior, DEFAULT_CONFIRM_TIP));
addProperty(new IntegerProperty(PROP_PUSH_ACTION_INDEX, "Push Action Index", WidgetPropertyCategory.Behavior, 0, 0, Integer.MAX_VALUE));
addProperty(new IntegerProperty(PROP_RELEASED_ACTION_INDEX, "Release Action Index", WidgetPropertyCategory.Behavior, 0, 0, Integer.MAX_VALUE));
}
use of org.csstudio.opibuilder.properties.IntegerProperty in project yamcs-studio by yamcs.
the class AbstractScaledWidgetModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent Background", WidgetPropertyCategory.Display, true));
addProperty(new DoubleProperty(PROP_MIN, "Minimum", WidgetPropertyCategory.Behavior, DEFAULT_MIN));
addProperty(new DoubleProperty(PROP_MAX, "Maximum", WidgetPropertyCategory.Behavior, DEFAULT_MAX));
addProperty(new IntegerProperty(PROP_MAJOR_TICK_STEP_HINT, "Major Tick Step Hint", WidgetPropertyCategory.Display, DEFAULT_MAJOR_TICK_STEP_HINT, 1, 1000));
addProperty(new BooleanProperty(PROP_SHOW_MINOR_TICKS, "Show Minor Ticks", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_SCALE, "Show Scale", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_LOG_SCALE, "Log Scale", WidgetPropertyCategory.Display, false));
addProperty(new FontProperty(PROP_SCALE_FONT, "Scale Font", WidgetPropertyCategory.Display, MediaService.DEFAULT_FONT));
addProperty(new StringProperty(PROP_SCALE_FORMAT, "Scale Format", WidgetPropertyCategory.Display, // $NON-NLS-1$
""));
addProperty(new StringProperty(PROP_VALUE_LABEL_FORMAT, "Value Label Format", WidgetPropertyCategory.Display, // $NON-NLS-1$
""));
}
use of org.csstudio.opibuilder.properties.IntegerProperty in project yamcs-studio by yamcs.
the class ArcModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
removeProperty(PROP_FILL_LEVEL);
removeProperty(PROP_HORIZONTAL_FILL);
removeProperty(PROP_TRANSPARENT);
removeProperty(PROP_LINE_COLOR);
addProperty(new BooleanProperty(PROP_FILL, "Fill", WidgetPropertyCategory.Display, false));
addProperty(new IntegerProperty(PROP_START_ANGLE, "Start Angle", WidgetPropertyCategory.Display, 0));
addProperty(new IntegerProperty(PROP_TOTAL_ANGLE, "Total Angle", WidgetPropertyCategory.Display, 90));
}
use of org.csstudio.opibuilder.properties.IntegerProperty in project yamcs-studio by yamcs.
the class ArrayModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new IntegerProperty(PROP_ARRAY_LENGTH, "Array Length", WidgetPropertyCategory.Behavior, 10, 0, Integer.MAX_VALUE));
addProperty(new IntegerProperty(PROP_SPINNER_WIDTH, "Spinner Width", WidgetPropertyCategory.Display, 40, 0, 1000));
addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_SHOW_SPINNER, "Show Spinner", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_SCROLLBAR, "Show Scrollbar", WidgetPropertyCategory.Display, true));
addProperty(new IntegerProperty(PROP_VISIBLE_ELEMENTS_COUNT, "Visible Elements Count", WidgetPropertyCategory.Display, 1, 0, 1000));
addProperty(new ComboProperty(PROP_DATA_TYPE, "Data Type", WidgetPropertyCategory.Behavior, ArrayDataType.stringValues(), 0));
setPropertyVisibleAndSavable(PROP_VISIBLE_ELEMENTS_COUNT, false, true);
getProperty(PROP_VISIBLE_ELEMENTS_COUNT).addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (getChildren().size() < 1)
return;
AbstractWidgetModel child = getChildren().get(0);
removeAllChildren();
addChild(child);
}
});
}
use of org.csstudio.opibuilder.properties.IntegerProperty in project yamcs-studio by yamcs.
the class ByteMonitorModel method configureProperties.
/* (non-Javadoc)
* @see org.csstudio.opibuilder.model.AbstractWidgetModel#configureProperties()
*/
@Override
protected void configureProperties() {
addProperty(new IntegerProperty(PROP_NUM_BITS, "Number of Bits", WidgetPropertyCategory.Display, 16, 0, 64));
addProperty(new IntegerProperty(PROP_START_BIT, "Start Bit", WidgetPropertyCategory.Display, 0, 0, 64));
addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_BIT_REVERSE, "Reverse Bits", WidgetPropertyCategory.Display, false));
addProperty(new ColorProperty(PROP_ON_COLOR, "On Color", WidgetPropertyCategory.Display, DEFAULT_ON_COLOR));
addProperty(new ColorProperty(PROP_OFF_COLOR, "Off Color", WidgetPropertyCategory.Display, DEFAULT_OFF_COLOR));
addProperty(new BooleanProperty(PROP_SQUARE_LED, "Square LED", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
addProperty(new StringListProperty(PROP_LABELS, "Labels", WidgetPropertyCategory.Display, new ArrayList<String>()));
addProperty(new IntegerProperty(PROP_LED_BORDER, "LED border", WidgetPropertyCategory.Display, DEFAULT_LED_BORDER));
addProperty(new ColorProperty(PROP_LED_BORDER_COLOR, "LED border color", WidgetPropertyCategory.Display, DEFAULT_LED_BORDER_COLOR.getRGB()));
addProperty(new BooleanProperty(PROP_PACK_LEDS, "Pack LEDs", WidgetPropertyCategory.Display, false));
}
Aggregations