1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
package com.osys.optima.component.taskPanel;
import javax.el.ValueExpression;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.webapp.UIComponentELTag;
/**
*
* @author guerineau
*/
public class TaskPanelTag extends UIComponentELTag {
private ValueExpression myid;
private String width;
private String height;
private ValueExpression value;
private ValueExpression icon_url;
private ValueExpression icon_position;
private String collapse;
public TaskPanelTag() {
}
public String getComponentType() {
return "myComponent.component.TaskPanel";
}
public String getRendererType() {
return "myFamily.renderer.taskPanelRenderer";
}
public void setProperties(UIComponent component) {
super.setProperties(component);
if (width!=null) component.getAttributes().put("width", width);
if (height!=null) component.getAttributes().put("height", height);
if (collapse!=null) component.getAttributes().put("collapse", collapse);
if (null != myid) {
if (!myid.isLiteralText()) {
component.setValueExpression("myid", myid);
} else {
component.getAttributes().put("myid", myid.getExpressionString());
}
}
if (null != value) {
if (!value.isLiteralText()) {
component.setValueExpression("value", value);
} else {
component.getAttributes().put("value", value.getExpressionString());
}
}
if (null != icon_url) {
if (!icon_url.isLiteralText()) {
component.setValueExpression("icon_url", icon_url);
} else {
component.getAttributes().put("icon_url", icon_url.getExpressionString());
}
}
if (null != icon_position) {
if (!icon_position.isLiteralText()) {
component.setValueExpression("icon_position", icon_position);
} else {
component.getAttributes().put("icon_position", icon_position.getExpressionString());
}
}
}
public ValueExpression getMyid() {
return myid;
}
public void setMyid(ValueExpression myid) {
this.myid = myid;
}
public String getWidth() {
return width;
}
public void setWidth(String width) {
this.width = width;
}
public String getHeight() {
return height;
}
public void setHeight(String height) {
this.height = height;
}
public ValueExpression getValue() {
return value;
}
public void setValue(ValueExpression value) {
this.value = value;
}
public ValueExpression getIcon_url() {
return icon_url;
}
public void setIcon_url(ValueExpression icon_url) {
this.icon_url = icon_url;
}
public ValueExpression getIcon_position() {
return icon_position;
}
public void setIcon_position(ValueExpression icon_position) {
this.icon_position = icon_position;
}
public String getCollapse() {
return collapse;
}
public void setCollapse(String collapse) {
this.collapse = collapse;
}
} |
Partager