use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class SpinnerModel method configureProperties.
@Override
protected void configureProperties() {
pvModel = true;
super.configureProperties();
removeProperty(LabelModel.PROP_AUTOSIZE);
removeProperty(LabelModel.PROP_SHOW_SCROLLBAR);
removeProperty(LabelModel.PROP_WRAP_WORDS);
setPropertyVisible(LabelModel.PROP_TEXT, false);
addProperty(new DoubleProperty(PROP_MIN, "Minimum", WidgetPropertyCategory.Behavior, DEFAULT_MIN));
addProperty(new DoubleProperty(PROP_MAX, "Maximum", WidgetPropertyCategory.Behavior, DEFAULT_MAX));
addProperty(new DoubleProperty(PROP_STEP_INCREMENT, "Step Increment", WidgetPropertyCategory.Behavior, DEFAULT_STEP_INCREMENT), true);
addProperty(new DoubleProperty(PROP_PAGE_INCREMENT, "Page Increment", WidgetPropertyCategory.Behavior, DEFAULT_PAGE_INCREMENT), true);
addProperty(new BooleanProperty(PROP_LIMITS_FROM_PV, "Limits from PV", WidgetPropertyCategory.Behavior, true));
addProperty(new ComboProperty(PROP_FORMAT, "Format", WidgetPropertyCategory.Display, NumericFormatType.stringValues(), 0));
addProperty(new IntegerProperty(PROP_PRECISION, "Precision", WidgetPropertyCategory.Display, 3, 0, 100));
addProperty(new BooleanProperty(PROP_PRECISION_FROM_PV, "Precision from PV", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_BUTTONS_ON_LEFT, "Buttons on Left", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_HORIZONTAL_BUTTONS_LAYOUT, "Horizontal Buttons Layout", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_SHOW_TEXT, "Show text", WidgetPropertyCategory.Display, true));
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class TabModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new IntegerProperty(PROP_TAB_COUNT, "Tab Count", WidgetPropertyCategory.Behavior, 1, 1, MAX_TABS_AMOUNT));
addProperty(new BooleanProperty(PROP_HORIZONTAL_TABS, "Horizontal Tabs", WidgetPropertyCategory.Display, true));
addProperty(new IntegerProperty(PROP_ACTIVE_TAB, "Active Tab", WidgetPropertyCategory.Display, 0, 0, MAX_TABS_AMOUNT - 1));
addProperty(new IntegerProperty(PROP_MINIMUM_TAB_HEIGHT, "Minimum Tab Height", WidgetPropertyCategory.Display, 10, 10, 1000));
setPropertyVisible(PROP_FONT, false);
addTabsProperties();
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class TableModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new BooleanProperty(PROP_EDITABLE, "Editable", WidgetPropertyCategory.Behavior, true));
StringTableProperty contentProperty = new StringTableProperty(PROP_DEFAULT_CONTENT, "Default Content", WidgetPropertyCategory.Display, new String[][] { { "" } }, new String[] { "" });
addProperty(contentProperty);
String[] dropDownOptions = new String[org.csstudio.swt.widgets.natives.SpreadSheetTable.CellEditorType.values().length];
for (int i = 0; i < dropDownOptions.length; i++) dropDownOptions[i] = org.csstudio.swt.widgets.natives.SpreadSheetTable.CellEditorType.values()[i].name();
StringTableProperty headersProperty = new StringTableProperty(PROP_COLUMN_HEADERS, "Column Headers", WidgetPropertyCategory.Display, new String[0][0], new String[] { "Column Title", "Column Width", "Editable", "CellEditor" }, new CellEditorType[] { CellEditorType.TEXT, CellEditorType.TEXT, CellEditorType.CHECKBOX, CellEditorType.DROPDOWN }, new Object[] { null, null, new String[] { "Yes", "No" }, dropDownOptions });
addProperty(headersProperty);
IntegerProperty columnsCountProperty = new IntegerProperty(PROP_COLUMNS_COUNT, "Columns Count", WidgetPropertyCategory.Display, 1, 1, 10000);
addProperty(columnsCountProperty);
addProperty(new BooleanProperty(PROP_COLUMN_HEADER_VISIBLE, "Column Header Visible", WidgetPropertyCategory.Display, true));
headersProperty.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
updateContentPropertyTitles();
}
});
columnsCountProperty.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
updateContentPropertyTitles();
}
});
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class TextUpdateModel method configureProperties.
@Override
protected void configureProperties() {
pvModel = true;
super.configureProperties();
WidgetPropertyCategory category = new WidgetPropertyCategory() {
@Override
public String toString() {
return "Format";
}
};
addProperty(new ComboProperty(PROP_FORMAT_TYPE, "Format Type", category, FormatEnum.stringValues(), 0));
addProperty(new IntegerProperty(PROP_PRECISION, "Precision", category, 0, 0, 100));
addProperty(new BooleanProperty(PROP_PRECISION_FROM_DB, "Precision from PV", category, true));
addProperty(new BooleanProperty(PROP_SHOW_UNITS, "Show Units", category, true));
addProperty(new DoubleProperty(PROP_ROTATION, "Rotation Angle", WidgetPropertyCategory.Display, 0, 0, 360));
setPropertyValue(PROP_TEXT, "######");
setPropertyValue(PROP_ALIGN_H, 0);
setPropertyValue(PROP_ALIGN_V, 1);
setPropertyVisible(PROP_SHOW_SCROLLBAR, false);
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class ThumbWheelModel method configureProperties.
/**
* {@inheritDoc}
*/
@Override
protected void configureProperties() {
// addProperty(new DoubleProperty(PROP_VALUE, "Value",
// WidgetPropertyCategory.Behavior, 0));
addProperty(new DoubleProperty(PROP_MIN, "Minimum", WidgetPropertyCategory.Behavior, DEFAULT_MIN));
addProperty(new DoubleProperty(PROP_MAX, "Maximum", WidgetPropertyCategory.Behavior, DEFAULT_MAX));
addProperty(new IntegerProperty(PROP_INTEGER_DIGITS_PART, "Integer Digits", WidgetPropertyCategory.Behavior, DEFAULT_INTEGER_DIGITS));
addProperty(new IntegerProperty(PROP_DECIMAL_DIGITS_PART, "Decimal Digits", WidgetPropertyCategory.Behavior, DEFAULT_DECIMAL_DIGITS));
addProperty(new ColorProperty(PROP_INTERNAL_FRAME_COLOR, "Internal Frame Color", WidgetPropertyCategory.Display, ColorConstants.black.getRGB()));
addProperty(new ColorProperty(PROP_INTERNAL_FOCUSED_FRAME_COLOR, "Focused Frame Color", WidgetPropertyCategory.Display, ColorConstants.blue.getRGB()));
addProperty(new IntegerProperty(PROP_INTERNAL_FRAME_THICKNESS, "Internal Frame Thickness", WidgetPropertyCategory.Display, 1));
addProperty(new BooleanProperty(PROP_LIMITS_FROM_PV, "Limits From PV", WidgetPropertyCategory.Behavior, false));
addProperty(new BooleanProperty(PROP_SHOW_BUTTONS, "Show Buttons", WidgetPropertyCategory.Display, true));
}
Aggregations