示例#1
0
 /**
  * Creates a new Dateinput object.
  *
  * @param name Name of the parameter string
  * @param _inShort True to display dates in shorthand names.
  * @param showNullValue True if the null value should be shown (that is, it should be possible to
  *     choose no date)
  */
 public DateInput(String name, boolean inShort, boolean showNullValue) {
   super.setName(name);
   this.justConstructed = true;
   this.showNullValue = showNullValue;
   this.inShort = inShort;
   constructInputs();
 }
 @Override
 public void poll(Input input, float secounds) {
   super.poll(input, secounds);
   if (this.getStatus() == STATUS_PRESSED) {
     this.value = !this.value;
     for (ContentListener cL : this.listener) {
       cL.contentChanged(this);
     }
   }
 }
示例#3
0
  public void setName(String name) {
    super.setName(name);

    if (this.theWholeDate != null) {
      this.theWholeDate.setName(name);
    }

    if (this.theDay != null) {
      this.theDay.setName(name + "_day");
    }

    if (this.theMonth != null) {
      this.theMonth.setName(name + "_month");
    }

    if (this.showYear) {
      if (this.theYear != null) {
        this.theYear.setName(name + "_year");
      }
    }
  }