Package org.jitterbit.ui.widget.text

Examples of org.jitterbit.ui.widget.text.TextDecorator


       
        @Override
        public void decorate(TreeNodeDecor decor) {
            decor.setText("Text: " + getUserObject());
            decor.setToolTip("Tooltip: " + getUserObject());
            decor.setTextStyle(new TextDecorator() {

                @Override
                public Font getFont() {
                    return new Font("Dialog", Font.PLAIN, 10);
                }
View Full Code Here


    }

    @Override
    public void decorate(TreeNodeDecor decor) {
        decor.setText(getDisplayName());
        decor.setTextStyle(new TextDecorator() {

            @Override
            public Font getFont() {
                return null;
            }
View Full Code Here

    protected AttributeSelectionNode(LdapStructureAttribute attr, KongaTreeNode parent) {
        super(parent, attr, false);
        displayName = createDisplayName(attr);
        tooltip = new AttributeToolTip(attr).get();
        final Color color = getColor();
        textStyle = new TextDecorator() {

            @Override
            public Font getFont() {
                return null;
            }
View Full Code Here

    @Override
    public void decorate(TreeNodeDecor decor) {
        decor.setText(getUserObject().toString());
        final Font font = decor.getTree().getFont().deriveFont(Font.ITALIC);
        decor.setTextStyle(new TextDecorator() {

            @Override
            public Font getFont() {
                return font;
            }
View Full Code Here

    public void setEnabled(boolean value) {
        enabled = value;
    }
   
    private static TextDecorator getDefaultStyle(final TreeNodeDecor decor) {
        return new TextDecorator() {

            @Override
            public Font getFont() {
                return decor.getTree().getFont();
            }
View Full Code Here

        @Override
        public void decorate(final TreeNodeDecor decor) {
            decor.setText(display);
            decor.setToolTip(tooltip);
            if (textStyle == null) {
                textStyle = new TextDecorator() {

                    @Override
                    public Font getFont() {
                        return decor.getTree().getFont();
                    }
View Full Code Here

    /**
     * Creates a <code>TextDecorator</code> adapter from this <code>TextStyle</code>.
     */
    public TextDecorator asTextDecorator() {
        if (textDecorator == null) {
            textDecorator = new TextDecorator() {

                @Override
                public Font getFont() {
                    return font;
                }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.text.TextDecorator

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.