com.alee.laf.text.AdaptiveFormattedTextFieldPainter 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 FormattedTextFieldPainter adapter class.
* It is used to install simple non-specific painters into WebFormattedTextFieldUI.
*
* @author Alexandr Zernov
*/
public final class AdaptiveFormattedTextFieldPainter
extends AdaptivePainter implements IFormattedTextFieldPainter
{
/**
* Constructs new AdaptiveFormattedTextFieldPainter for the specified painter.
*
* @param painter painter to adapt
*/
public AdaptiveFormattedTextFieldPainter ( 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;
}
}