Package edu.cnu.mdi.view
Class ViewOptions
java.lang.Object
edu.cnu.mdi.view.ViewOptions
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 Summary
Modifier and TypeMethodDescriptionstatic ViewOptionsfrom(Properties properties) Creates options from existing MDI properties.Returns a mutable defensive copy suitable for legacy MDI constructors.
-
Method Details
-
from
Creates options from existing MDI properties.- Parameters:
properties- properties to copy- Returns:
- immutable options snapshot
- Throws:
NullPointerException- ifpropertiesis null
-
toProperties
Returns a mutable defensive copy suitable for legacy MDI constructors. Mutating the returned object does not alter these options.- Returns:
- copied properties
-