當前位置: 首頁>>代碼示例>>Java>>正文


Java ChangeLogRow類代碼示例

本文整理匯總了Java中it.gmariotti.changelibs.library.internal.ChangeLogRow的典型用法代碼示例。如果您正苦於以下問題:Java ChangeLogRow類的具體用法?Java ChangeLogRow怎麽用?Java ChangeLogRow使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ChangeLogRow類屬於it.gmariotti.changelibs.library.internal包,在下文中一共展示了ChangeLogRow類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onPostExecute

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //導入依賴的package包/類
protected void onPostExecute(ChangeLog chg) {

            //Notify data changed
            if (chg != null) {
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
                    mAdapter.addAll(chg.getRows());
                } else {
                    if (chg.getRows() != null) {
                        for (ChangeLogRow row : chg.getRows()) {
                            mAdapter.add(row);
                        }
                    }
                }
                mAdapter.notifyDataSetChanged();
            }
        }
 
開發者ID:goodev,項目名稱:droidddle,代碼行數:17,代碼來源:ChangeLogListView.java

示例2: onPostExecute

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //導入依賴的package包/類
protected void onPostExecute(ChangeLog chg) {

            //Notify data changed
            if (chg!=null){
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){
                    mAdapter.addAll(chg.getRows());
                }else{
                    if(chg.getRows()!=null){
                        for(ChangeLogRow row:chg.getRows()){
                            mAdapter.add(row);
                        }
                    }
                }
                mAdapter.notifyDataSetChanged();
            }
        }
 
開發者ID:Daniele-Comi,項目名稱:System-Monitor,代碼行數:17,代碼來源:ChangeLogListView.java

示例3: onPostExecute

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //導入依賴的package包/類
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
protected void onPostExecute(ChangeLog chg) {

    //Notify data changed
    if (chg != null) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            mAdapter.addAll(chg.getRows());
        } else {
            if (chg.getRows() != null) {
                for (ChangeLogRow row : chg.getRows()) {
                    mAdapter.add(row);
                }
            }
        }
        mAdapter.notifyDataSetChanged();
    }
}
 
開發者ID:goodev,項目名稱:android-discourse,代碼行數:18,代碼來源:ChangeLogListView.java

示例4: readChangeLogRowNode

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //導入依賴的package包/類
/**
 *  Parse changeLogText node
 *
 * @param parser
 * @param changeLog
 * @throws Exception
 */
private void readChangeLogRowNode(XmlPullParser parser, ChangeLog changeLog, String versionName, int versionCode) throws Exception {

    if (parser == null) return;


    String tag = parser.getName();

    ChangeLogRow row = new ChangeLogRow();
    row.setVersionName(versionName);
    row.setVersionCode(versionCode);

    // Read attributes
    String changeLogTextTitle = parser.getAttributeValue(null, ATTRIBUTE_CHANGETEXTTITLE);
    if (changeLogTextTitle != null)
        row.setChangeTextTitle(changeLogTextTitle);

    // It is possible to force bulleted List
    String bulletedList = parser.getAttributeValue(null, ATTRIBUTE_BULLETEDLIST);
    if (bulletedList != null) {
        if (bulletedList.equals("true")) {
            row.setBulletedList(true);
        } else {
            row.setBulletedList(false);
        }
    } else {
        row.setBulletedList(super.bulletedList);
    }

    // Read text
    if (parser.next() == XmlPullParser.TEXT) {
        String changeLogText = parser.getText();
        if (changeLogText == null)
            throw new ChangeLogException("ChangeLogText required in changeLogText node");
        row.parseChangeText(changeLogText);
        row.setType(tag.equalsIgnoreCase(TAG_CHANGELOGBUG) ? ChangeLogRow.BUGFIX : tag.equalsIgnoreCase(TAG_CHANGELOGIMPROVEMENT) ? ChangeLogRow.IMPROVEMENT : ChangeLogRow.DEFAULT);
        parser.nextTag();
    }
    changeLog.addRow(row);

    //Log.d(TAG, "Added row:" + row.toString());

}
 
