|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.clients.context.JSPCreator2
This class offers methods for creating JSP and JavaSript fragments depending on the Map context document used as configuration for the deegree web map client.
The created fragments partially uses javascript calls as defined in the deegree integrated client. if somebody needs other javascript methods he/she must write its own creator methods or must directly use an instance of a ViewContext in a JSP page.
Constructor Summary | |
JSPCreator2()
|
Method Summary | |
static java.lang.String |
createCommonJSImport(ViewContext viewContext)
|
private static java.lang.StringBuffer |
createInitCalls(GUIArea guiarea)
|
static java.lang.String |
createJSInitSection(ViewContext viewContext)
creates a set of constructor calls that are requierd to initialize the GUI. |
static java.lang.String |
createLayerListJS(ViewContext viewContext)
|
static java.lang.String |
getArea(ViewContext viewContext,
int area)
creates JSP import statement for the modules being part of an area of the GUI/page. |
static java.lang.String |
getAvailableLayersAsComboBox(ViewContext viewContext)
|
static java.lang.String |
getAvailableLayersAsHTMLList(ViewContext viewContext)
|
static java.lang.String |
getControlBarContent(ViewContext viewContext)
|
static java.lang.String |
getLayerAsHTMLTable(ViewContext viewContext)
returns the layers contained in the passed ViewContext as a HTML table with a Checkbox for visibility and a Radiobutton for query (featureInfo). |
private static java.lang.StringBuffer |
getLayerAsHTMLTableJS()
|
static java.lang.Object[][] |
getLayersGroupedByService(ViewContext viewContext)
returns a matrix containing an array of layer for each server defined in the map context. the matrix is ordered in that way that in the first row and first field you find the server in the second field you find an array of layers served by the server. |
static java.lang.String[][] |
getServiceRequests(ViewContext viewContext)
creates a list of servers and GetMap requests assigned to them from a ViewContext. |
static java.lang.String |
getVisibleLayersAsHTMLList(ViewContext viewContext)
|
static void |
main(java.lang.String[] args)
|
private static boolean |
usesSLD(Layer[] layers)
returns true if one of the passed layers uses SLD instead of named styles |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JSPCreator2()
Method Detail |
public static java.lang.String getArea(ViewContext viewContext, int area)
viewContext
- area
- area to create import statements for
public static java.lang.String createJSInitSection(ViewContext viewContext)
viewContext
- web map context
private static java.lang.StringBuffer createInitCalls(GUIArea guiarea)
guiarea
-
public static java.lang.String createCommonJSImport(ViewContext viewContext)
viewContext
-
public static java.lang.Object[][] getLayersGroupedByService(ViewContext viewContext)
viewContext
-
public static java.lang.String[][] getServiceRequests(ViewContext viewContext) throws ContextException
viewContext
-
ContextException
private static boolean usesSLD(Layer[] layers)
public static java.lang.String createLayerListJS(ViewContext viewContext)
public static java.lang.String getLayerAsHTMLTable(ViewContext viewContext)
viewContext
-
private static java.lang.StringBuffer getLayerAsHTMLTableJS()
public static java.lang.String getVisibleLayersAsHTMLList(ViewContext viewContext)
viewContext
-
public static java.lang.String getAvailableLayersAsHTMLList(ViewContext viewContext)
viewContext
-
public static java.lang.String getAvailableLayersAsComboBox(ViewContext viewContext)
viewContext
-
public static java.lang.String getControlBarContent(ViewContext viewContext)
viewContext
-
public static void main(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |