Package org.apache.wicket.model

Examples of org.apache.wicket.model.Model


            if (colPos >= columns) {
                colPos = 0;
            }
        }
       
        Model propModel = new Model<Serializable>((Serializable) rowsAndCols);
        add( new RowListView("r", propModel) );
    }
View Full Code Here


        protected void populateItem(ListItem item)
        {
            List<ElementMetaData> columns = (List<ElementMetaData>)item.getModelObject();
           
            item.add( new ColListView("c", new Model((Serializable)columns)));
        }
View Full Code Here

        }
        else {
            displayedProperties = beanMetaData.getTabElements(tabMetaData);
        }
       
        Model propModel = new Model<Serializable>((Serializable) displayedProperties);
        add( new RowListView("r", propModel) );
    }
View Full Code Here

  public ChoiceComponentPage()
  {
    form = new Form<Void>("form");
    add(form);

    group = new RadioGroup<Boolean>("group", new Model(Boolean.TRUE));
    group.add(new AjaxFormChoiceComponentUpdatingBehavior()
    {
      @Override
      protected void onUpdate(AjaxRequestTarget target)
      {
View Full Code Here

                ? ""
                : userTO.getUsername()));

        fragment.add(new Label("new", userTO.getId() == 0
                ? new ResourceModel("new")
                : new Model("")));

        final Form form = new Form("UserForm");
        form.setModel(new CompoundPropertyModel(userTO));

        //--------------------------------
View Full Code Here

        super();

        this.add(new Label("new", StringUtils.isBlank(resourceTO.getName())
                ? new ResourceModel("new")
                : new Model("")));

        this.add(new Label("name", StringUtils.isBlank(resourceTO.getName())
                ? ""
                : resourceTO.getName()));
View Full Code Here

    final SubmitLink submitComponent = new SubmitLink("submitComponent");
    final SubmitLink submitFormComponent = new SubmitLink("submitFormComponent");
    final SubmitLink submitForm = new SubmitLink("submitForm");

    final InvalidPanel invalidPanel = new InvalidPanel("invalidPanel");
    final CheckBox formComponent = new CheckBox("formComponent", new Model());

    Form form = new Form("form")
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

                return panel;
            }

            @Override
            public Component getHeader(String componentId) {
                final ActionLinksPanel panel = new ActionLinksPanel(componentId, new Model(), pageRef);

                panel.add(new ActionLink() {

                    private static final long serialVersionUID = -7978723352517770644L;
View Full Code Here

    private final BulkActionRes results;

    private final String idFieldName;

    public ActionResultColumn(final BulkActionRes results, final String idFieldName) {
        super(new Model());
        this.results = results;
        this.idFieldName = idFieldName;
    }
View Full Code Here

        super(id);

        // ------------------------
        // Creation date
        // ------------------------
        add(new Label("creationDate", new Model(userTO.getCreationDate() != null
                ? SyncopeSession.get().getDateFormat().format(userTO.getCreationDate())
                : "")));
        // ------------------------

        // ------------------------
        // Change password date
        // ------------------------
        add(new Label("changePwdDate", new Model(userTO.getChangePwdDate() != null
                ? SyncopeSession.get().getDateFormat().format(userTO.getChangePwdDate())
                : "")));
        // ------------------------

        // ------------------------
        // Last login date
        // ------------------------
        add(new Label("lastLoginDate", new Model(userTO.getLastLoginDate() != null
                ? SyncopeSession.get().getDateFormat().format(userTO.getLastLoginDate())
                : "")));
        // ------------------------

        // ------------------------
        // Failed logins
        // ------------------------
        add(new Label("failedLogins", new Model(userTO.getFailedLogins() != null
                ? userTO.getFailedLogins()
                : "")));
        // ------------------------

        // ------------------------
        // Token
        // ------------------------
        add(new Label("token", new Model(userTO.getToken() != null
                ? userTO.getToken()
                : "")));
        // ------------------------

        // ------------------------
        // Token expire time
        // ------------------------
        add(new Label("tokenExpireTime", new Model(userTO.getTokenExpireTime() != null
                ? userTO.getTokenExpireTime()
                : "")));
        // ------------------------
    }
View Full Code Here

TOP

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

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.