예제 #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) {
   }
 }
예제 #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));
   }
 }
예제 #3
0
 public void notifyChange(
     IExpression expression, IContext context, double newValue, double oldValue) {
   ISliderWidgetFeature feature = xidget.getFeature(ISliderWidgetFeature.class);
   feature.setPrecision((int) newValue);
 }
예제 #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));
 }
예제 #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));
 }