|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.enterprise.control.AbstractListener org.deegree.portal.standard.context.control.AbstractContextListener org.deegree.portal.standard.context.control.FullScreenListener
public class FullScreenListener
Convert the current view context to a full screen mode. It hides all the modules except the map and the toolbar. It also keeps whatever changes were made in the original context to the full screen context
Field Summary | |
---|---|
static String |
CONTEXTPATH
the path to where the Web Map Context files are found |
protected static String |
DEFAULT_CTXT2HTML
A String defining the name of the xsl file that defines the transformation
from a context to html. |
Constructor Summary | |
---|---|
FullScreenListener()
|
Method Summary | |
---|---|
void |
actionPerformed(FormEvent event)
|
protected ViewContext |
createFullScreenContext(RPCStruct struct,
ViewContext vc)
Sets the given context to FullScreen mode. |
protected void |
initialize()
Initializes the global variables |
protected void |
setCurrentContext(ViewContext vc)
Takes in viewContext converts it to a html of the viewcontext and display it |
protected ViewContext |
setToFullScreen(RPCWebEvent rpc)
Applies the modules read from the context.properties file to the current context using the data from the session on the defaultContext |
protected void |
validate(RPCWebEvent rpc)
ValidateRPC looks in the RPCStruct for all needed elements and gotoErrorPage in case an element is found or wronglz formated, this is useful so that we won't need to check later for anz variables, simply get them and start Working |
protected void |
validateBBox(RPCMember bboxRPCMember)
Validates the data in the struct to make sure it contains a valid bbox |
protected void |
validateCntxtProperties()
This method checks the context.properties file to make sure that all fields needed are available |
protected void |
validateLayerList(RPCMember layerListRPCMember)
Validates the data in the struct to make sure it contains a valid layerList |
Methods inherited from class org.deegree.portal.standard.context.control.AbstractContextListener |
---|
changeBBox, changeLayerList, extractBBox, extractBBox, extractRPCParameters, extractRPCStruct, getUserName, getUserPassword, readSessionID, transformToHtmlMapContext |
Methods inherited from class org.deegree.enterprise.control.AbstractListener |
---|
getAlternativeNextPage, getHomePath, getInitParameter, getInitParameterList, getNextPage, getRequest, getReturnValue, gotoErrorPage, handle, setAlternativeNextPage, setDefaultAlternativeNextPage, setDefaultNextPage, setNextPage, setReturnValue, toModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONTEXTPATH
protected static final String DEFAULT_CTXT2HTML
String
defining the name of the xsl file that defines the transformation
from a context to html. This must be placed, together with the map context xml and helper xsl
files, under ${context-home}/WEB-INF/conf/igeoportal/
.
Constructor Detail |
---|
public FullScreenListener()
Method Detail |
---|
public void actionPerformed(FormEvent event)
actionPerformed
in interface WebListener
actionPerformed
in class AbstractListener
protected void validate(RPCWebEvent rpc) throws PortalException
rpc
-
PortalException
protected void validateCntxtProperties() throws PortalException
PortalException
protected void initialize() throws PortalException
PortalException
protected ViewContext setToFullScreen(RPCWebEvent rpc) throws ParserConfigurationException, PortalException, ContextException
rpc
-
ParserConfigurationException
PortalException
ContextException
protected void setCurrentContext(ViewContext vc) throws ParserConfigurationException, TransformerException, SAXException, MalformedURLException, IOException
vc
- the Viewcontext after convert
ParserConfigurationException
TransformerException
SAXException
MalformedURLException
IOException
protected void validateLayerList(RPCMember layerListRPCMember) throws PortalException
layerListRPCMember
-
PortalException
protected void validateBBox(RPCMember bboxRPCMember) throws PortalException
bboxRPCMember
-
PortalException
protected ViewContext createFullScreenContext(RPCStruct struct, ViewContext vc) throws ContextException, PortalException
struct
- the rpc struct containing the current bbox envelopevc
- view context with the layers
ContextException
PortalException
|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org