Package org.apache.isis.viewer.dnd.view.text

Examples of org.apache.isis.viewer.dnd.view.text.ObjectTitleText


    public TableRowBorder(final Axes axes, final View wrappedRow) {
        super(wrappedRow);

        final Text text = Toolkit.getText(ColorsAndFonts.TEXT_NORMAL);
        icon = new IconGraphic(this, text);
        title = new ObjectTitleText(this, text);
        baseline = icon.getBaseline();

        left = requiredTitleWidth() + BORDER;

        axis = axes.getAxis(TableAxis.class);
View Full Code Here


        ICON_SIZE = IsisContext.getConfiguration().getInteger(LARGE_ICON_SIZE_PROPERTY, LARGE_ICON_SIZE);
    }

    public ServiceIcon(final Content content, final ViewSpecification specification) {
        super(content, specification);
        setTitle(new ObjectTitleText(this, Toolkit.getText(ColorsAndFonts.TEXT_ICON)));
        setSelectedGraphic(new IconGraphic(this, ICON_SIZE));
        setVertical(true);
    }
View Full Code Here

    @Override
    public View createView(final Content content, final Axes axes, final int sequence) {
        final Text style = Toolkit.getText(ColorsAndFonts.TEXT_NORMAL);
        final Icon icon = new Icon(content, this);
        icon.setTitle(new ObjectTitleText(icon, style));
        icon.setSelectedGraphic(new IconGraphic(icon, style));
        return icon;
    }
View Full Code Here

    @Override
    public View createView(final Content content, final Axes axes, final int sequence) {
        final Icon icon = new Icon(content, ImageViewSpecification.this);
        final Text textStyle = Toolkit.getText(ColorsAndFonts.TEXT_NORMAL);
        icon.setTitle(new ObjectTitleText(icon, textStyle));
        icon.setSelectedGraphic(new IconGraphic(icon, 68));
        icon.setUnselectedGraphic(new IconGraphic(icon, 60));
        icon.setVertical(true);

        return icon;
View Full Code Here

    @Override
    public View createView(final Content content, final Axes axes, final int sequence) {
        final Text style = Toolkit.getText(ColorsAndFonts.TEXT_NORMAL);
        final Icon icon = new Icon(content, this);
        icon.setTitle(new ObjectTitleText(icon, style));
        icon.setSelectedGraphic(new IconGraphic(icon, size));
        icon.setVertical(true);
        return new ObjectBorder(icon);
    }
View Full Code Here

    public IconBorder(final View wrappedView, final TitleText titleText, final IconGraphic iconGraphic, final Text style) {
        super(wrappedView);

        icon = iconGraphic == null ? new IconGraphic(this, style) : iconGraphic;
        text = titleText == null ? new ObjectTitleText(this, style) : titleText;
        titlebarHeight = ViewConstants.VPADDING + icon.getSize().getHeight() + 1;

        top = titlebarHeight + ViewConstants.VPADDING;
        left = right = ViewConstants.HPADDING;
        bottom = ViewConstants.VPADDING;
View Full Code Here

        super(wrappedView);

        replaceWithSpecification = replaceWith;

        icon = new IconGraphic(this, LABEL_STYLE);
        text = new ObjectTitleText(this, LABEL_STYLE);
        final int height = icon.getSize().getHeight();

        baseline = icon.getBaseline() + 1;

        left = 22;
View Full Code Here

    public TableRowBorder(final Axes axes, final View wrappedRow) {
        super(wrappedRow);

        final Text text = Toolkit.getText(ColorsAndFonts.TEXT_NORMAL);
        icon = new IconGraphic(this, text);
        title = new ObjectTitleText(this, text);
        baseline = icon.getBaseline();

        left = requiredTitleWidth() + BORDER;

        axis = axes.getAxis(TableAxis.class);
View Full Code Here

        ICON_SIZE = IsisContext.getConfiguration().getInteger(LARGE_ICON_SIZE_PROPERTY, LARGE_ICON_SIZE);
    }

    public ServiceIcon(final Content content, final ViewSpecification specification) {
        super(content, specification);
        setTitle(new ObjectTitleText(this, Toolkit.getText(ColorsAndFonts.TEXT_ICON)));
        setSelectedGraphic(new IconGraphic(this, ICON_SIZE));
        setVertical(true);
    }
View Full Code Here

        super(wrappedView);

        replaceWithSpecification = replaceWith;

        icon = new IconGraphic(this, LABEL_STYLE);
        text = new ObjectTitleText(this, LABEL_STYLE);
        final int height = icon.getSize().getHeight();

        baseline = icon.getBaseline() + 1;

        left = 22;
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.view.text.ObjectTitleText

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.