|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ginp.GinpModel
public class GinpModel
Model class to represent 1 user session instance of the application. All state information is stored in this class.
Constructor Summary | |
---|---|
GinpModel()
Constructor for the GinpModel object requiring the absolute path of the configuration file. |
Method Summary | |
---|---|
java.lang.Boolean |
accessCheck(java.lang.String validUserName,
java.lang.String userPass)
check valid username and password |
void |
doCommand(java.lang.String command,
java.util.Vector params)
Perform a command on the model. |
PicCollection |
getCollection()
Gets the collection attribute of the GinpModel object |
PicCollection |
getCollection(int i)
Gets the collection attribute of the GinpModel object |
PicCollection[] |
getCollections()
Gets the collections attribute of the GinpModel object |
int |
getCurrCollectionId()
Gets the collection attribute of the GinpModel object |
java.lang.String |
getCurrentPage()
Gets the pageLoctaion attribute of the GinpModel object |
java.lang.String |
getDebugDump()
Gets a String that is a Dump of Debug info about this models state. |
java.lang.String |
getDebugInfo()
Gets a String that is a Dump of Debug info about this models state. |
java.util.Locale |
getLocale()
Gets the prefered Locale for this GinpModel |
int |
getPageHeight()
Gets the users last set page height in pixels. |
int |
getPageOffset()
Gets the pageOffset attribute of the GinpModel object |
int |
getPagePosition()
Gets the pagePosition attribute of the GinpModel object |
int |
getPageWidth()
Gets the users last set page width in pixels. |
java.lang.String |
getUserName()
Gets this model's user log on name. |
boolean |
setCurrectCollection(int id)
Sets the currect PicCollection number of the GinpModel |
void |
setCurrentPage(java.lang.String url)
Sets the current page attribute of the GinpModel object |
void |
setLocale(java.util.Locale loc)
Sets the locale attribute of the GinpModel object |
void |
setPageHeight(int i)
Sets the page height attribute of the Model. |
void |
setPageOffset(int i)
Sets the pageOffset attribute of the GinpModel object |
void |
setPagePosition(int i)
Sets the pagePosition attribute of the GinpModel object |
void |
setPageWidth(int i)
Sets the page width attribute of the Model. |
void |
setUserName(java.lang.String user)
Sets the user's log on name for the model. |
java.lang.String |
translate(java.lang.String lookupcode)
Translate the supplied English text in to this Models prefured language. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GinpModel()
config
- Method Detail |
---|
public int getPageOffset()
public void setPageOffset(int i)
i
- The new pageOffset valuepublic int getPagePosition()
public void setPagePosition(int i)
i
- The new pagePosition valuepublic boolean setCurrectCollection(int id)
id
- Integer id of the collection selected as current.
public void setCurrentPage(java.lang.String url)
url
- The new current page urlpublic void setLocale(java.util.Locale loc)
loc
- The new locale valuepublic void setPageHeight(int i)
i
- The users current page height in pixels.public void setPageWidth(int i)
i
- The users current page width in pixels.public void setUserName(java.lang.String user)
user
- The new userName valuepublic PicCollection getCollection(int i)
i
- Description of the Parameter
public PicCollection getCollection()
public PicCollection[] getCollections()
public int getCurrCollectionId()
public java.lang.String getCurrentPage()
public java.util.Locale getLocale()
public int getPageHeight()
public int getPageWidth()
public java.lang.String getUserName()
public void doCommand(java.lang.String command, java.util.Vector params)
command
- The commands identifiying name.params
- The CommandParameters to be actionedpublic java.lang.String translate(java.lang.String lookupcode) throws java.util.MissingResourceException
lookupcode
- English Lookup Code Key.
java.util.MissingResourceException
- Description of the Exceptionpublic java.lang.String getDebugDump()
public java.lang.String getDebugInfo()
public java.lang.Boolean accessCheck(java.lang.String validUserName, java.lang.String userPass)
validUserName
- the usernameuserPass
- the password
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |