Package org.conventionsframework.model

Examples of org.conventionsframework.model.StateItem


            throw new RuntimeException("cannot build StateItem without a state");
        }
        if (facesRedirect) {
            addFacesRedirect();
        }
        return new StateItem(outcome,entity, state,value,title,type,ajax,callback,update,global,resetValue,immediate, oncomplete,addEntityIdParam);
    }
View Full Code Here


            return;
        }
        if (itemIndex != -1) {
            Iterator<StateItem> i = stateItens.iterator();
            while (i.hasNext()) {
                StateItem stateItem = i.next();
                if (stateItens.indexOf(stateItem) > itemIndex) {
                    i.remove();
                }
            }
        }
        StateItem item = stateItens.get(itemIndex);
        statePullEvent.fire(new StatePullEvent(item));
        buildStateModel();
        invokeCallback(item);
    }
View Full Code Here

                        Level.SEVERE, null, ex);
            }
        }

        // update data in the managed bean
        StateItem item = stateItens.peekLast();
        statePullEvent.fire(new StatePullEvent(item));
        buildStateModel();
        invokeCallback(item);
        return item.getOutcome();
    }
View Full Code Here

            return;
        } else {//only a state annotation is present
            BeanState beanState = AnnotationUtils.findStateAnnotation(getClass());
            if (beanState != null) {
                if (beanState.beanState().equals(this.getBeanState().getStateName())) {
                    statePushEvent.fire(new StatePushEvent(new StateItem(beanState.outcome(), getEntity(), getBeanState(), beanState.value(), beanState.title(), this.getClass(), beanState.ajax(), beanState.callback(), beanState.update(),beanState.global(),beanState.resetValues(),beanState.immediate(),beanState.oncomplete(),beanState.addEntityIdParam())));
                }
            }
        }
    }
View Full Code Here

            } else {//only a state annotation is present
                BeanState state = AnnotationUtils.findStateAnnotation(getClass());
                if (states != null) {
                    if (state.beanState().equals(this.getBeanState().getStateName())) {
                        statePushEvent.fire(new StatePushEvent(new StateItem(state.outcome(), getEntity(), getBeanState(), state.value(), state.title(), this.getClass(), state.ajax(), state.callback(), state.update(),state.global(),state.resetValues(),state.immediate(),state.oncomplete(),state.addEntityIdParam())));
                    }
                }
            }
        }
    }
View Full Code Here

    private void matchState(BeanState[] value) {

        for (BeanState beanState : value) {
            if (beanState.beanState().equals(this.getBeanState().getStateName())) {
                statePushEvent.fire(new StatePushEvent(new StateItem(beanState.outcome(), getEntity(), getBeanState(), beanState.value(), beanState.title(), this.getClass(), beanState.ajax(), beanState.callback(), beanState.update(),beanState.global(),beanState.resetValues(),beanState.immediate(),beanState.oncomplete(),beanState.addEntityIdParam())));
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.conventionsframework.model.StateItem

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.