|
CS 1705 Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zhtml.Text
cs1705.web.internal.JavaStatementElement
cs1705.web.Import
public class Import
A ZUL import statement for Java classes.
An <import> tag takes a single property. For convenience, you can spell this property in two different ways, depending on what makes your code more readable:
class - The name of a single Java class to import, orclasses - The name of a Java package, plus ".*", to
import all classes in a packageExamples:
<!-- Import a single class --> <import class="java.io.File"/> <!-- Import a whole package --> <import classes="java.util.*"/>
| Field Summary |
|---|
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
Import()
Creates a new Import component. |
|
| Method Summary | |
|---|---|
String |
getClasses()
Accessor for the "classes" property. |
void |
setClass(String newClass)
Mutator for the "class" property. |
void |
setClasses(String newClasses)
Mutator for the "classes" property. |
| Methods inherited from class cs1705.web.internal.JavaStatementElement |
|---|
redraw |
| Methods inherited from class org.zkoss.zhtml.Text |
|---|
getValue, invalidate, isChildable, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Import()
| Method Detail |
|---|
public void setClass(String newClass)
Object.getClass() performs a different (and
important!) function.
newClass - The name of the Java class to importpublic String getClasses()
public void setClasses(String newClasses)
newClasses - The Java package pattern to import (e.g.,
"some.package.*").
|
Last updated: Wed, Apr 1, 2009 12:29 AM EDT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||