您的位置:首页 > Web前端 > JavaScript

jsf自定义toolbar组件

2007-12-17 10:17 369 查看
package com.cfcc.jaf.webx.component.toolbar;

import javax.faces.application.Application;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import javax.faces.webapp.UIComponentTag;

package com.cfcc.jaf.webx.component.toolbar;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import javax.faces.component.UICommand;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.el.MethodBinding;
import javax.faces.event.ActionEvent;

import org.apache.myfaces.custom.navmenu.NavigationMenuUtils;
import org.apache.myfaces.renderkit.html.util.AddResource;
import org.apache.myfaces.renderkit.html.util.AddResourceFactory;
import org.apache.myfaces.shared_tomahawk.el.SimpleActionMethodBinding;
import org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils;
import org.apache.myfaces.shared_tomahawk.renderkit.html.util.FormInfo;

import com.cfcc.jaf.webx.faces.ToolBarItem;

function jump(form,index)
{
var dummyForm = document.forms[form];
dummyForm.elements['toolbar_index'].value = index;
dummyForm.submit();

}

function mover(obj)
{
obj.className = "toolbarover";
}

function mout(obj)
{
obj.className = "toolbarout";
}

.toolbarover0 {
FILTER: alpha(opacity = 100, style = 3, finishopacity = 0)
;
background-color: BLACK;
cursor: hand;
}

.toolbarout {
border: 1px solid white;
FILTER: alpha(opacity = 100, style = 3, finishopacity = 0) gray
;
background-color: WHITE;
cursor: hand;
}

.toolbarover2 {
FILTER: flipv;
background-color: #EFEBDE;
cursor: hand;
}

.toolbarover {
border: 1px dashed black;
background-color: #BLACK;
cursor: hand;
}

.toolbarout1 {
border: 1px solid white;
FILTER: alpha(opacity = 100, style = 3, finishopacity = 0)
;
background-color: WHITE;
cursor: hand;
}
<tag>
<name>toolbar</name>
<tag-class>com.cfcc.jaf.webx.component.toolbar.UIToolBarTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>size</name>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
</attribute>
</tag>

<!-- added by qinjinwei,toolbar -->
<component>
<component-type>
com.cfcc.jaf.webx.component.toolbar.UIToolBar
</component-type>
<component-class>
com.cfcc.jaf.webx.component.toolbar.UIToolBar
</component-class>
</component>

Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1781342
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: