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)));
  }
Ejemplo n.º 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);
  }
Ejemplo n.º 3
0
 public String printId() {
   if (m_iTicketId > 0) {
     // valid ticket id
     return Formats.INT.formatValue(new Integer(m_iTicketId));
   } else {
     return "";
   }
 }
Ejemplo n.º 4
0
 public String printSales() {
   return Formats.INT.formatValue(m_iSales);
 }
Ejemplo n.º 5
0
 public String printPayments() {
   return Formats.INT.formatValue(m_iPayments);
 }
Ejemplo n.º 6
0
 public String printSequence() {
   return Formats.INT.formatValue(m_iSeq);
 }