開發者ID:goodev,項目名稱:droidddle,代碼行數:50,代碼來源:XmlParser.java

示例5: readChangeLogRowNode

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //導入依賴的package包/類
/**
 *  Parse changeLogText node
 *
 * @param parser
 * @param changeLog
 * @throws Exception
 */
private void readChangeLogRowNode(XmlPullParser parser, ChangeLog changeLog, String versionName,int versionCode) throws Exception {

    if (parser == null) return;


    String tag = parser.getName();

    ChangeLogRow row = new ChangeLogRow();
    row.setVersionName(versionName);
    row.setVersionCode(versionCode);

    // Read attributes
    String changeLogTextTitle = parser.getAttributeValue(null, ATTRIBUTE_CHANGETEXTTITLE);
    if (changeLogTextTitle != null)
        row.setChangeTextTitle(changeLogTextTitle);

    // It is possible to force bulleted List
    String bulletedList = parser.getAttributeValue(null, ATTRIBUTE_BULLETEDLIST);
    if (bulletedList != null) {
        if (bulletedList.equals("true")) {
            row.setBulletedList(true);
        } else {
            row.setBulletedList(false);
        }
    } else {
        row.setBulletedList(super.bulletedList);
    }

    // Read text
    if (parser.next() == XmlPullParser.TEXT) {
        String changeLogText = parser.getText();
        if (changeLogText == null)
            throw new ChangeLogException("ChangeLogText required in changeLogText node");
        row.parseChangeText(changeLogText);
        row.setType(tag.equalsIgnoreCase(TAG_CHANGELOGBUG) ? ChangeLogRow.BUGFIX : tag.equalsIgnoreCase(TAG_CHANGELOGIMPROVEMENT) ? ChangeLogRow.IMPROVEMENT : ChangeLogRow.DEFAULT);
        parser.nextTag();
    }
    changeLog.addRow(row);

    //Log.d(TAG, "Added row:" + row.toString());

}
 
開發者ID:Daniele-Comi,項目名稱:System-Monitor,代碼行數:50,代碼來源:XmlParser.java

示例6: readChangeLogRowNode

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //導入依賴的package包/類
/**
 * Parse changeLogText node
 *
 * @param parser
 * @param changeLog
 * @throws Exception
 */
private void readChangeLogRowNode(XmlPullParser parser, ChangeLog changeLog, String versionName) throws Exception {

    if (parser == null)
        return;

    parser.require(XmlPullParser.START_TAG, null, TAG_CHANGELOGTEXT);

    String tag = parser.getName();
    if (tag.equals(TAG_CHANGELOGTEXT)) {
        ChangeLogRow row = new ChangeLogRow();
        row.setVersionName(versionName);

        // Read attributes
        String changeLogTextTitle = parser.getAttributeValue(null, ATTRIBUTE_CHANGETEXTTITLE);
        if (changeLogTextTitle != null)
            row.setChangeTextTitle(changeLogTextTitle);

        // It is possible to force bulleted List
        String bulletedList = parser.getAttributeValue(null, ATTRIBUTE_BULLETEDLIST);
        if (bulletedList != null) {
            if (bulletedList.equals("true")) {
                row.setBulletedList(true);
            } else {
                row.setBulletedList(false);
            }
        } else {
            row.setBulletedList(super.bulletedList);
        }

        // Read text
        if (parser.next() == XmlPullParser.TEXT) {
            String changeLogText = parser.getText();
            if (changeLogText == null)
                throw new ChangeLogException("ChangeLogText required in changeLogText node");
            row.parseChangeText(changeLogText);
            parser.nextTag();
        }
        changeLog.addRow(row);

        Log.d(TAG, "Added row:" + row.toString());
    }
    parser.require(XmlPullParser.END_TAG, null, TAG_CHANGELOGTEXT);
}
 
開發者ID:goodev,項目名稱:android-discourse,代碼行數:51,代碼來源:XmlParser.java


注:本文中的it.gmariotti.changelibs.library.internal.ChangeLogRow類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。