com.alee.laf.checkbox.CheckBoxPainter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weblaf-ui Show documentation
Show all versions of weblaf-ui Show documentation
WebLaf is a Java Swing Look and Feel and extended components library for cross-platform applications
package com.alee.laf.checkbox;
import com.alee.painter.decoration.DecorationState;
import com.alee.painter.decoration.IDecoration;
import javax.swing.*;
import java.util.List;
/**
* @author Alexandr Zernov
*/
public class CheckBoxPainter>
extends AbstractStateButtonPainter implements ICheckBoxPainter
{
@Override
protected List getDecorationStates ()
{
final List states = super.getDecorationStates ();
if ( component.isSelected () )
{
states.add ( DecorationState.checked );
}
return states;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy