Ejemplo n.º 1
0
 public void notifyChange(
     IExpression expression, IContext context, String newValue, String oldValue) {
   try {
     ISliderWidgetFeature feature = xidget.getFeature(ISliderWidgetFeature.class);
     feature.setPrecision(Integer.parseInt(newValue));
   } catch (Exception e) {
   }
 }
Ejemplo n.º 2
0
 public void notifyValue(
     IExpression expression,
     IContext[] contexts,
     IModelObject object,
     Object newValue,
     Object oldValue) {
   if (object == node) {
     ISliderWidgetFeature feature = xidget.getFeature(ISliderWidgetFeature.class);
     feature.setPrecision(Xlate.get(object, 1));
   }
 }
Ejemplo n.º 3
0
 public void notifyChange(
     IExpression expression, IContext context, double newValue, double oldValue) {
   ISliderWidgetFeature feature = xidget.getFeature(ISliderWidgetFeature.class);
   feature.setPrecision((int) newValue);
 }
Ejemplo n.º 4
0
 public void notifyRemove(IExpression expression, IContext context, List<IModelObject> nodes) {
   node = expression.queryFirst(context);
   ISliderWidgetFeature feature = xidget.getFeature(ISliderWidgetFeature.class);
   feature.setPrecision(Xlate.get(node, 1));
 }
Ejemplo n.º 5
0
 public void notifyAdd(IExpression expression, IContext context, List<IModelObject> nodes) {
   node = nodes.get(0);
   ISliderWidgetFeature feature = xidget.getFeature(ISliderWidgetFeature.class);
   feature.setPrecision(Xlate.get(node, 1));
 }