19 package org.turro.command;
21 import org.zkoss.zk.ui.HtmlBasedComponent;
22 import org.zkoss.zul.Label;
23 import org.zkoss.zul.impl.LabelImageElement;
31 private HtmlBasedComponent component;
34 this.component = component;
41 public HtmlBasedComponent
setWidth(String width) {
42 component.setWidth(width);
46 public HtmlBasedComponent
setVflex(String flex) {
47 component.setVflex(flex);
52 component.setTooltiptext(tooltiptext);
56 public HtmlBasedComponent
setStyle(String style) {
57 component.setStyle(style);
61 public HtmlBasedComponent
setSclass(String sclass) {
62 component.setSclass(sclass);
66 public HtmlBasedComponent
setHflex(String flex) {
67 component.setHflex(flex);
71 public HtmlBasedComponent
setHeight(String height) {
72 component.setHeight(height);
76 public HtmlBasedComponent
setFocus(
boolean focus) {
77 component.setFocus(focus);
82 component.setDroppable(droppable);
87 component.setDraggable(draggable);
91 public HtmlBasedComponent
setLabel(String label) {
92 if(component instanceof Label) {
93 ((Label) component).setValue(label);
94 }
if(component instanceof LabelImageElement) {
95 ((LabelImageElement) component).setLabel(label);
101 if(component instanceof LabelImageElement) {
102 ((LabelImageElement) component).setImage(image);
HtmlBasedComponent setLabel(String label)
ControlAdapter(HtmlBasedComponent component)
HtmlBasedComponent setVflex(String flex)
HtmlBasedComponent setFocus(boolean focus)
HtmlBasedComponent setWidth(String width)
HtmlBasedComponent setHflex(String flex)
HtmlBasedComponent setDraggable(String draggable)
HtmlBasedComponent getComponent()
HtmlBasedComponent setTooltiptext(String tooltiptext)
HtmlBasedComponent setSclass(String sclass)
HtmlBasedComponent setStyle(String style)
HtmlBasedComponent setImage(String image)
HtmlBasedComponent setDroppable(String droppable)
HtmlBasedComponent setHeight(String height)