Package org.apache.wicket.model

Examples of org.apache.wicket.model.AbstractReadOnlyModel


{
  private static final long serialVersionUID = 1L;

  public TableOddEvenStyleAttributeModifier(final Component component)
  {
    super("class", true, new AbstractReadOnlyModel()
    {
      private static final long serialVersionUID = 219025080394690346L;

      @Override
      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

    MarkupContainer nodeLink = newNodeLink(item, "nodeLink", node);
    item.add(nodeLink);

    nodeLink.add(newNodeIcon(nodeLink, "icon", node));

    nodeLink.add(new Label("label", new AbstractReadOnlyModel()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public Object getObject()
View Full Code Here

      MarkupContainer nodeLink = newNodeLink(this, "nodeLink", node);
      add(nodeLink);

      nodeLink.add(newNodeIcon(nodeLink, "icon", node));

      nodeLink.add(new Label("label", new AbstractReadOnlyModel()
      {
        private static final long serialVersionUID = 1L;

        /**
         * @see org.apache.wicket.model.AbstractReadOnlyModel#getObject()
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

   * @param table
   *            dataview
   */
  public NavigatorLabel(final String id, final DataTable table)
  {
    super(id, new AbstractReadOnlyModel()
    {
      private static final long serialVersionUID = 1L;

      public Object getObject()
      {
View Full Code Here

      {
        editor = new EditorPanel("editor", model, new Model(attribute.getName()), type,
            true);
      }
    }
    editor.add(new AttributeModifier("class", true, new AbstractReadOnlyModel()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public Object getObject()
View Full Code Here

      add(newJunctionLink(this, "link", "image", node));

      add(newNodeIcon(this, "icon", node));

      add(new Label("label", new AbstractReadOnlyModel() {
        private static final long serialVersionUID = 1L;

        /**
         * @see org.apache.wicket.model.AbstractReadOnlyModel#getObject()
         */
 
View Full Code Here

          : new BooleanEditor("editor", model, labelModel);
    }
    else if (Enum.class.isAssignableFrom(clazz))
    {
      // Dig out other enum choices from the type of enum that it is.
      IModel enumChoices = new AbstractReadOnlyModel()
      {
        private static final long serialVersionUID = 1L;

        @Override
        public Object getObject()
        {
          return Arrays.asList(clazz.getEnumConstants());
        }

      };
      editor = isInplaceEditor ? getAjaxEditableChoiceLabel(model, labelModel, enumChoices,
          clazz) : new EnumEditor("editor", model, labelModel, enumChoices);
    }
    else if (clazz.isArray())
    {
      IModel arrayChoices = new AbstractReadOnlyModel()
      {
        private static final long serialVersionUID = 1L;

        @Override
        public Object getObject()
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.