@Inject protected void setIcons(Icons icons) { this.icon = icons.get(CubaIcon.CREATE_ACTION); }
@Inject protected void setIcons(Icons icons) { this.icon = icons.get(CubaIcon.ADD_ACTION); }
@Inject protected void setIcons(Icons icons) { this.icon = icons.get(CubaIcon.EXCEL_ACTION); }
public EditSubstitutedAction() { super("edit"); this.icon = icons.get(CubaIcon.EDIT_ACTION); this.caption = messages.getMainMessage("actions.Edit"); }
@Inject protected void setIcons(Icons icons) { this.icons = icons; setIcon(icons.get(CubaIcon.PICKERFIELD_OPEN)); }
public EditRoleAction() { super("edit"); icon = icons.get(CubaIcon.EDIT_ACTION); setCaption(getMessage("actions.Edit")); }
@Override public void setIconFromSet(Icons.Icon icon) { setIcon(icons.get(icon)); }
@Override public void setIconFromSet(Icons.Icon icon) { String iconPath = AppBeans.get(Icons.class) // todo replace .get(icon); setIcon(iconPath); }
@Override public void setIconFromSet(Icons.Icon icon) { String iconPath = AppBeans.get(Icons.class) .get(icon); setIcon(iconPath); } }
@Override public void setIconFromSet(Icons.Icon icon) { String iconName = AppBeans.get(Icons.class) .get(icon); setIcon(iconName); }
public OpenAction(PickerField pickerField) { super(NAME, pickerField); caption = ""; icon = AppBeans.get(Icons.class) .get(CubaIcon.PICKERFIELD_OPEN); setShortcut(clientConfig.getPickerOpenShortcut()); }
public LookupAction(PickerField pickerField) { super(NAME, pickerField); caption = ""; icon = AppBeans.get(Icons.class) .get(CubaIcon.PICKERFIELD_LOOKUP); setShortcut(clientConfig.getPickerLookupShortcut()); }
public ClearAction(PickerField pickerField) { super(NAME, pickerField); caption = ""; icon = AppBeans.get(Icons.class) .get(CubaIcon.PICKERFIELD_CLEAR); setShortcut(clientConfig.getPickerClearShortcut()); }
private CopyComponentIdAction(String id) { super(id); setShortcut("CTRL-C"); setIcon(icons.get(CubaIcon.COPY)); setCaption(getMessage("actions.copyComponentId")); }
protected Resource resolveIcon(BeanLocator beanLocator, CubaIcon icon) { String iconName = beanLocator.get(Icons.class).get(icon); return beanLocator.get(IconResolver.class).getIconResource(iconName); }
protected Action createLookupAction() { return new BaseAction("") .withIcon(icons.get(CubaIcon.PICKERFIELD_LOOKUP)) .withHandler(e -> openLookup(null)); }
public AddRoleAction() { super("add"); icon = icons.get(CubaIcon.ADD_ACTION); setCaption(messages.getMainMessage("actions.Add")); ClientConfig clientConfig = configuration.getConfig(ClientConfig.class); setShortcut(clientConfig.getTableAddShortcut()); }
protected Action initCreateScreenAndComponentAction() { return new BaseAction("create") .withCaption(getMessage("targetScreensTable.create")) .withIcon(icons.get(CubaIcon.CREATE_ACTION)) .withShortcut(clientConfig.getTableInsertShortcut()) .withHandler(e -> screensDs.addItem(metadata.create(ScreenAndComponent.class)) ); }