(Quick Reference)

style

Purpose

The style component used to specify CSS styles for the owner desktop.

Examples

<z:style>a{ color:red; }</z:style>

Description

Attributes

  • src (optional) - Sets the URI of an external style sheet. Calling this method implies setContent(null). In other words, the last invocation of setSrc(java.lang.String) overrides the previous setContent(java.lang.String), if any. see more
  • content (optional) - Sets the content of the style element. By content we mean the CSS rules that will be sent to the client. Calling this method implies setSrc(null). In other words, the last invocation of setContent(java.lang.String) overrides the previous setSrc(java.lang.String), if any. see more
  • dynamic (optional) - Deprecated.  As of release 5.0.0, it is decided automatically. see more
  • media (optional) - Sets the media dependencies for this style sheet. Refer to media-depedent style sheet for details. see more
  • visible (optional) - Not allowd. see more
  • id (optional) - Description copied from interface: Component Sets the ID. The scope of uniqueness depends on whether this component is a root component. Refer to Component.getId() for more details. Default: "" (an empty string; it means no ID at all). see more
  • mold (optional) - Description copied from interface: Component Sets the mold to render this component. see more
  • widgetClass (optional) - Description copied from interface: Component Sets the widget class (aka., the widget type). The widget class is a JavaScript class, including the package name. For example, "zul.wnd.Window". see more
  • stubonly (optional) - Description copied from interface: Component Sets whether this component is stub-only. By stub-only, we mean we don't need to maintain the states of the component at the server side. Default: "inherit" (i.e., the same as the parent's stub-only, and "false" is assumed if none of parents is specified with stub-only). If a component is set to stub-only, the application running at the server shall not access it anymore after renderred to the client. The ZK loader will try to minimize the memory footprint by merging stub-only components and replacing with light-weight components. However, the event listeners and handlers are preserved, so they will be invoked if the corresponding event is received. Since the original component is gone, the event is the more generic format: an instance of Event (rather than MouseEvent or others). If a component is stub-only, the application usually access it only at the client since all widgets are preserved at the client (so are events). This method is available only for ZK EE. see more
  • definition (optional) - Description copied from interface: ComponentCtrl Sets the component definition by specifing the name. see more

ZK Official Reference

Component Reference

Show style Component Reference

Java API

Show style Java API