|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.form.pagination.PaginationControl
public class PaginationControl
This control sets the current pagination that the user has requested.
Field Summary | |
---|---|
static java.lang.String |
HTMLINPUT_MODEL_STORAGE_NAME
The storage name of the associated Model (hidden input) |
static java.lang.String |
HTMLINPUT_PAGINATE_FROM
The object count to paginate from (hidden input) |
static java.lang.String |
HTMLINPUT_PAGINATE_FROM_TEXT
The object count to paginate from (text input) |
static java.lang.String |
HTMLINPUT_PAGINATE_TO
The object count to paginate to (hidden input) |
static java.lang.String |
HTMLINPUT_PAGINATE_TO_TEXT
The object count to paginate to (text input) |
static java.lang.String |
HTMLINPUT_PAGINATION_ID
The id of the objects to paginate (hidden input) |
static java.lang.String |
JAVASCRIPT_PAGINATE
the name of the javascript method that pages that use the pagination bar need to implement. |
static java.lang.String |
PAGINATION_LINK_SEPARATOR
the bar that separates different sections in the pagination links. |
static java.lang.String |
STR_MVC_CLASS_NAME
Object Name for AS |
Constructor Summary | |
---|---|
PaginationControl()
|
Method Summary | |
---|---|
Redirect |
CheckActionSecurityAndExecute(XPHashtable arguments)
Execute the control business logic and optionally return a Redirect object pointing to another AActivitySpace. |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
static PTConstruct |
CreatePaginationFilterBar(AActivitySpace asOwner,
int nPaginationID,
int nObjectCount)
Static method to create a pagination bar. |
static java.lang.String |
CreatePaginationJavascript(AActivitySpace asOwner)
This method creates the default javascript for the pagination control. |
static HTMLElement |
CreatePaginationLinks(AActivitySpace asOwner,
int nPaginationID,
int nObjectCount,
int nCurrentStart,
int nCurrentFinish,
int nPaginationSize)
|
static HTMLElement |
CreatePaginationLinks(AActivitySpace asOwner,
int nPaginationID,
int nObjectCount,
int nCurrentStart,
int nCurrentFinish,
int nPaginationSize,
java.lang.String sModelStorageKey)
Static method to create the pagination links that go at the bottom of the display. |
java.lang.String |
GetName()
Return the name of the MVC object. |
void |
Init(IModel model,
AActivitySpace space)
Initialize the control with the model it should use and it's parent AActivitySpace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
public static final java.lang.String HTMLINPUT_PAGINATION_ID
public static final java.lang.String HTMLINPUT_PAGINATE_FROM
public static final java.lang.String HTMLINPUT_PAGINATE_TO
public static final java.lang.String HTMLINPUT_MODEL_STORAGE_NAME
public static final java.lang.String HTMLINPUT_PAGINATE_FROM_TEXT
public static final java.lang.String HTMLINPUT_PAGINATE_TO_TEXT
public static final java.lang.String JAVASCRIPT_PAGINATE
public static final java.lang.String PAGINATION_LINK_SEPARATOR
Constructor Detail |
---|
public PaginationControl()
Method Detail |
---|
public static PTConstruct CreatePaginationFilterBar(AActivitySpace asOwner, int nPaginationID, int nObjectCount)
AActivitySpace
- the owner space for this HTMLint
- the pagination ID (usually the class ID)String
- the name of the HTML form
public static HTMLElement CreatePaginationLinks(AActivitySpace asOwner, int nPaginationID, int nObjectCount, int nCurrentStart, int nCurrentFinish, int nPaginationSize)
com.plumtree.uiinfrastructure.form.pagination.PaginationControl#CreatePaginationLinks()
public static HTMLElement CreatePaginationLinks(AActivitySpace asOwner, int nPaginationID, int nObjectCount, int nCurrentStart, int nCurrentFinish, int nPaginationSize, java.lang.String sModelStorageKey)
AActivitySpace
- the owner space for this HTMLint
- the pagination ID (usually the class ID)String
- the name of the HTML form
public static java.lang.String CreatePaginationJavascript(AActivitySpace asOwner)
public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
IControl
CheckActionSecurityAndExecute
in interface IControl
IControl.CheckActionSecurityAndExecute(XPHashtable)
public java.lang.Object Create()
IManagedObject
Create
in interface IManagedObject
IManagedObject.Create()
public java.lang.String GetName()
IMVCObject
GetName
in interface IMVCObject
IMVCObject.GetName()
public void Init(IModel model, AActivitySpace space)
IControl
Init
in interface IControl
IControl.Init(IModel, AActivitySpace)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |