Module java.desktop

Class Control

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Control.Type
      An instance of the Type class represents the type of the control.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Control​(Control.Type type)
      Constructs a control with the specified type.
    • Constructor Detail

      • Control

        protected Control​(Control.Type type)
        Constructs a control with the specified type.
        Parameters:
        type - the kind of control desired
    • Method Detail

      • getType

        public Control.Type getType()
        Obtains the control's type.
        Returns:
        the control's type
      • toString

        public String toString()
        Obtains a string describing the control type and its current state.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the control