* @author Aurelien Ribon | http://www.aurelienribon.com/
*/
public class AbstractButtonProcessor implements DeclarationSetProcessor<AbstractButton>, SwingProperties {
@Override
public void process(AbstractButton t, DeclarationSet ds) {
Property p;
p = borderPainted; if (ds.contains(p)) t.setBorderPainted(ds.getValue(p, Boolean.class));
p = contentAreaFilled; if (ds.contains(p)) t.setContentAreaFilled(ds.getValue(p, Boolean.class));
p = margin; if (ds.contains(p)) t.setMargin(ds.getValue(p, Insets.class, SwingFunctions.insets));
p = horizAlign; if (ds.contains(p)) t.setHorizontalAlignment(SwingUtils.asHAlign(ds.getValue(p, String.class)));