Class LXView

All Implemented Interfaces:
LXSerializable
Direct Known Subclasses:
LXView.Container, LXView.Empty

public class LXView extends LXModel
  • Method Details

    • create

      public static LXView create(LXModel model, String viewSelector, LXView.Normalization normalization, LXView.Orientation orientation)
      Constructs a view of the given model object
      Parameters:
      model - Model Parent model to create view of
      viewSelector - View selection string
      normalization - What normalization mode to use for this view
      orientation - Which orientation mode to use for this view
      Returns:
      A view of the model that selects the elements in the selector string
    • create

      public static LXView create(LXModel model, String viewSelector, LXView.Normalization normalization, LXView.Orientation orientation, LXViewDefinition viewDefinition)
      Constructs a view of the given model object
      Parameters:
      model - Model Parent model to create view of
      viewSelector - View selection string
      normalization - What normalization mode to use for this view
      orientation - Which orientation mode to use for this view
      viewDefinition - View definition to pass feedback to
      Returns:
      A view of the model that selects the elements in the selector string
    • getMainRoot

      public LXModel getMainRoot()
      Description copied from class: LXModel
      Gets the main root model. For basic models, this is the same as getRoot() - but for a LXView the result may be different. This method will return the top level master model in all cases
      Overrides:
      getMainRoot in class LXModel
      Returns:
      Top level main root model
    • dispose

      public void dispose()
      Overrides:
      dispose in class LXModel