Examples of ViewFactory


Examples of org.apache.isis.viewer.dnd.util.ViewFactory

    return "Grid Column";
  }
 
    private static class ColumnSubviews implements SubviewSpec {
        public View createSubview(Content content, ViewAxis axis) {
            ViewFactory factory = Skylark.getViewFactory();

            ViewSpecification specification;

            if (content instanceof OneToManyField) {
                specification = new ScheduleSpecification();
            } else if (content instanceof ValueContent) {
                specification = factory.getValueFieldSpecification((ValueContent) content);
            } else if (content instanceof ObjectContent) {
                specification = factory.getIconizedSubViewSpecification((ObjectContent) content);
            } else {
                throw new ObjectAdapterRuntimeException();
            }

            return specification.createView(content, axis);
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.ViewFactory

import org.apache.isis.viewer.dnd.view.composite.StackLayout;

public abstract class AbstractTableSpecification extends CompositeViewSpecification {

    public AbstractTableSpecification() {
        builder = new CollectionElementBuilder(new ViewFactory() {
            TableRowSpecification rowSpecification = new TableRowSpecification();

            // TODO do directly without specification
            @Override
            public View createView(final Content content, final Axes axes, final int sequence) {
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.ViewFactory

public class TreeNodeSpecification extends CompositeViewSpecification {

    public TreeNodeSpecification() {
        builder = new ViewBuilder() {
            ViewBuilder objectBuilder = new ObjectFieldBuilder(new ViewFactory() {
                @Override
                public View createView(final Content content, final Axes axes, final int sequence) {
                    if (content.isTextParseable() || content.getAdapter() == null) {
                        return null;
                    } else if (content.isObject()) {
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.ViewFactory

        });
        return associationList;
    }

    public HistogramSpecification() {
        builder = new CollectionElementBuilder(new ViewFactory() {
            @Override
            public View createView(final Content content, final Axes axes, final int sequence) {
                return new HistogramBar(content, axes.getAxis(HistogramAxis.class), HistogramSpecification.this);
            }
        });
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.ViewFactory

        addViewDecorator(new IconBorder.Factory());
    }

    @Override
    protected ViewFactory createElementFactory() {
        return new ViewFactory() {
            @Override
            public View createView(final Content content, final Axes axes, final int sequence) {
                final View icon = new ImageViewSpecification().createView(content, axes, sequence);
                /*
                 * Icon icon = new Icon(content,
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.ViewFactory

               
                ignoring(mockContainer);
            }
        });

        final ViewFactory subviewSpec = new ViewFactory() {
            @Override
            public View createView(final Content content, final Axes axes, final int fieldNumber) {
                return new DummyView();
            }
        };
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.ViewFactory

import org.apache.isis.viewer.dnd.view.composite.StackLayout;

public abstract class SelectionListSpecification extends CompositeViewSpecification {

    public SelectionListSpecification() {
        builder = new SelectionListBuilder(new ViewFactory() {
            @Override
            public View createView(final Content content, final Axes axes, final int fieldNumber) {
                final View elementView = createElementView(content);
                final SelectionListAxis axis = axes.getAxis(SelectionListAxis.class);
                axes.add(axis);
View Full Code Here

Examples of org.cruxframework.crux.core.rebind.screen.ViewFactory

   */
  private void generateLazyDepsForChildren(JSONObject widget, String parentId, JSONObject dependencies) throws JSONException, ClassNotFoundException
  {
    if (widget.has("_children"))
    {
      ViewFactory factory = ViewFactory.getInstance();
      JSONArray children = widget.getJSONArray("_children");
      int size = children.length();
      for (int i=0; i<size; i++)
      {
        JSONObject child = children.getJSONObject(i);
        if (child != null)
        {
          String lazyId = parentId;
          if (factory.isValidWidget(child))
          {
            String childId = child.getString("id");
              addDependency(dependencies, childId, parentId);
            if (checkLazy(child))
            {
View Full Code Here

Examples of org.ofbiz.webapp.view.ViewFactory

        this.context = context;

        // init the ControllerConfig, but don't save it anywhere
        this.controllerConfigURL = ConfigXMLReader.getControllerConfigURL(context);
        ConfigXMLReader.getControllerConfig(this.controllerConfigURL);
        this.viewFactory = new ViewFactory(this);
        this.eventFactory = new EventFactory(this);
    }
View Full Code Here

Examples of org.ofbiz.webapp.view.ViewFactory

        this.context = context;

        // init the ControllerConfig, but don't save it anywhere
        this.controllerConfigURL = ConfigXMLReader.getControllerConfigURL(context);
        ConfigXMLReader.getControllerConfig(this.controllerConfigURL);
        this.viewFactory = new ViewFactory(this);
        this.eventFactory = new EventFactory(this);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.