infomat.view
Class GUIGroupingsForGroup

java.lang.Object
  extended by infomat.view.GUIGroupingsForGroup

public class GUIGroupingsForGroup
extends java.lang.Object


Field Summary
private  IObjectGrouping currentGrouping
           
private  IObjectGroup group
           
private  java.util.Vector<IObjectGrouping> groupings
           
private  java.util.HashMap<java.lang.String,IObjectGrouping> nameGroupingMap
           
 
Constructor Summary
GUIGroupingsForGroup(IObjectGroup group)
           
 
Method Summary
 boolean addGrouping(IObjectGrouping cog)
          Adds an IObjectGrouping.
 boolean containsIObjectGroup(IObjectGroup iog)
          Returns true if any of the IObjectGrouping:s that order this IObjectGroup contains the IObjectGroup.
 boolean containsIObjectGrouping(IObjectGrouping ioging)
          Returns true if the IObjectGrouping orders this IObjectGroup.
 IObjectGrouping getCurrentGrouping()
          Returns the current IObjectGrouping.
 java.util.Vector<IObjectGrouping> getGroupings()
          Returns all IObjectGrouping:s of this IObjectGroup.
 IObjectGrouping getGroupingWithName(java.lang.String name)
          Returns the IObjectGrouping with the name given.
private  void makeStartGrouping()
          Makes a IObjectGrouping consisting of one IObjectGroup and sets it to be the current IObjectGrouping.
 void purgeGroupingsToGroup()
          Removed IObject:s from the IObjectGrouping:s that are not in the IObjectGroup.
 void purgeToCurrentGrouping()
          Removes all IObjects that's not in the current IObjectGrouping from the IObjectGroup and all its IObjectGroupings.
 void removeGrouping(IObjectGrouping cog)
          Removes an IObjectGrouping.
 boolean setGrouping(IObjectGrouping cog)
          Sets the current IObjectGrouping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

group

private IObjectGroup group

groupings

private java.util.Vector<IObjectGrouping> groupings

nameGroupingMap

private java.util.HashMap<java.lang.String,IObjectGrouping> nameGroupingMap

currentGrouping

private IObjectGrouping currentGrouping
Constructor Detail

GUIGroupingsForGroup

public GUIGroupingsForGroup(IObjectGroup group)
Method Detail

addGrouping

public boolean addGrouping(IObjectGrouping cog)
Adds an IObjectGrouping. Returns false if the name for this new grouping is already taken.


removeGrouping

public void removeGrouping(IObjectGrouping cog)
Removes an IObjectGrouping.


purgeToCurrentGrouping

public void purgeToCurrentGrouping()
Removes all IObjects that's not in the current IObjectGrouping from the IObjectGroup and all its IObjectGroupings.


purgeGroupingsToGroup

public void purgeGroupingsToGroup()
Removed IObject:s from the IObjectGrouping:s that are not in the IObjectGroup.


setGrouping

public boolean setGrouping(IObjectGrouping cog)
Sets the current IObjectGrouping. Returns false if the IObjectGrouping has a conflict as in #addGrouping().


getCurrentGrouping

public IObjectGrouping getCurrentGrouping()
Returns the current IObjectGrouping.


getGroupings

public java.util.Vector<IObjectGrouping> getGroupings()
Returns all IObjectGrouping:s of this IObjectGroup.


getGroupingWithName

public IObjectGrouping getGroupingWithName(java.lang.String name)
Returns the IObjectGrouping with the name given.


containsIObjectGrouping

public boolean containsIObjectGrouping(IObjectGrouping ioging)
Returns true if the IObjectGrouping orders this IObjectGroup.


containsIObjectGroup

public boolean containsIObjectGroup(IObjectGroup iog)
Returns true if any of the IObjectGrouping:s that order this IObjectGroup contains the IObjectGroup.


makeStartGrouping

private void makeStartGrouping()
Makes a IObjectGrouping consisting of one IObjectGroup and sets it to be the current IObjectGrouping. Used as a first IObjectGrouping as many function needs one to work.