Dimension d = new Dimension(175, 30);
setMinimumSize(d);
setPreferredSize(d);
setMaximumSize(d);
addMouseListeners();
leftButton = new LinkIconLabel(null, new InteractiveIcon(createLeftArrow()));
leftButton.addClickEvent(new BooleanEvent() {
@Override
public boolean fireEvent(Object object) {
fireAction(LEFTEVENT);
return true;
}
});
rightButton = new LinkIconLabel(null, new InteractiveIcon(createRightArrow()));
rightButton.addClickEvent(new BooleanEvent() {
@Override
public boolean fireEvent(Object object) {
fireAction(RIGHTEVENT);