You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
package com.fr.design.mainframe.widget.arrangement.buttons; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
import com.fr.design.mainframe.MultiSelectionArrangement; |
|
import com.fr.general.IOUtils; |
|
|
|
import javax.swing.Icon; |
|
import java.awt.event.ActionEvent; |
|
import java.awt.event.ActionListener; |
|
|
|
public class BottomAlignButton extends AbstractMultiSelectionArrangementButton { |
|
public BottomAlignButton(MultiSelectionArrangement arrangement) { |
|
super(arrangement); |
|
} |
|
|
|
@Override |
|
public Icon getIcon() { |
|
return IOUtils.readIcon("/com/fr/design/images/buttonicon/multi_selection_bottom_align.png"); |
|
} |
|
|
|
@Override |
|
public String getTipText() { |
|
return Toolkit.i18nText("Fine-Design_Multi_Selection_Bottom_Align"); |
|
} |
|
|
|
@Override |
|
public ActionListener getActionListener() { |
|
return new ActionListener() { |
|
@Override |
|
public void actionPerformed(ActionEvent e) { |
|
arrangement.bottomAlign(); |
|
uiObserverListener.doChange(); |
|
} |
|
}; |
|
} |
|
}
|
|
|