com.tek42.perforce.model
Class AbstractViewsSupport

java.lang.Object
  extended by com.tek42.perforce.model.AbstractViewsSupport
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Label, Workspace

public abstract class AbstractViewsSupport
extends java.lang.Object
implements java.io.Serializable

Provide base support for views.

Author:
Mike Wille
See Also:
Serialized Form

Field Summary
protected  boolean dirty
           
protected  java.util.List<java.lang.String> views
           
 
Constructor Summary
AbstractViewsSupport()
           
 
Method Summary
 void addView(java.lang.String view)
           
 void clearDirty()
           
 void clearViews()
          Removes all views from this client.
 java.util.List<java.lang.String> getViews()
           
 java.lang.String getViewsAsString()
          Returns the list of views concatenated together with \n as delimeters.
 boolean isDirty()
          Has this object's fields been changed since it was created, or since the last call to clearDirty()?
 void markDirty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

views

protected java.util.List<java.lang.String> views

dirty

protected boolean dirty
Constructor Detail

AbstractViewsSupport

public AbstractViewsSupport()
Method Detail

isDirty

public boolean isDirty()
Has this object's fields been changed since it was created, or since the last call to clearDirty()?

Returns:
true if dirty

markDirty

public final void markDirty()

clearDirty

public final void clearDirty()

getViews

public java.util.List<java.lang.String> getViews()
Returns:
the view

getViewsAsString

public java.lang.String getViewsAsString()
Returns the list of views concatenated together with \n as delimeters.

Returns:

addView

public void addView(java.lang.String view)
Parameters:
view - the view to set

clearViews

public void clearViews()
Removes all views from this client.



Copyright © 2009. All Rights Reserved.