Package org.apache.wicket

Examples of org.apache.wicket.AttributeModifier


                            BeanWrapper bwi = new BeanWrapperImpl(model.getObject());
                            Object obj = bwi.getPropertyValue(field);

                            item.add(new Label(componentId, ""));
                            item.add(new AttributeModifier("class", new Model<String>(obj.toString())));
                        }

                        @Override
                        public String getCssClass() {
                            return "small_fixedsize";
View Full Code Here


            add(editSchemaWin);

            WebMarkupContainer schemaWrapContainer = new WebMarkupContainer("schemaWrapContainer");
            schemaWrapContainer.setOutputMarkupId(true);
            if (schemaType != SchemaType.VIRTUAL) {
                schemaWrapContainer.add(new AttributeModifier("style", "width:auto;"));
            }
            add(schemaWrapContainer);

            WebMarkupContainer schemaContainer = new WebMarkupContainer("schemaContainer");
            schemaContainer.setOutputMarkupId(true);
View Full Code Here

        saveButton.setDefaultModel(new ResourceModel("pam.details.action.save"));
        footer.add(saveButton);
        Button deleteBtn = deleteButton("delete");
        deleteBtn.add(new JavascriptEventConfirmation("onclick", new ResourceModel("pam.details.action.delete.confirm")));
        footer.add(deleteBtn);
        footer.add(new AttributeModifier("colspan", true, new Model<Integer>(Integer.valueOf(getColumnCount()))));
       
        form.add(footer);
        add(form);
       
        return this;
View Full Code Here

        return this.cellWidth;
    }

    public void populateItem(Item item, String componentId, IModel model)
    {
        item.add(new AttributeModifier("width", true, new Model(getCellWidth())));
        item.add(new CheckBoxPanel(item, componentId, model));
    }
View Full Code Here

        return this.cellWidth;
    }

    public void populateItem(Item item, String componentId, IModel model)
    {
        item.add(new AttributeModifier("width", true, new Model(getCellWidth())));
        item.add(new ImagePanel(item, componentId, model));
    }
View Full Code Here

        public Object getObject()
        {
          return urlFor(resourceReference);
        };
      };
      add(new AttributeModifier("src", true, srcReplacement));
    }
View Full Code Here

        public String getObject()
        {
          return urlFor(resourceReference).toString();
        };
      };
      add(new AttributeModifier("src", true, srcReplacement));
    }
View Full Code Here

                }
            };
        }
           
        if (confirmMsg != null) {
            button.add( new AttributeModifier("onclick", true, null) {
                private static final long serialVersionUID = 1L;

                @Override
                protected String newValue(String currentValue, String replacementValue)
                {
View Full Code Here

                }
            }

            beanMetaData.applyCss(bean, element, component);

            item.add( new AttributeModifier(PARAM_COLSPAN, true, new Model<String>(String.valueOf(colspan))) );
            int pct100 = (colspan * 10000) / columns;
            String width = "width: " + (pct100 / 100) + "." + (pct100 % 100) + "%;";
            item.add( new AttributeModifier("style", true, new Model<String>(width)) );
            item.add(component);
        }
View Full Code Here

   */
  public RedirectPage(final CharSequence url, final int waitBeforeRedirectInSeconds)
  {
    final WebMarkupContainer redirect = new WebMarkupContainer("redirect");
    final String content = waitBeforeRedirectInSeconds + ";URL=" + url;
    redirect.add(new AttributeModifier("content", new Model<>(content)));
    add(redirect);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.AttributeModifier

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.