java.lang.Object
java.lang.Enum<Border>
io.guise.framework.component.layout.Border
All Implemented Interfaces:
Serializable, Comparable<Border>

public enum Border extends Enum<Border>
The points at which the four logical flows end.
Author:
Garret Wilson
See Also:
  • Enum Constant Details

    • LINE_NEAR

      public static final Border LINE_NEAR
      The left side in left-to-right top-to-bottom orientation.
    • LINE_FAR

      public static final Border LINE_FAR
      The right side in left-to-right top-to-bottom orientation.
    • PAGE_NEAR

      public static final Border PAGE_NEAR
      The top side in left-to-right top-to-bottom orientation.
    • PAGE_FAR

      public static final Border PAGE_FAR
      The bottom side in left-to-right top-to-bottom orientation.
  • Method Details

    • values

      public static Border[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Border valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getFlow

      public Flow getFlow()
      Returns:
      The flow.
    • getEnd

      public Flow.End getEnd()
      Returns:
      The end.
    • getBorder

      public static Border getBorder(Flow flow, Flow.End end)
      Determines the border from the flow and end.
      Parameters:
      flow - The flow
      end - The end.
      Returns:
      The border for the specified flow and page end.
      Throws:
      NullPointerException - if the given flow and/or end is null.