com.sri.emo.wizard.creation
Class MinMaxPageMetadata

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

public class MinMaxPageMetadata
extends EmoWizardMetadata
implements CreationMetadata

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
 String getBrowseText()
           
 String getCreateText()
           
 Integer getMaxEntries()
          Retrieve the maximum number of entries for the given page.
 Integer getMinEntries()
          Retrieve the minimum entries for the page.
 String getSearchText()
           
 boolean isBrowse()
           
 boolean isCreate()
           
 boolean isHasEntry()
          Set to true if the page has text entry.
 boolean isRequired()
           
 boolean isSearch()
           
 void setBrowse(boolean browse)
           
 void setBrowseText(String browseText)
           
 void setCreate(boolean create)
           
 void setCreateText(String createText)
           
 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.
 void setRequired(boolean required)
           
 void setSearch(boolean search)
           
 void setSearchText(String searchText)
           
 
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
 
Methods inherited from interface com.sri.emo.wizard.PageMetadata
getCancel, getDirective, getFinish, getHelpText, getNext, getPrevious, getTitle, getViewId, isEntryRequired
 

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

setBrowse

public void setBrowse(boolean browse)
Specified by:
setBrowse in interface CreationMetadata

setCreate

public void setCreate(boolean create)
Specified by:
setCreate in interface CreationMetadata

setSearch

public void setSearch(boolean search)
Specified by:
setSearch in interface CreationMetadata

setRequired

public void setRequired(boolean required)
Specified by:
setRequired in interface CreationMetadata

setBrowseText

public void setBrowseText(String browseText)
Specified by:
setBrowseText in interface CreationMetadata

setCreateText

public void setCreateText(String createText)
Specified by:
setCreateText in interface CreationMetadata

setSearchText

public void setSearchText(String searchText)
Specified by:
setSearchText in interface CreationMetadata

isBrowse

public boolean isBrowse()
Specified by:
isBrowse in interface CreationMetadata

isCreate

public boolean isCreate()
Specified by:
isCreate in interface CreationMetadata

isSearch

public boolean isSearch()
Specified by:
isSearch in interface CreationMetadata

isRequired

public boolean isRequired()
Specified by:
isRequired in interface CreationMetadata

getBrowseText

public String getBrowseText()
Specified by:
getBrowseText in interface CreationMetadata

getCreateText

public String getCreateText()
Specified by:
getCreateText in interface CreationMetadata

getSearchText

public String getSearchText()
Specified by:
getSearchText in interface CreationMetadata


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