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

Examples of org.apache.isis.viewer.dnd.view.border.LineBorder


    @Override
    public void showInOverlay(final Content content, final Location location) {
        View view;
        view = Toolkit.getViewFactory().createView(new ViewRequirement(content, ViewRequirement.OPEN));
        view =
            new LineBorder(2, Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY2), new BackgroundBorder(
                Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY3), view));
        final Size size = view.getRequiredSize(Size.createMax());
        location.subtract(size.getWidth() / 2, size.getHeight() / 2);
        view.setLocation(location);
        setOverlayView(view);
View Full Code Here


        if (!canChangeValue().isAllowed() || click.isShift() || click.button2()) {
            final ObjectAdapter valueAdapter = getContent().getAdapter();
            if (valueAdapter != null && valueAdapter.titleString().length() > 0) {
                final View textView =
                    new BackgroundBorder(Toolkit.getColor(ColorsAndFonts.COLOR_PRIMARY3), new LineBorder(1,
                        Toolkit.getColor(ColorsAndFonts.COLOR_PRIMARY1), new TextView(getContent(), null)));
                getViewManager().setOverlayView(textView);

                final int offset = getView().getPadding().getLeft();
                final Location location = getAbsoluteLocation();
View Full Code Here

                 * icon.setSelectedGraphic(new IconGraphic(icon, 68)); icon.setUnselectedGraphic(new IconGraphic(icon,
                 * 60)); icon.setVertical(true);
                 *
                 * // return icon;
                 */
                final LineBorder lineBorderedIcon = new LineBorder(icon);
                lineBorderedIcon.setPadding(4);
                lineBorderedIcon.setColor(Toolkit.getColor(ColorsAndFonts.COLOR_PRIMARY3));

                // return lineBorderedIcon;

                return new ReplaceViewBorder(lineBorderedIcon);
            }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.view.border.LineBorder

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.