Package org.zkoss.zk.ui.sys
Interface PageConfig
public interface PageConfig
Represents the info used to initialize a page.
- Since:
- 3.0.0
- Author:
- tomyeh
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the content that shall be generated inside the head element and after ZK's default tags (never null).Returns the content that shall be generated inside the head element and before ZK's default tags (never null).getId()Returns the page identifier, or null if auto-generation is required.Collection<Object[]>Returns a readonly collection of response headers (never null).getStyle()Returns the page's CSS style, or null if no special CSS style to assign.getTitle()Returns the page title, or null if not available (no title at all).getUuid()Returns the page's UUID.Return the page's viewport, or "auto" if not specified.
-
Method Details
-
getId
String getId()Returns the page identifier, or null if auto-generation is required. It is the identifier set by the application developer. If null, the implementation ofPageCtrl.init(org.zkoss.zk.ui.sys.PageConfig)shall generate one automatically.Note: if
Page.setId(java.lang.String)was called with a non-empty value before, this method is ignored. -
getUuid
String getUuid()Returns the page's UUID. This method is used only in the recovering mode (ExecutionCtrl.isRecovering()). In other words, it is null if not in the recovering mode. -
getTitle
String getTitle()Returns the page title, or null if not available (no title at all).Note: if
Page.setTitle(java.lang.String)was called with a non-empty value before, this method is ignored. -
getStyle
String getStyle()Returns the page's CSS style, or null if no special CSS style to assign.Note: if
Page.setStyle(java.lang.String)was called with a non-empty value before, this method is ignored. -
getViewport
String getViewport()Return the page's viewport, or "auto" if not specified.Note: if
Page.setViewport(java.lang.String)was called with a non-empty value before, this method is ignored.- Since:
- 6.5.0
-
getBeforeHeadTags
String getBeforeHeadTags()Returns the content that shall be generated inside the head element and before ZK's default tags (never null). For example, it might consist of <meta> and <link>.Since it is generated before ZK's default tags (such as CSS and JS), it cannot override ZK's default behaviors.
- Since:
- 5.0.5
- See Also:
-
getAfterHeadTags
String getAfterHeadTags()Returns the content that shall be generated inside the head element and after ZK's default tags (never null). For example, it might consist of <meta> and <link>.Since it is generated after ZK's default tags (such as CSS and JS), it could override ZK's default behaviors.
- Since:
- 5.0.5
- See Also:
-
getResponseHeaders
Collection<Object[]> getResponseHeaders()Returns a readonly collection of response headers (never null). Each item is a three-element object array. The first element is the header name. The second element of the array is the value which is an instance ofDateorString(and never null). The third element indicates whether to add (rather than set) header. It is an instance of Boolean (and never null).- Since:
- 5.0.2
-