Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.jdeveloper.vcs.spi
Class VCSRecentCommentsModel

java.lang.Object
  extended by java.util.Observable
      extended by oracle.jdeveloper.vcs.spi.VCSRecentCommentsModel

public class VCSRecentCommentsModel
extends java.util.Observable

Model class for historical comments used with a VCSCommentsCustomizer.

Since:
10.0.3

Constructor Summary
VCSRecentCommentsModel()
          Constructor.
 
Method Summary
 void addComment(java.lang.Object comment)
          Adds a recent comment to the model
 void clearComments()
          Clears the model of all comments.
 java.lang.Object[] getMatches(java.lang.Object s)
          Gets items in the model which match the given partial comment.
 void setMaximumSize(int maximumSize)
          Sets the maximum size of the comments model, which must be > 0.
 java.lang.Object[] toArray()
          Creates an array representation of comments in the model.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCSRecentCommentsModel

public VCSRecentCommentsModel()
Constructor.

Method Detail

setMaximumSize

public void setMaximumSize(int maximumSize)
Sets the maximum size of the comments model, which must be > 0.

Parameters:
maximumSize - the maximum size to set.

addComment

public void addComment(java.lang.Object comment)
Adds a recent comment to the model

Parameters:
comment - the comment to add.

clearComments

public void clearComments()
Clears the model of all comments.


getMatches

public java.lang.Object[] getMatches(java.lang.Object s)
Gets items in the model which match the given partial comment.

Parameters:
s - the partial comment to seek.

toArray

public java.lang.Object[] toArray()
Creates an array representation of comments in the model.

Returns:
the comments array.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.