• This project
    • Loading...
  • Sign in

LiuFuhua / Laryngoscope

Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • Laryngoscope
  • ..
  • nicespinner
  • PopUpTextAlignment.java
  • liufuhua007's avatar
    first version · 336af8b7
    336af8b7 Browse Files
    liufuhua007 authored 2024-06-28 10:53:02 +0800
PopUpTextAlignment.java 391 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package com.sw.laryngoscope.widget.nicespinner;

enum PopUpTextAlignment {
    START(0),
    END(1),
    CENTER(2);

    private final int id;

    PopUpTextAlignment(int id) {
        this.id = id;
    }

    static PopUpTextAlignment fromId(int id) {
        for (PopUpTextAlignment value : values()) {
            if (value.id == id) return value;
        }
        return CENTER;
    }
}