Example #1
0
  public GameListScreen(String val) {
    super(null);
    bgManager.setStatusHeight(exit.getContentHeight());
    bgManager.setArrowMode(true);
    exit.setChangeListener(this);
    addButton(new FixedButtonField(""));
    addButton(pageNumber);
    addButton(exit);

    process(val);
  }
Example #2
0
  public CardDetailScreen(Card card) {
    super(null);
    bgManager.setStatusHeight(exit.getContentHeight());

    exit.setChangeListener(this);
    add(new ColorLabelField(card.getDesc() + " details", LabelField.FIELD_HCENTER, 18));
    Vector stats = card.getStats();
    for (int i = 0; i < stats.size(); i++) {
      Stat stat = (Stat) stats.elementAt(i);
      add(new ListItemField(stat.getDesc() + " : " + stat.getValue(), -1, true, 0));
    }
    if (stats.size() == 0) {
      add(new ListItemField("None", -1, true, 0));
    }

    addButton(new FixedButtonField(""));
    addButton(new FixedButtonField(""));
    addButton(exit);
    setDisplaying(true);
  }