Examples of MarkedState


Examples of org.apache.myfaces.tobago.model.MarkedState

//        final Object rowData = data.getRowData();
      final TreePath path = data.getPath();

      // marked
      if (isTree) {
        final MarkedState markedState = ((AbstractUITree) data).getMarkedState();
        final boolean oldMarked = markedState.isMarked(path);
        final boolean newMarked = ((Integer) rowIndex).equals(markedIndex);
        if (newMarked != oldMarked) {
//          new TreeMarkedEvent(node, oldValue, newValue).queue();
          if (newMarked) {
            markedState.setMarked(path);
          } else {
            markedState.setMarked(null);
          }
        }
      }

      // expanded
View Full Code Here

Examples of org.apache.myfaces.tobago.model.MarkedState

      if (FacesUtils.hasValueBindingOrValueExpression(this, Attributes.STATE)) {
        final FacesContext facesContext = FacesContext.getCurrentInstance();
        TreeState state = (TreeState)
            FacesUtils.getValueFromValueBindingOrValueExpression(facesContext, this, Attributes.STATE);
        if (state == null) {
          state = new TreeState(new ExpandedState(2), new MarkedState());
          FacesUtils.setValueOfBindingOrExpression(facesContext, state, this, Attributes.STATE);
        }
        return state;
      } else {
        state = new TreeState(new ExpandedState(2), new MarkedState());
        return state;
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.MarkedState

      if (FacesUtils.hasValueBindingOrValueExpression(this, Attributes.STATE)) {
        final FacesContext facesContext = FacesContext.getCurrentInstance();
        TreeState state = (TreeState)
            FacesUtils.getValueFromValueBindingOrValueExpression(facesContext, this, Attributes.STATE);
        if (state == null) {
          state = new TreeState(new ExpandedState(2), new MarkedState());
          FacesUtils.setValueOfBindingOrExpression(facesContext, state, this, Attributes.STATE);
        }
        return state;
      } else {
        state = new TreeState(new ExpandedState(2), new MarkedState());
        return state;
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.MarkedState

      final TreePath path = data.getPath();

      // marked
      if (isTree) {
        final MarkedState markedState = ((AbstractUITree) data).getMarkedState();
        final boolean oldMarked = markedState.isMarked(path);
        final boolean newMarked = ((Integer) rowIndex).equals(markedIndex);
        if (newMarked != oldMarked) {
          if (newMarked) {
            markedState.setMarked(path);
          } else {
            markedState.setMarked((TreePath) null);
          }
        }
      }

      // expanded
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.