com.holonplatform.vaadin7.navigator.internal

## Class ViewDisplayUtils

- java.lang.Object
- - com.holonplatform.vaadin7.navigator.internal.ViewDisplayUtils

- All Implemented Interfaces:
    Serializable

      public final class ViewDisplayUtils
      extends Object
      implements Serializable

  Utility class for `View` display operations
  Since:
    5.0.0
  See Also:
    Serialized Form

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static com.vaadin.ui.Component` | `getViewContent(com.vaadin.navigator.View view)` Get given `view` content: if View is a `ViewContentProvider`, than `ViewContentProvider.getViewContent()` is returned, else if view is a `Component`, view instance itself is returned.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getViewContent

          public static com.vaadin.ui.Component getViewContent(com.vaadin.navigator.View view)
                                                        throws IllegalArgumentException

      Get given `view` content: if View is a `ViewContentProvider`, than `ViewContentProvider.getViewContent()` is returned, else if view is a `Component`, view instance itself is returned. Otherwise, a `IllegalArgumentException` is thrown.
      Parameters:
        `view` - View for which retrieve the content
      Returns:
        View content as `Component`
      Throws:
        `IllegalArgumentException` - if view instance is not a `ViewContentProvider` nor a `Component`

Copyright © 2019 The Holon Platform. All rights reserved.