Kenmegne
6 days ago 6494941037ae2670876de9940853d50538eb5129
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * 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;
        }
    }
}