Package org.apache.isis.viewer.dnd.icon

Examples of org.apache.isis.viewer.dnd.icon.IconElementFactory


        return super.canDisplay(requirement) && requirement.isExpandable();
    }

    @Override
    protected ViewFactory createFieldFactory() {
        return new IconElementFactory();
    }
View Full Code Here


                final int cellNo = acrossThenDown ? row * columns + column : column * rows + row;
                View cell;
                if (cellContents[cellNo] == null) {
                    cell = new BlankView(new NullContent());
                } else {
                    cell = new CompositeViewUsingBuilder(cellContents[cellNo], null, new Axes(), new StackLayout(), new CollectionElementBuilder(new IconElementFactory()));
                    cell = new ScrollBorder(cell);
                }
                cells[cellNo] = cell;
                addView(cell);
            }
View Full Code Here

        builder.addSubviewDecorator(new ExpandableViewBorder.Factory());
    }

    @Override
    protected ViewFactory createElementFactory() {
        return new IconElementFactory();
    }
View Full Code Here

                @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()) {
                        return new IconElementFactory().createView(content, axes, 0); // TreeNodeSpecification.this.createView(content,
                                                                                      // axes);
                    } else {
                        return TreeNodeSpecification.this.createView(content, axes, -1);
                    }
                }
            });

            ViewBuilder collectiontBuilder = new CollectionElementBuilder(new IconElementFactory());

            {
                final Factory decorator = new ExpandableViewBorder.Factory(null, TreeNodeSpecification.this, null);
                objectBuilder.addSubviewDecorator(decorator);
                collectiontBuilder.addSubviewDecorator(decorator);
View Full Code Here

        return new ViewSpecification[] { collectionNodeSpec, objectNodeSpec };
    }

    @Override
    protected ViewFactory createElementFactory() {
        return new IconElementFactory();
    }
View Full Code Here

// TODO use the superclass instead
public class SimpleListSpecification extends AbstractCollectionViewSpecification {

    @Override
    protected ViewFactory createElementFactory() {
        return new IconElementFactory();
    }
View Full Code Here

                final int cellNo = acrossThenDown ? row * columns + column : column * rows + row;
                View cell;
                if (cellContents[cellNo] == null) {
                    cell = new BlankView(new NullContent());
                } else {
                    cell = new CompositeViewUsingBuilder(cellContents[cellNo], null, new Axes(), new StackLayout(), new CollectionElementBuilder(new IconElementFactory()));
                    cell = new ScrollBorder(cell);
                }
                cells[cellNo] = cell;
                addView(cell);
            }
View Full Code Here

                if (cellContents[cellNo] == null) {
                    cell = new BlankView(new NullContent());
                } else {
                    cell =
                        new CompositeViewUsingBuilder(cellContents[cellNo], null, new Axes(), new StackLayout(),
                            new CollectionElementBuilder(new IconElementFactory()));
                    cell = new ScrollBorder(cell);
                }
                cells[cellNo] = cell;
                addView(cell);
            }
View Full Code Here

        return new ViewSpecification[] { collectionNodeSpec, objectNodeSpec };
    }

    @Override
    protected ViewFactory createElementFactory() {
        return new IconElementFactory();
    }
View Full Code Here

        builder.addSubviewDecorator(new ExpandableViewBorder.Factory());
    }

    @Override
    protected ViewFactory createElementFactory() {
        return new IconElementFactory();
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.icon.IconElementFactory

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.