Package org.apache.wicket.model

Examples of org.apache.wicket.model.AbstractReadOnlyModel


      protected void onModelChanging()
      {
        AjaxEditableMultiLineLabel.this.onModelChanging();
      }
    };
    editor.add(new AttributeModifier("rows", new AbstractReadOnlyModel()
    {
      private static final long serialVersionUID = 1L;

      public Object getObject()
      {
        return new Integer(rows);
      }
    }));
    editor.add(new AttributeModifier("cols", new AbstractReadOnlyModel()
    {
      private static final long serialVersionUID = 1L;

      public Object getObject()
      {
View Full Code Here


      throw new IllegalArgumentException("argument [tabs] cannot be null");
    }

    this.tabs = tabs;

    final IModel tabCount = new AbstractReadOnlyModel()
    {
      private static final long serialVersionUID = 1L;

      public Object getObject()
      {
View Full Code Here

   * @see org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel#newEditor(org.apache.wicket.MarkupContainer,
   *      java.lang.String, org.apache.wicket.model.IModel)
   */
  protected FormComponent newEditor(MarkupContainer parent, String componentId, IModel model)
  {
    IModel choiceModel = new AbstractReadOnlyModel()
    {

      private static final long serialVersionUID = 1L;

      public Object getObject()
View Full Code Here

    super(id);

    // create and add components

    IModel listViewModel = new AbstractReadOnlyModel() {

      private static final long serialVersionUID = 7397553165530168752L;

      @Override
      public Object getObject() {
View Full Code Here

     */
    public Header(final String id, final IWizard wizard)
    {
      super(id);
      setModel(new CompoundPropertyModel(wizard));
      add(new Label("title", new AbstractReadOnlyModel()
      {
        private static final long serialVersionUID = 1L;

        public Object getObject()
        {
          return getTitle();
        }
      }).setEscapeModelStrings(false));
      add(new Label("summary", new AbstractReadOnlyModel()
      {
        private static final long serialVersionUID = 1L;

        public Object getObject()
        {
View Full Code Here

     */
    public LocaleDropDownChoice(String id)
    {
      super(id);
      // sort locales on strings of selected locale
      setChoices(new AbstractReadOnlyModel()
      {
        @Override
        public Object getObject()
        {
          getSelectedLocale();
View Full Code Here

          "argument [tabs] must contain a list of at least one tab");
    }

    this.tabs = tabs;

    final IModel tabCount = new AbstractReadOnlyModel()
    {
      private static final long serialVersionUID = 1L;

      public Object getObject()
      {
View Full Code Here

     */
    public Header(final String id, final IWizard wizard)
    {
      super(id);
      setModel(new CompoundPropertyModel(wizard));
      add(new Label("title", new AbstractReadOnlyModel()
      {
        private static final long serialVersionUID = 1L;

        public Object getObject()
        {
          return getTitle();
        }
      }).setEscapeModelStrings(false));
      add(new Label("summary", new AbstractReadOnlyModel()
      {
        private static final long serialVersionUID = 1L;

        public Object getObject()
        {
View Full Code Here

    // Need to ajax refresh
    setOutputMarkupId(true);

    // Show how many animals have been selected
    animalSelectionLabel = new Label("animalSelectionLabel", new AbstractReadOnlyModel()
    {
      private static final long serialVersionUID = 6792322972316712326L;

      @Override
      public Object getObject()
View Full Code Here

      item.add(new Label("lastname", contact.getLastName()));
      item.add(new Label("homephone", contact.getHomePhone()));
      item.add(new Label("cellphone", contact.getCellPhone()));

      final int idx = index;
      item.add(new AttributeModifier("class", true, new AbstractReadOnlyModel()
      {
        public Object getObject()
        {
          return (idx % 2 == 1) ? "even" : "odd";
        }
View Full Code Here

TOP

Related Classes of org.apache.wicket.model.AbstractReadOnlyModel

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.