use of com.revolsys.swing.action.RunnableAction in project com.revolsys.open by revolsys.
the class MenuFactory method newMenuItem.
public static RunnableAction newMenuItem(final CharSequence name, final String toolTip, final Icon icon, final EnableCheck enableCheck, final Runnable runnable) {
final RunnableAction action = new RunnableAction(name, toolTip, icon, runnable);
action.setEnableCheck(enableCheck);
return action;
}
use of com.revolsys.swing.action.RunnableAction in project com.revolsys.open by revolsys.
the class MenuFactory method addMenuItemTitleIcon.
public RunnableAction addMenuItemTitleIcon(final String groupName, final int index, final CharSequence name, final String iconName, final EnableCheck enableCheck, final Runnable runnable) {
final Icon icon = Icons.getIcon(iconName);
final RunnableAction action = newMenuItem(name, null, icon, enableCheck, runnable);
addComponentFactory(groupName, index, action);
return action;
}
use of com.revolsys.swing.action.RunnableAction in project com.revolsys.open by revolsys.
the class MenuFactory method addMenuItem.
public void addMenuItem(final String groupName, final int index, final String title, final String iconName, final Runnable runnable) {
final Icon icon = Icons.getIcon(iconName);
final RunnableAction menuItem = newMenuItem(title, title, icon, null, runnable);
addComponentFactory(groupName, index, menuItem);
}
use of com.revolsys.swing.action.RunnableAction in project com.revolsys.open by revolsys.
the class MenuFactory method addMenuItemTitleIcon.
public RunnableAction addMenuItemTitleIcon(final String groupName, final CharSequence name, final String iconName, final Runnable runnable) {
final Icon icon = Icons.getIcon(iconName);
final RunnableAction action = newMenuItem(name, null, icon, null, runnable);
addComponentFactory(groupName, action);
return action;
}
use of com.revolsys.swing.action.RunnableAction in project com.revolsys.open by revolsys.
the class MenuFactory method addMenuItem.
public void addMenuItem(final String groupName, final String title, final String toolTip, final String iconName, final Runnable runnable) {
final Icon icon = Icons.getIcon(iconName);
final RunnableAction menuItem = newMenuItem(title, toolTip, icon, null, runnable);
addComponentFactory(groupName, menuItem);
}
Aggregations