All Implemented Interfaces:
Cloneable, NavigationNode
Direct Known Subclasses:
NavigationModel

public class Group extends AbstractNavigationNode
Group represents a logical group of views in a NavigationModel.
Author:
Herko ter Horst
  • Field Details

  • Constructor Details

    • Group

      public Group(String id)
      Construct a new group with the specified ID.
      Parameters:
      id - the ID of the group
  • Method Details

    • addGroup

      public void addGroup(Group group)
      Add a group to this group. The group becomes a sub-group of this group.
      Parameters:
      group - the group to add
    • getGroup

      public Group getGroup(String id)
      Get the sub-group with the specified ID.
      Parameters:
      id - the ID of the sub-group
      Returns:
      the sub-group with the specified ID, or null if this group doesn't contain a sub-group with that ID
    • getGroups

      public List<Group> getGroups()
      Get the list of sub-groups
      Returns:
      the list of sub-groups
    • addView

      public void addView(View view)
      Add a view to this group.
      Parameters:
      view - the view to add
    • getView

      public View getView(String viewId)
    • getViewByName

      public View getViewByName(String viewName)
      Get the view with the specified name.
      Parameters:
      viewName - the name of the view (ID+suffix)
      Returns:
      the view with the specified name, or null if this group doesn't contain a view with that name
    • findViewInternal

      protected View findViewInternal(String viewName)
    • getViews

      public List<View> getViews()
      Get the list of views.
      Returns:
      the list of views
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • copyGroupsAndViews

      protected void copyGroupsAndViews(Group group)