Package org.apache.myfaces.trinidad.model

Examples of org.apache.myfaces.trinidad.model.BoundedRangeModel


    Map<String, Object> attrs = component.getAttributes();

    Object modelValue= attrs.get(UIConstants.VALUE_PARAM);
    if (modelValue instanceof BoundedRangeModel)
    {
      BoundedRangeModel model = (BoundedRangeModel) modelValue;
      if (model != null)
      {
        long value = model.getValue();
        long maximum = model.getMaximum();
        if (maximum <= value)
        //pu: This means the background task is complete.
        {
          (new ActionEvent(progressComponent)).queue();
        }
View Full Code Here


    UIXProgress progressComponent =
      (UIXProgress) NodeUtils.getUIComponent(context, node);
    Object modelObject = progressComponent.getValue();
    if (modelObject != null && modelObject instanceof BoundedRangeModel)
    {
      BoundedRangeModel model= (BoundedRangeModel) modelObject;
      //pu: Though these are 'long' types, deal with it as double, so as to
      //  correctly compute percent for values towards the maximum of 'long'.
      double value = model.getValue();
      double maximum = model.getMaximum();
      if (value < 0 || maximum < 0)
      {
        percentComplete = PERCENT_UNKNOWN;
      }
      else
View Full Code Here

    UIXProgress progressComponent =
      (UIXProgress) NodeUtils.getUIComponent(context, node);
    Object modelObject = progressComponent.getValue();
    if (modelObject != null && modelObject instanceof BoundedRangeModel)
    {
      BoundedRangeModel model= (BoundedRangeModel) modelObject;
      //pu: Though these are 'long' types, deal with it as double, so as to
      //  correctly compute percent for values towards the maximum of 'long'.
      double value = model.getValue();
      double maximum = model.getMaximum();
      if (value < 0 || maximum < 0)
      {
        percentComplete = PERCENT_UNKNOWN;
      }
      else
View Full Code Here

    Map<String, Object> attrs = component.getAttributes();

    Object modelValue= attrs.get(UIConstants.VALUE_PARAM);
    if (modelValue instanceof BoundedRangeModel)
    {
      BoundedRangeModel model = (BoundedRangeModel) modelValue;
      if (model != null)
      {
        long value = model.getValue();
        long maximum = model.getMaximum();
        if (maximum <= value)
        //pu: This means the background task is complete.
        {
          (new ActionEvent(progressComponent)).queue();
        }
View Full Code Here

    UIXProgress progressComponent =
      (UIXProgress) NodeUtils.getUIComponent(context, node);
    Object modelObject = progressComponent.getValue();
    if (modelObject != null && modelObject instanceof BoundedRangeModel)
    {
      BoundedRangeModel model= (BoundedRangeModel) modelObject;
      //pu: Though these are 'long' types, deal with it as double, so as to
      //  correctly compute percent for values towards the maximum of 'long'.
      double value = model.getValue();
      double maximum = model.getMaximum();
      if (value < 0 || maximum < 0)
      {
        percentComplete = PERCENT_UNKNOWN;
      }
      else
View Full Code Here

    Map<String, Object> attrs = component.getAttributes();

    Object modelValue= attrs.get(UIConstants.VALUE_PARAM);
    if (modelValue instanceof BoundedRangeModel)
    {
      BoundedRangeModel model = (BoundedRangeModel) modelValue;
      if (model != null)
      {
        long value = model.getValue();
        long maximum = model.getMaximum();
        if (maximum <= value)
        //pu: This means the background task is complete.
        {
          (new ActionEvent(progressComponent)).queue();
        }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.model.BoundedRangeModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.