Enum HideMode

java.lang.Object
java.lang.Enum<HideMode>
net.miginfocom.layout.HideMode
All Implemented Interfaces:
Serializable, Comparable<HideMode>

public enum HideMode extends Enum<HideMode>
NORMAL: Bounds will be calculated as if the component was visible.
SIZE_0_RETAIN_GAPS: If hidden the size will be 0, 0 but the gaps remain.
SIZE_0_GAPS_0: If hidden the size will be 0, 0 and gaps set to zero.
DISREGARD: If hidden the component will be disregarded completely and not take up a cell in the grid..
  • Enum Constant Details

    • NORMAL

      public static final HideMode NORMAL
    • SIZE_0_RETAIN_GAPS

      public static final HideMode SIZE_0_RETAIN_GAPS
    • SIZE_0_GAPS_0

      public static final HideMode SIZE_0_GAPS_0
    • DISREGARD

      public static final HideMode DISREGARD
  • Field Details

    • code

      private final int code
  • Constructor Details

    • HideMode

      private HideMode(int code)
  • Method Details

    • values

      public static HideMode[] 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 HideMode 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
    • getCode

      public int getCode()
    • of

      public static HideMode of(int code)