no message
This commit is contained in:
16
src/Common/Visual/Controls/StablePassMenuItem.java
Normal file
16
src/Common/Visual/Controls/StablePassMenuItem.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package Common.Visual.Controls;
|
||||
import Common.Passes.Pass;
|
||||
import Common.Utils.Utils_;
|
||||
public class StablePassMenuItem extends StableMenuItem implements PassControl {
|
||||
public StablePassMenuItem(Pass pass) {
|
||||
setText(pass.getDescription());
|
||||
setToolTipText(pass.getDescription());
|
||||
if (pass.getIconPath() != null) setIcon(pass.getIconPath());
|
||||
addActionListener(pass.getControlAction());
|
||||
pass.controls.add(this);
|
||||
}
|
||||
@Override
|
||||
public void setIcon(String icon_path) {
|
||||
setIcon(Utils_.getIcon(icon_path));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user