getLabelID method

int getLabelID(
  1. int index
)

Implementation

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