Class ViewOptions

java.lang.Object
edu.cnu.mdi.view.ViewOptions

public final class ViewOptions extends Object
Immutable value object containing the initialization options for a BaseView.

MDI historically accepts either alternating key/value arguments or a mutable Properties instance. ViewOptions provides an explicit constructor type while retaining complete compatibility with those APIs. Create instances with ViewPropertiesBuilder.buildOptions(). Both construction and conversion defensively copy the property map.

  • Method Details

    • from

      public static ViewOptions from(Properties properties)
      Creates options from existing MDI properties.
      Parameters:
      properties - properties to copy
      Returns:
      immutable options snapshot
      Throws:
      NullPointerException - if properties is null
    • toProperties

      public Properties toProperties()
      Returns a mutable defensive copy suitable for legacy MDI constructors. Mutating the returned object does not alter these options.
      Returns:
      copied properties