org.moremotion.page
Class CurrentPage

java.lang.Object
  extended by org.moremotion.page.Page
      extended by org.moremotion.page.CurrentPage

public class CurrentPage
extends Page

Version:
$Id: CurrentPage.java 746 2011-01-07 09:14:04Z erkan $

Constructor Summary
CurrentPage(MoreMotionRequest request, java.lang.String pageName)
           
 
Method Summary
 void flushNextPage()
          Saves "Pages-To-Be-Displayed-Next" list into the "nextpage" ADOM
 CommandDefinition getCommandDefinition(java.lang.String command)
          Returns the CommandDefinition object associated with the specified command
 CommandDefinition getCurrentCommandDefinition()
          Returns the Current CommandDefinition object associated with the specified command
 boolean hasCommandDefinitions()
          Returns true if current page has any command definition, false otherwise.
 boolean hasPostCommandDefinition()
           
 void insertNextPage(java.lang.String pageName)
          Inserts the given page name into the "Pages-To-Be-Displayed-Next" list
 void pushSelfName()
          Inserts this page into the "Pages-To-Be-Displayed-Next" list
 
Methods inherited from class org.moremotion.page.Page
getCommandName, getContextRelativeURL, getEncoding, getHostRelativeURL, getNextPage, getPageId, getPageInfo, getPageName, getPageName, getPageTableEntry, getVariant, setPageTable, toString, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CurrentPage

public CurrentPage(MoreMotionRequest request,
                   java.lang.String pageName)
            throws PageGenerationException
Throws:
PageGenerationException
Method Detail

getCurrentCommandDefinition

public CommandDefinition getCurrentCommandDefinition()
                                              throws PageGenerationException
Returns the Current CommandDefinition object associated with the specified command

Throws:
PageGenerationException

getCommandDefinition

public CommandDefinition getCommandDefinition(java.lang.String command)
                                       throws PageGenerationException
Returns the CommandDefinition object associated with the specified command

Parameters:
command - The name of the command
Throws:
PageGenerationException

hasCommandDefinitions

public boolean hasCommandDefinitions()
                              throws PageGenerationException
Returns true if current page has any command definition, false otherwise.

Throws:
PageGenerationException

hasPostCommandDefinition

public boolean hasPostCommandDefinition()
                                 throws PageGenerationException
Throws:
PageGenerationException

insertNextPage

public void insertNextPage(java.lang.String pageName)
Inserts the given page name into the "Pages-To-Be-Displayed-Next" list


pushSelfName

public void pushSelfName()
Inserts this page into the "Pages-To-Be-Displayed-Next" list


flushNextPage

public void flushNextPage()
Saves "Pages-To-Be-Displayed-Next" list into the "nextpage" ADOM



Copyright © 2002-2011 MOR YAZILIM. All Rights Reserved.