Examples of DataComponentState


Examples of org.ajax4jsf.model.DataComponentState

*/
public abstract class SequenceDataAdaptor extends UIDataAdaptor {

  protected DataComponentState createComponentState() {
    // Create component state based on this instance.
    return new DataComponentState(){
 
      public Range getRange() {
        return new SequenceRange(getFirst(),getRows());
      }
    };
View Full Code Here

Examples of org.ajax4jsf.model.DataComponentState

 
  public void broadcast(FacesEvent event) throws AbortProcessingException {
    super.broadcast(event);
   
    DataComponentState componentState = getComponentState();
    if (componentState instanceof FacesListener) {
      FacesListener facesListener = (FacesListener) componentState;

      if (event.isAppropriateListener(facesListener)) {
        // we can safely open/close nodes here
View Full Code Here

Examples of org.ajax4jsf.model.DataComponentState

 
  public void broadcast(FacesEvent event) throws AbortProcessingException {
    super.broadcast(event);
   
    DataComponentState componentState = getComponentState();
    if (componentState instanceof FacesListener) {
      FacesListener facesListener = (FacesListener) componentState;

      if (event.isAppropriateListener(facesListener)) {
        // we can safely open/close nodes here
View Full Code Here

Examples of org.ajax4jsf.model.DataComponentState

    this.responseData = responseData;
  }
 
  protected DataComponentState createComponentState() {
 
    return new DataComponentState(){
   
      public Range getRange() {
       
        int curentRow = getFirst();
View Full Code Here

Examples of org.ajax4jsf.model.DataComponentState

    this.responseData = responseData;
  }
 
  protected DataComponentState createComponentState() {
 
    return new DataComponentState(){
   
      public Range getRange() {
       
        int curentRow = getFirst();
View Full Code Here

Examples of org.ajax4jsf.model.DataComponentState


  public void broadcast(FacesEvent event) throws AbortProcessingException {
    super.broadcast(event);

    DataComponentState componentState = getComponentState();
    if (componentState instanceof FacesListener) {
      FacesListener facesListener = (FacesListener) componentState;

      if (event.isAppropriateListener(facesListener)) {
        // we can safely open/close nodes here
View Full Code Here

Examples of org.ajax4jsf.model.DataComponentState

     */
    public void testGetComponentState() {
        createDataTree();
        data.setRowIndex(0);

        DataComponentState state0 = adaptor.getComponentState();

        assertTrue(state0 instanceof MockComponentState);
        data.setRowIndex(1);

        DataComponentState state1 = adaptor.getComponentState();

        data.setRowIndex(0);
        assertSame(state0, adaptor.getComponentState());
        data.setRowIndex(1);
        assertSame(state1, adaptor.getComponentState());
View Full Code Here

Examples of org.ajax4jsf.model.DataComponentState

    /**
     * Test method for {@link org.ajax4jsf.component.UIDataAdaptor#createComponentState()}.
     */
    public void testCreateComponentState() {
        DataComponentState state = adaptor.createComponentState();

        assertTrue(state instanceof MockComponentState);
    }
View Full Code Here

Examples of org.ajax4jsf.model.DataComponentState

    public void walk(FacesContext faces, DataVisitor visitor, Object argument) {
        Object key = getRowKey();
        captureOrigValue(faces);

        Range range = null;
        DataComponentState componentState = getComponentState();

        if (componentState != null) {
            range = componentState.getRange();
        }

        getExtendedDataModel().walk(faces, visitor, range, argument);

        setRowKey(faces, key);
View Full Code Here

Examples of org.ajax4jsf.model.DataComponentState

        state.setFirst(getActualFirst());
        state.setRows(getActualRows());
    }

    protected void updateState() {
        DataComponentState localState = getLocalComponentState();
        if (localState instanceof SequenceState) {
            updateState((SequenceState) localState);
        }
    }
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.