com.sri.emo.wizard.completion
Class MinMaxPageMetadata

java.lang.Object
  extended by com.sri.emo.wizard.defaults.EmoWizardMetadata
      extended by com.sri.emo.wizard.completion.MinMaxPageMetadata
All Implemented Interfaces:
PageMetadata, Serializable
Direct Known Subclasses:
MultiEntryMetadata, RelationPageMetadata

public class MinMaxPageMetadata
extends EmoWizardMetadata

Page Metadata base class that supports min/max settings.

Author:
Michael Rimov
See Also:
Serialized Form

Field Summary
protected  Integer maxEntries
          Maximum entries allwoed.
protected  Integer minEntries
          Minimum entries.
 
Constructor Summary
MinMaxPageMetadata()
          Default constructor.
 
Method Summary
 Integer getMaxEntries()
          Retrieve the maximum number of entries for the given page.
 Integer getMinEntries()
          Retrieve the minimum entries for the page.
 boolean isHasEntry()
          Set to true if the page has text entry.
 void setMaxEntries(Integer maxEntries)
          Sets the maximum number of entries for a given page.
 void setMinEntries(Integer minEntries)
          Sets the minimum number of entries for the page.
 
Methods inherited from class com.sri.emo.wizard.defaults.EmoWizardMetadata
equals, getCancel, getDirective, getFinish, getHelpText, getNext, getPrevious, getTitle, getViewId, hashCode, isEntry, isEntryRequired, setCancelLink, setDirective, setEntry, setEntryRequired, setFinishLink, setHelpText, setNextLink, setPreviousLink, setTitle, setViewId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

maxEntries

protected Integer maxEntries
Maximum entries allwoed.


minEntries

protected Integer minEntries
Minimum entries.

Constructor Detail

MinMaxPageMetadata

public MinMaxPageMetadata()
Default constructor.

Method Detail

getMaxEntries

public Integer getMaxEntries()
Retrieve the maximum number of entries for the given page.

Returns:
Integer

setMaxEntries

public void setMaxEntries(Integer maxEntries)
Sets the maximum number of entries for a given page.

Parameters:
maxEntries - Integer

getMinEntries

public Integer getMinEntries()
Retrieve the minimum entries for the page.

Returns:
Integer

setMinEntries

public void setMinEntries(Integer minEntries)
Sets the minimum number of entries for the page.

Parameters:
minEntries - Integer

isHasEntry

public boolean isHasEntry()
Set to true if the page has text entry. (Which is always the case for this type of page)

Specified by:
isHasEntry in interface PageMetadata
Overrides:
isHasEntry in class EmoWizardMetadata
Returns:
boolean


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.