com.alee.laf.text.AdaptiveTextPanePainter Maven / Gradle / Ivy
package com.alee.laf.text;
import com.alee.painter.AdaptivePainter;
import com.alee.painter.Painter;
import javax.swing.*;
/**
* Simple {@link TextPanePainter} adapter class.
* It is used to install simple non-specific painters into {@link WTextPaneUI}.
*
* @param component type
* @param component UI type
* @author Alexandr Zernov
*/
public final class AdaptiveTextPanePainter extends AdaptivePainter
implements ITextPanePainter
{
/**
* Constructs new {@link AdaptiveTextPanePainter} for the specified painter.
*
* @param painter {@link Painter} to adapt
*/
public AdaptiveTextPanePainter ( final Painter painter )
{
super ( painter );
}
@Override
public String getInputPrompt ()
{
return null;
}
@Override
public boolean isInputPromptVisible ()
{
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy