Package com.semanticcms.dia.servlet
Class Dia
- java.lang.Object
-
- com.semanticcms.core.servlet.Element<Dia>
-
- com.semanticcms.dia.servlet.Dia
-
- All Implemented Interfaces:
ElementWriter
public class Dia extends Element<Dia>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.semanticcms.core.servlet.Element
Element.Body<E extends Element>, Element.PageContextBody<E extends Element>, Element.PageContextNoElementBody
-
-
Field Summary
-
Fields inherited from class com.semanticcms.core.servlet.Element
element, request, response, servletContext
-
-
Constructor Summary
Constructors Constructor Description Dia(Dia element, String path)Creates a new diagram in the current page context.Dia(Dia element, String book, String path)Creates a new diagram in the current page context.Dia(String path)Creates a new diagram in the current page context.Dia(String book, String path)Creates a new diagram in the current page context.Dia(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Dia element, String path)Dia(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Dia element, String book, String path)Dia(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String path)Dia(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String book, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Diabook(String book)protected voiddoBody(CaptureLevel captureLevel, Element.Body<? super Dia> body)Diaheight(int height)Diaid(String id)Dialabel(String label)Diawidth(int width)voidwriteTo(Writer out, ElementContext context)
-
-
-
Constructor Detail
-
Dia
public Dia(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Dia element, String path)
-
Dia
public Dia(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String path)
-
Dia
public Dia(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Dia element, String book, String path)
-
Dia
public Dia(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String book, String path)
-
Dia
public Dia(Dia element, String path)
Creates a new diagram in the current page context.- See Also:
PageContext
-
Dia
public Dia(String path)
Creates a new diagram in the current page context.- See Also:
PageContext
-
Dia
public Dia(Dia element, String book, String path)
Creates a new diagram in the current page context.- See Also:
PageContext
-
Dia
public Dia(String book, String path)
Creates a new diagram in the current page context.- See Also:
PageContext
-
-
Method Detail
-
width
public Dia width(int width)
-
height
public Dia height(int height)
-
doBody
protected void doBody(CaptureLevel captureLevel, Element.Body<? super Dia> body) throws ServletException, IOException, SkipPageException
- Overrides:
doBodyin classElement<Dia>- Throws:
ServletExceptionIOExceptionSkipPageException
-
writeTo
public void writeTo(Writer out, ElementContext context) throws IOException
- Throws:
IOException
-
-