/*
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Enum.java to edit this template
|
*/
|
package com.megatim.reporting.adhoc.pojo.enums;
|
|
/**
|
*
|
* @author ASUS
|
*/
|
public enum ReportOrientation {
|
LANDSCAPE("Landscape"), PORTRAIT("Portrait");
|
|
private final String orientation;
|
|
private ReportOrientation(String orientation) {
|
this.orientation = orientation;
|
}
|
|
@Override
|
public String toString() {
|
return orientation;
|
}
|
|
public static ReportOrientation reportOrientation(String orientation) {
|
|
if (orientation.equalsIgnoreCase(ReportOrientation.LANDSCAPE.toString())) {
|
return ReportOrientation.LANDSCAPE;
|
} else {
|
return ReportOrientation.PORTRAIT;
|
}
|
}
|
}
|