Package org.richfaces.model

Examples of org.richfaces.model.SequenceRowKey


    public final TreeDataModelTuple next() {
        proceedToNext();

        Object modelKey = getWrappedKey();
        SequenceRowKey nextKey = getCompositeKey(modelKey);
        return createTuple(nextKey);
    }
View Full Code Here


        return modelKey;
    }

    protected SequenceRowKey getCompositeKey(Object modelKey) {
        SequenceRowKey result;

        if (getBaseKey() != null) {
            result = getBaseKey().append(modelKey);
        } else {
            result = new SequenceRowKey(modelKey);
        }

        return result;
    }
View Full Code Here

        for (String s : split) {
            T convertedKey = clazz.cast(delegateConverter.getAsObject(context, component, s));
            keysList.add(convertedKey);
        }

        return new SequenceRowKey(keysList.toArray(ObjectArrays.newArray(clazz, keysList.size())));
    }
View Full Code Here

    public String getAsString(FacesContext context, UIComponent component, Object value) {
        if (value == null) {
            return "";
        }

        SequenceRowKey sequenceRowKey = (SequenceRowKey) value;

        StringBuilder result = new StringBuilder();

        for (Object simpleKey : sequenceRowKey.getSimpleKeys()) {
            String convertedKey = delegateConverter.getAsString(context, component, simpleKey);

            if (result.length() > 0) {
                result.append(SEPARATOR_CHAR);
            }
View Full Code Here

            DeclarativeModelKey declarativeKey = tree.convertDeclarativeKeyFromString(context, modelId, modelKeyAsString);

            declarativeKeys.add(declarativeKey);
        }

        return new SequenceRowKey((Object[]) declarativeKeys.toArray(new DeclarativeModelKey[declarativeKeys.size()]));
    }
View Full Code Here

    public String getAsString(FacesContext context, UIComponent component, Object value) {
        if (value == null) {
            return "";
        }

        SequenceRowKey sequenceRowKey = (SequenceRowKey) value;

        Object[] declarativeKeys = sequenceRowKey.getSimpleKeys();
        AbstractTree tree = (AbstractTree) component;

        StringBuilder result = new StringBuilder();

        for (Object declarativeKeyObject : declarativeKeys) {
View Full Code Here

TOP

Related Classes of org.richfaces.model.SequenceRowKey

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.