// Path: src/main/java/nitezh/ministock/domain/Widget.java
// public interface Widget {
//     Storage getStorage();
// 
//     void setWidgetPreferencesFromJson(JSONObject jsonPrefs);
// 
//     JSONObject getWidgetPreferencesAsJson();
// 
//     void enablePercentChangeView();
// 
//     void enableDailyChangeView();
// 
//     void setStock1();
// 
//     void setStock1Summary();
// 
//     void save();
// 
//     int getId();
// 
//     int getSize();
// 
//     void setSize(int size);
// 
//     boolean isNarrow();
// 
//     String getStock(int i);
// 
//     int getPreviousView();
// 
//     void setView(int view);
// 
//     List<String> getSymbols();
// 
//     int getSymbolCount();
// 
//     String getBackgroundStyle();
// 
//     boolean useLargeFont();
// 
//     boolean getHideSuffix();
// 
//     boolean getTextStyle();
// 
//     boolean getColorsOnPrices();
// 
//     String getFooterVisibility();
// 
//     String getFooterColor();
// 
//     boolean showShortTime();
// 
//     boolean hasDailyChangeView();
// 
//     boolean hasTotalPercentView();
// 
//     boolean hasDailyPercentView();
// 
//     boolean hasTotalChangeView();
// 
//     boolean hasTotalChangeAerView();
// 
//     boolean hasDailyPlChangeView();
// 
//     boolean hasDailyPlPercentView();
// 
//     boolean hasTotalPlPercentView();
// 
//     boolean hasTotalPlChangeView();
// 
//     boolean hasTotalPlPercentAerView();
// 
//     boolean alwaysUseShortName();
// 
//     boolean shouldUpdateOnRightTouch();
// }


import android.graphics.Color;
import nitezh.ministock.domain.Widget;
/*
 The MIT License

 Copyright (c) 2013 Nitesh Patel http://niteshpatel.github.io/ministocks

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 */

package nitezh.ministock.activities.widget;



class WidgetRow {
    private final Widget widget;

    private String symbol;
    private final int symbolDisplayColor;
    private String price;
    private int priceColor;
    private String volume;
    private int volumeColor;
    private String stockInfo;
    private int stockInfoColor;
    private String stockInfoExtra;
    private int stockInfoExtraColor;

// Path: src/main/java/nitezh/ministock/domain/Widget.java
// public interface Widget {
//     Storage getStorage();
// 
//     void setWidgetPreferencesFromJson(JSONObject jsonPrefs);
// 
//     JSONObject getWidgetPreferencesAsJson();
// 
//     void enablePercentChangeView();
// 
//     void enableDailyChangeView();
// 
//     void setStock1();
// 
//     void setStock1Summary();
// 
//     void save();
// 
//     int getId();
// 
//     int getSize();
// 
//     void setSize(int size);
// 
//     boolean isNarrow();
// 
//     String getStock(int i);
// 
//     int getPreviousView();
// 
//     void setView(int view);
// 
//     List<String> getSymbols();
// 
//     int getSymbolCount();
// 
//     String getBackgroundStyle();
// 
//     boolean useLargeFont();
// 
//     boolean getHideSuffix();
// 
//     boolean getTextStyle();
// 
//     boolean getColorsOnPrices();
// 
//     String getFooterVisibility();
// 
//     String getFooterColor();
// 
//     boolean showShortTime();
// 
//     boolean hasDailyChangeView();
// 
//     boolean hasTotalPercentView();
// 
//     boolean hasDailyPercentView();
// 
//     boolean hasTotalChangeView();
// 
//     boolean hasTotalChangeAerView();
// 
//     boolean hasDailyPlChangeView();
// 
//     boolean hasDailyPlPercentView();
// 
//     boolean hasTotalPlPercentView();
// 
//     boolean hasTotalPlChangeView();
// 
//     boolean hasTotalPlPercentAerView();
// 
//     boolean alwaysUseShortName();
// 
//     boolean shouldUpdateOnRightTouch();
// }


// Path: src/main/java/nitezh/ministock/activities/widget/WidgetRow.java
import android.graphics.Color;
import nitezh.ministock.domain.Widget;

/*
 The MIT License

 Copyright (c) 2013 Nitesh Patel http://niteshpatel.github.io/ministocks

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 */

package nitezh.ministock.activities.widget;



class WidgetRow {
    private final Widget widget;

    private String symbol;
    private final int symbolDisplayColor;
    private String price;
    private int priceColor;
    private String volume;
    private int volumeColor;
    private String stockInfo;
    private int stockInfoColor;
    private String stockInfoExtra;
    private int stockInfoExtraColor;

    WidgetRow(Widget widget) {