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);
 }