Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.MetaRule


  @SuppressWarnings("unchecked")
  @Override
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset ruleset = super.createMetaRuleset(type);
   
    ruleset.addRule(new MetaRule() {

      @Override
      public Metadata applyRule(String name, final TagAttribute attribute, MetadataTarget metadataTarget) {
        if (FILTER_METHOD.equals(name)) {
          return new Metadata() {
View Full Code Here


    handler = new ColumnTagHandler(columnConfig) {

      @Override
      protected MetaRuleset createMetaRuleset(Class type) {
        MetaRuleset ruleset = super.createMetaRuleset(type);
        ruleset.addRule(new MetaRule() {

          @Override
          public Metadata applyRule(final String name,
              final TagAttribute attribute, MetadataTarget meta) {
            if (ColumnsAttributes.FILTER_ATTRIBUTES.indexOf(name) != -1 ||
View Full Code Here

  @SuppressWarnings("unchecked")
  @Override
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset ruleset = super.createMetaRuleset(type);
   
    ruleset.addRule(new MetaRule() {

      @Override
      public Metadata applyRule(String name, final TagAttribute attribute, MetadataTarget metadataTarget) {
        if (FILTER_METHOD.equals(name)) {
          return new Metadata() {
View Full Code Here

    handler = new ColumnTagHandler(columnConfig) {
     
      @Override
      protected MetaRuleset createMetaRuleset(Class type) {
        MetaRuleset ruleset = super.createMetaRuleset(type);
        ruleset.addRule(new MetaRule() {

          @Override
          public Metadata applyRule(final String name,
              final TagAttribute attribute, MetadataTarget meta) {
            if (ColumnsAttributes.FILTER_ATTRIBUTES.indexOf(name) != -1) {
View Full Code Here

  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
    Class[] paramList = new Class[]{String.class};
   
    MetaRule metaRule = new MethodRule("completeMethod", List.class, paramList);
    metaRuleset.addRule(metaRule);
   
    return metaRuleset;
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
    Class[] paramList = new Class[]{String.class, String[].class};
   
    MetaRule metaRule = new MethodRule("commandHandler", String.class, paramList);
    metaRuleset.addRule(metaRule);
   
    return metaRuleset;
  }
View Full Code Here

    super(componentConfig);
  }

  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
    metaRuleset.addRule(new MetaRule() {

      public Metadata applyRule(String name, final TagAttribute attribute, MetadataTarget meta) {
        if (meta.isTargetInstanceOf(UIDialogWindow.class)) {
         
          if ("closeWindowActionListener".equals(name)) {
View Full Code Here

  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
    Class[] paramList = new Class[]{Object.class, Object.class};
   
    MetaRule metaRule = new MethodRule("sortFunction", Integer.class, paramList);
    metaRuleset.addRule(metaRule);
   
    return metaRuleset;
  }
View Full Code Here

  }

  protected MetaRuleset createMetaRuleset(Class clazz) {
    MetaRuleset ruleset = super.createMetaRuleset(clazz);
   
    ruleset.addRule(new MetaRule() {

      public Metadata applyRule(String name, final TagAttribute attribute, MetadataTarget metadataTarget) {
        if (COLLAPSED_EXPANDED_LISTENER.equals(name)) {
          return new Metadata() {
            public void applyMetadata(FaceletContext context, Object object) {
View Full Code Here

  }

  MetaRuleset ruleset = super.createMetaRuleset(clazz);
  ruleset.alias("submitOnSlide", "onSlideSubmit");

  ruleset.addRule(new MetaRule() {

      public Metadata applyRule(String name, final TagAttribute attribute, MetadataTarget metadataTarget) {
    if (SLIDER_LISTENER.equals(name)) {
        return new Metadata() {
      public void applyMetadata(FaceletContext context, Object object) {
View Full Code Here

TOP

Related Classes of com.sun.facelets.tag.MetaRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.