Package org.richfaces.model.selection

Examples of org.richfaces.model.selection.Selection


        // state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));
      Object savedKey = table.getRowKey();

        final TableHolder holder = new TableHolder(table);

        final Selection gridSelection = table.getSelection() == null ? new SimpleSelection()
                : table.getSelection();
        final ClientSelection clientSelection = new ClientSelection();

        table.walk(context, new DataVisitor() {
            public void process(FacesContext context, Object rowKey,
                    Object argument) throws IOException {

                // TableHolder holder = (TableHolder) argument;

                if (gridSelection.isSelected(rowKey)) {

                    int i = holder.getRowCounter();

                    clientSelection.addIndex(i);
                }
View Full Code Here


  private void encodeSelection(FacesContext context, final UIScrollableDataTable grid) throws IOException {
    final ScrollableDataTableRendererState state = ScrollableDataTableRendererState.createState(context, grid);
   
    state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));
   
    final Selection gridSelection =
      grid.getSelection() == null ?
          new SimpleSelection() :
            grid.getSelection();
    final ClientSelection clientSelection = new ClientSelection();
   
    grid.walk(context,
      new DataVisitor() {
        public void process(FacesContext context, Object rowKey,
            Object argument) throws IOException {
       
          if (gridSelection.isSelected(rowKey)) {

            int i = state.getRowIndex();
           
            clientSelection.addIndex(i);
          }
View Full Code Here

  if (this._selection != null) {
    return this._selection;
  }
  ValueExpression ve = getValueExpression("selection");
  if (ve != null) {
      Selection value = null;
     
      try {
      value = (Selection) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

  if (this._selection != null) {
    return this._selection;
  }
  ValueExpression ve = getValueExpression("selection");
  if (ve != null) {
      Selection value = null;
     
      try {
      value = (Selection) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

  if (this._selection != null) {
    return this._selection;
  }
  ValueExpression ve = getValueExpression("selection");
  if (ve != null) {
      Selection value = null;
     
      try {
      value = (Selection) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

  if (this._selection != null) {
    return this._selection;
  }
  ValueExpression ve = getValueExpression("selection");
  if (ve != null) {
      Selection value = null;
     
      try {
      value = (Selection) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

  private void encodeSelection(FacesContext context, final UIScrollableDataTable grid) throws IOException {
    final ScrollableDataTableRendererState state = ScrollableDataTableRendererState.createState(context, grid);
   
    state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));
   
    final Selection gridSelection =
      grid.getSelection() == null ?
          new SimpleSelection() :
            grid.getSelection();
    final ClientSelection clientSelection = new ClientSelection();
   
    grid.walk(context,
      new DataVisitor() {
        public void process(FacesContext context, Object rowKey,
            Object argument) throws IOException {
       
          if (gridSelection.isSelected(rowKey)) {

            int i = state.getRowIndex();
           
            clientSelection.addIndex(i);
          }
View Full Code Here

  if (this._selection != null) {
    return this._selection;
  }
  ValueExpression ve = getValueExpression("selection");
  if (ve != null) {
      Selection value = null;
     
      try {
      value = (Selection) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

  if (this._selection != null) {
    return this._selection;
  }
  ValueExpression ve = getValueExpression("selection");
  if (ve != null) {
      Selection value = null;
     
      try {
      value = (Selection) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

        // ScrollableDataTableRendererState.createState(context, grid);
        // state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));

        final TableHolder holder = new TableHolder(table);

        final Selection gridSelection = table.getSelection() == null ? new SimpleSelection()
                : table.getSelection();
        final ClientSelection clientSelection = new ClientSelection();

        table.walk(context, new DataVisitor() {
            public void process(FacesContext context, Object rowKey,
                    Object argument) throws IOException {

                // TableHolder holder = (TableHolder) argument;

                if (gridSelection.isSelected(rowKey)) {

                    int i = holder.getRowCounter();

                    clientSelection.addIndex(i);
                }
View Full Code Here

TOP

Related Classes of org.richfaces.model.selection.Selection

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.