All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alee.laf.text.AdaptivePasswordFieldPainter Maven / Gradle / Ivy

package com.alee.laf.text;

import com.alee.painter.AdaptivePainter;
import com.alee.painter.Painter;

import javax.swing.*;
import java.awt.*;

/**
 * Simple {@link PasswordFieldPainter} adapter class.
 * It is used to install simple non-specific painters into {@link WPasswordFieldUI}.
 *
 * @param  component type
 * @param  component UI type
 * @author Alexandr Zernov
 */

public final class AdaptivePasswordFieldPainter extends AdaptivePainter
        implements IPasswordFieldPainter
{
    /**
     * Constructs new {@link AdaptivePasswordFieldPainter} for the specified painter.
     *
     * @param painter {@link Painter} to adapt
     */
    public AdaptivePasswordFieldPainter ( final Painter painter )
    {
        super ( painter );
    }

    @Override
    public String getInputPrompt ()
    {
        return null;
    }

    @Override
    public boolean isInputPromptVisible ()
    {
        return false;
    }

    @Override
    public Component getLeadingComponent ()
    {
        return null;
    }

    @Override
    public Component getTrailingComponent ()
    {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy