本文整理匯總了Java中javax.faces.view.facelets.TagAttributes.getAll方法的典型用法代碼示例。如果您正苦於以下問題:Java TagAttributes.getAll方法的具體用法?Java TagAttributes.getAll怎麽用?Java TagAttributes.getAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.faces.view.facelets.TagAttributes
的用法示例。
在下文中一共展示了TagAttributes.getAll方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: convertTag
import javax.faces.view.facelets.TagAttributes; //導入方法依賴的package包/類
protected Tag convertTag(Tag tag, Namespace namespace, String localName) {
Location location = tag.getLocation();
String ns = namespace.uri;
String qName = namespace.name() + ":" + localName;
TagAttributes attributes = convertAttributes(tag.getAttributes(), tag);
Tag converted = new Tag(location, ns, localName, qName, attributes);
for (TagAttribute tagAttribute : attributes.getAll()) {
// set the correct tag
tagAttribute.setTag(converted);
}
return converted;
}
示例2: JKTagWrapper
import javax.faces.view.facelets.TagAttributes; //導入方法依賴的package包/類
/**
* Instantiates a new JK tag wrapper.
*
* @param tag
* the tag
*/
public JKTagWrapper(final Tag tag) {
this.tag = tag;
this.localName = tag.getLocalName();
this.location = tag.getLocation();
this.namespace = tag.getNamespace();
this.qName = tag.getQName();
final TagAttributes attributes = tag.getAttributes();
final TagAttribute[] all = attributes.getAll();
this.attributesList = new ArrayList<>();
for (final TagAttribute tagAttribute : all) {
this.attributesList.add(new JKTagAttributeWrapper(tagAttribute));
}
}
示例3: convertElementToInputTag
import javax.faces.view.facelets.TagAttributes; //導入方法依賴的package包/類
private Tag convertElementToInputTag(Tag tag, TagAttributes modifiedAttributes) {
TagAttribute[] attributes = modifiedAttributes.getAll();
TagAttribute[] lessAttributes = Arrays.copyOf(attributes, attributes.length - 1);
TagAttributes less = new AFTagAttributes(lessAttributes);
Tag t = new Tag(tag.getLocation(), BOOTSFACES_NAMESPACE, "inputText", "b:inputText", less);
return t;
}
示例4: convertElementToSelectOneMenuTag
import javax.faces.view.facelets.TagAttributes; //導入方法依賴的package包/類
private Tag convertElementToSelectOneMenuTag(Tag tag, TagAttributes modifiedAttributes) {
TagAttribute[] attributes = modifiedAttributes.getAll();
TagAttribute[] lessAttributes = Arrays.copyOf(attributes, attributes.length - 1);
TagAttributes less = new AFTagAttributes(lessAttributes);
Tag t = new Tag(tag.getLocation(), BOOTSFACES_NAMESPACE, "selectOneMenu", "b:selectOneMenu", less);
return t;
}
示例5: convertTofSelectItemText
import javax.faces.view.facelets.TagAttributes; //導入方法依賴的package包/類
/**
* Converts <option>firstComboboxItem</option> to <f:selectItem itemValue="firstComboxItem">.
*/
private Tag convertTofSelectItemText(Tag tag, TagAttributes attributeList) {
TagAttribute[] attributes = attributeList.getAll();
AFTagAttributes more = new AFTagAttributes(attributes);
more.replaceAttribute("value", "itemValue");
more.replaceAttribute("label", "itemLabel");
Tag t = new Tag(tag.getLocation(), JSF_CORE_NAMESPACE, "selectItem", "selectItem", more);
return t;
}
示例6: convertAttributes
import javax.faces.view.facelets.TagAttributes; //導入方法依賴的package包/類
protected TagAttributes convertAttributes(TagAttributes original, Tag element) {
Map<String, TagAttribute> attributes = new HashMap<String, TagAttribute>();
TagAttribute elementName = createElementName(element);
attributes.put(elementName.getQName(), elementName);
for (TagAttribute attribute : original.getAll()) {
TagAttribute converted = convertTagAttribute(attribute);
// avoid duplicates
attributes.put(converted.getQName(), converted);
}
return new AFTagAttributes(attributes.values().toArray(new TagAttribute[attributes.size()]));
}
示例7: convertToInputTag
import javax.faces.view.facelets.TagAttributes; //導入方法依賴的package包/類
private Tag convertToInputTag(Tag tag, TagAttributes attributeList) {
TagAttribute[] attributes = attributeList.getAll();
TagAttributes more = new AFTagAttributes(attributes);
Tag t = new Tag(tag.getLocation(), BOOTSFACES_NAMESPACE, "inputText", "b:inputText", more);
return t;
}
示例8: convertToSelectOneMenuTag
import javax.faces.view.facelets.TagAttributes; //導入方法依賴的package包/類
private Tag convertToSelectOneMenuTag(Tag tag, TagAttributes attributeList) {
TagAttribute[] attributes = attributeList.getAll();
TagAttributes more = new AFTagAttributes(attributes);
Tag t = new Tag(tag.getLocation(), BOOTSFACES_NAMESPACE, "selectOneMenu", "b:selectOneMenu", more);
return t;
}
示例9: convertDivElementToPanelGroup
import javax.faces.view.facelets.TagAttributes; //導入方法依賴的package包/類
private Tag convertDivElementToPanelGroup(Tag tag, TagAttributes modifiedAttributes, boolean isDiv) {
TagAttribute[] attributes = modifiedAttributes.getAll();
TagAttributes more = addBlockAttributeIfNeeded(tag, isDiv, attributes);
Tag t = new Tag(tag.getLocation(), JSF_NAMESPACE, "panelGroup", "h:panelGroup", more);
return t;
}
示例10: convertDivTagToPanelGroup
import javax.faces.view.facelets.TagAttributes; //導入方法依賴的package包/類
private Tag convertDivTagToPanelGroup(Tag tag, TagAttributes attributeList, boolean isDiv) {
TagAttribute[] attributes = attributeList.getAll();
TagAttributes more = addBlockAttributeIfNeeded(tag, isDiv, attributes);
Tag t = new Tag(tag.getLocation(), JSF_NAMESPACE, "panelGroup", "panelGroup", more);
return t;
}