public void updateIndex(int iIndex, int iCounter) {

    if (iIndex >= 0 && iIndex < iCounter) {
      jlblIndex.setText(Formats.INT.formatValue(new Integer(iIndex + 1)));
    } else {
      jlblIndex.setText("-");
    }
    jlblCounter.setText(Formats.INT.formatValue(new Integer(iCounter)));
  }
Пример #2
0
  public void writeValueDelete(Object value) {

    Object[] place = (Object[]) value;
    m_sID = Formats.STRING.formatValue(place[0]);
    m_jName.setText(Formats.STRING.formatValue(place[1]));
    m_jX.setText(Formats.INT.formatValue(place[2]));
    m_jY.setText(Formats.INT.formatValue(place[3]));
    m_FloorModel.setSelectedKey(place[4]);

    m_jName.setEnabled(false);
    m_jFloor.setEnabled(false);
    m_jX.setEnabled(false);
    m_jY.setEnabled(false);
  }
Пример #3
0
 public String printId() {
   if (m_iTicketId > 0) {
     // valid ticket id
     return Formats.INT.formatValue(new Integer(m_iTicketId));
   } else {
     return "";
   }
 }
Пример #4
0
 public String printSales() {
   return Formats.INT.formatValue(m_iSales);
 }
Пример #5
0
 public String printPayments() {
   return Formats.INT.formatValue(m_iPayments);
 }
Пример #6
0
 public String printSequence() {
   return Formats.INT.formatValue(m_iSeq);
 }