Java Reference
In-Depth Information
public var cancel : function(): Void;
public var complete : function(): Void;
public var tasks: String[];
public var currentTask: Integer;
init {
skin = WizardSkin {};
}
}
Listing 12.19 shows the definition for the
WizardItem
class.
WizardItem
extends
CustomNode
and provides control functionality to support the wizard
framework. The
WizardItem
itself merely encapsulates the node in a
Group
.
Listing 12.19
WizardItem
public class WizardItem extends CustomNode {
public var
node
: Node;
public var
wizardParent
: WizardItem;
public var
wizard
:Wizard;
public var
taskId
:Integer;
public var
nextItems
: WizardItem[]
on replace oldValues [lo..hi] = newValues {
for(old in oldValues) {
old.wizardParent = null;
}
for(item in newValues) {
item.wizardParent = this;
}
}
public var
next
: function(): WizardItem = function() {
nextItems[0];
};
public var
message
: String;
public override function
create
(): Node {
return Group {
content: bind node
};
}
}
Search WWH ::
Custom Search