Examples of IPrimaryKeyConvertor


Examples of org.apache.tapestry.contrib.table.model.IPrimaryKeyConvertor

    public LocaleList()
    {
        // define an IPrimaryKeyConvertor that represents
        // a Locale object as a String and converts it back
        m_objLocaleConvertor = new IPrimaryKeyConvertor()
        {
            public Object getPrimaryKey(Object objValue)
            {
                Locale objLocale = (Locale) objValue;
                return objLocale.toString();
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.IPrimaryKeyConvertor

   
    public LocaleList()
    {
        // define an IPrimaryKeyConvertor that represents
        // a Locale object as a String and converts it back
        m_objLocaleConvertor = new IPrimaryKeyConvertor()
        {
            public Object getPrimaryKey(Object objValue)
            {
                Locale objLocale = (Locale) objValue;
                return objLocale.toString();
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.IPrimaryKeyConvertor

    public LocaleList()
    {
        // define an IPrimaryKeyConvertor that represents
        // a Locale object as a String and converts it back
        m_objLocaleConvertor = new IPrimaryKeyConvertor()
        {
            public Object getPrimaryKey(Object objValue)
            {
                Locale objLocale = (Locale) objValue;
                return objLocale.toString();
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.IPrimaryKeyConvertor

    public LocaleList()
    {
        // define an IPrimaryKeyConvertor that represents
        // a Locale object as a String and converts it back
        m_objLocaleConvertor = new IPrimaryKeyConvertor()
        {

            public Object getPrimaryKey(Object objValue)
            {
                Locale objLocale = (Locale) objValue;
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.IPrimaryKeyConvertor

    public LocaleList()
    {
        // define an IPrimaryKeyConvertor that represents
        // a Locale object as a String and converts it back
        m_objLocaleConvertor = new IPrimaryKeyConvertor()
        {

            public Object getPrimaryKey(Object objValue)
            {
                Locale objLocale = (Locale) objValue;
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.IPrimaryKeyConvertor

    
     * @return the cached PK convertor
     */
    public IPrimaryKeyConvertor getCachedConvertor()
    {
        IPrimaryKeyConvertor objConvertor = getConvertorCache();
       
        if (objConvertor == null) {
            objConvertor = getConvertor();
            setConvertorCache(objConvertor);
        }
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.IPrimaryKeyConvertor

     * @return an iterator of all converted table rows
     */   
    public Iterator getConvertedTableRowsIterator()
    {
        final Iterator objTableRowsIterator = getTableRowsIterator();
        final IPrimaryKeyConvertor objConvertor = getCachedConvertor();
        if (objConvertor == null)
            return objTableRowsIterator;
           
        return new Iterator()
        {
            public boolean hasNext()
            {
                return objTableRowsIterator.hasNext();
            }

            public Object next()
            {
                Object objValue = objTableRowsIterator.next();
                Object objPrimaryKey = objConvertor.getPrimaryKey(objValue);
                Map mapConvertedValues = getConvertedValues();
                mapConvertedValues.put(objPrimaryKey, objValue);
                return objPrimaryKey;
            }

View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.IPrimaryKeyConvertor

     */
    public void setConvertedTableRow(Object objConvertedTableRow)
    {
        Object objValue = objConvertedTableRow;

        IPrimaryKeyConvertor objConvertor = getCachedConvertor();
        if (objConvertor != null) {
            IRequestCycle objCycle = getPage().getRequestCycle();
            if (objCycle.isRewinding()) {
                objValue = objConvertor.getValue(objConvertedTableRow)
            }
            else {
                Map mapConvertedValues = getConvertedValues();
                objValue = mapConvertedValues.get(objConvertedTableRow);
            }
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.IPrimaryKeyConvertor

    public LocaleList()
    {
        // define an IPrimaryKeyConvertor that represents
        // a Locale object as a String and converts it back
        m_objLocaleConvertor = new IPrimaryKeyConvertor()
        {
            public Object getPrimaryKey(Object objValue)
            {
                Locale objLocale = (Locale) objValue;
                return objLocale.toString();
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.IPrimaryKeyConvertor

   
    public LocaleList()
    {
        // define an IPrimaryKeyConvertor that represents
        // a Locale object as a String and converts it back
        m_objLocaleConvertor = new IPrimaryKeyConvertor()
        {
            public Object getPrimaryKey(Object objValue)
            {
                Locale objLocale = (Locale) objValue;
                return objLocale.toString();
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.