com.tek42.perforce.model
Class AbstractViewsSupport

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

public abstract class AbstractViewsSupport
extends Object
implements Serializable

Provide base support for views.

Author:
Mike Wille
See Also:
Serialized Form

Field Summary
protected  boolean dirty
           
protected  List<String> views
           
 
Constructor Summary
AbstractViewsSupport()
           
 
Method Summary
 void addView(String view)
           
 void clearDirty()
           
 void clearViews()
          Removes all views from this client.
 String getTrimmedViewsAsString()
           
 List<String> getViews()
           
 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 List<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 List<String> getViews()
Returns:
the view

getViewsAsString

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

Returns:

getTrimmedViewsAsString

public String getTrimmedViewsAsString()

addView

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

clearViews

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



Copyright © 2004-2012 Hudson. All Rights Reserved.