getLabelOrder method

int getLabelOrder(
  1. int index
)

Implementation

int getLabelOrder(int index) {
  if (this._series == PrinterSeries.PT3_LABEL_PRINTER) {
    return PT3.ordinalFromID(index); //PT3.valueFromID(index).ordinal();
  } else if (this._series == PrinterSeries.PT_LABEL_PRINTER) {
    return PT.ordinalFromID(index); //PT.valueFromID(index).ordinal();
  } else if (this._series == PrinterSeries.QL700_LABEL_PRINTER) {
    return QL700.ordinalFromID(index); //QL700.valueFromID(index).ordinal();
  } else if (this._series == PrinterSeries.QL1100_LABEL_PRINTER) {
    return QL1100.ordinalFromID(index); //QL1100.valueFromID(index).ordinal();
  } else {
    return this._series == PrinterSeries.QL1115_LABEL_PRINTER
        ? QL1115.ordinalFromID(index)
        : 255;
  }
}