/** * Instantiates a new open content menu item. * * @param i18n the i18n * @param action the action * @param res the res */ public OpenContentMenuItem( final I18nTranslationService i18n, final OpenContentAction action, final IconicResources res) { super(action); this.withText(i18n.t("Open")).withIcon(res.rightArrow()); }
@Inject public BartersClientTool( final I18nTranslationService i18n, final ToolSelector toolSelector, final ContentCapabilitiesRegistry cntCapRegistry, final IconicResources icons, final HistoryWrapper history) { super( TOOL_NAME, i18n.t("barters"), i18n.t( "A decentralized way to offer (or ask for) services and goods to your groups or to anyone. Bartering means the exchange of goods by the agreement of two people"), icons.bartersWhite(), AccessRolDTO.Viewer, toolSelector, cntCapRegistry, i18n, history); this.icons = icons; // registerAclEditableTypes(TYPE_DOCUMENT, TYPE_UPLOADEDFILE); registerAuthorableTypes(TYPE_BARTER); registerDragableTypes(TYPE_BARTER, TYPE_FOLDER); registerDropableTypes(TYPE_ROOT, TYPE_FOLDER, TYPE_BARTER); // registerPublishModerableTypes(); registerRateableTypes(TYPE_BARTER); registerRenamableTypes(TYPE_FOLDER, TYPE_BARTER); registerTageableTypes(TYPE_BARTER); registerTranslatableTypes(TYPE_FOLDER, TYPE_BARTER); registerIcons(); }
/** * Instantiates a new purge container action. * * @param contentService the content service * @param res the res */ @Inject public PurgeContainerAction( final ContentServiceHelper contentService, final IconicResources res) { super(AccessRolDTO.Administrator, true); this.contentService = contentService; this.withText(I18n.t("Delete permanently")).withIcon(res.trashGrey()); }
/** * Instantiates a new new list btn. * * @param i18n the i18n * @param action the action * @param res the res */ @Inject public NewListBtn( final I18nTranslationService i18n, final NewListAction action, final IconicResources res) { super(action); withText(i18n.t("New list")) .withToolTip(i18n.t("Create a new list")) .withIcon(res.listsAdd()) .withStyles("k-def-docbtn, k-fl") .withId(NewContainerBtn.BTN_ID); }
@Inject public ExportCalendarMenuItem( final I18nTranslationService i18n, final ExportCalendarAction action, final ContentViewerOptionsMenu optionsMenu, final IconicResources res) { super(action); this.withText(i18n.t("Export this calendar")) .withIcon(res.mobile()) .withParent(optionsMenu, false); }
/** * Instantiates a new new blog btn. * * @param i18n the i18n * @param action the action * @param res the res */ @Inject public NewBlogBtn( final I18nTranslationService i18n, final NewContainerAction action, final IconicResources res) { super( i18n, action, res.blogsAdd(), i18n.t("New blog"), i18n.t("Create a new blog"), i18n.t("New blog"), BlogsToolConstants.TYPE_BLOG); }
/** * Instantiates a new share in linkedin menu item. * * @param action the action * @param iconic the iconic * @param session the session * @param menu the menu * @param i18n the i18n */ @Inject public ShareInLinkedinMenuItem( final AbstractShareInSocialNetAction action, final IconicResources iconic, final Session session, final ShareMenu menu, final I18nTranslationService i18n) { super( action, session, menu, i18n.t("Share this in linkedin"), iconic.linkedin(), ClientFormattedString.build(false, URL_TEMPLATE, ShareInHelper.getCommonUrl())); }
private void registerIcons() { registerEmptyFolderTutorial(TYPE_ROOT); // registerTutorial(TYPE_FOLDER); registerContentTypeIcon(TYPE_FOLDER, icons.folderGrey()); registerContentTypeIcon(TYPE_ROOT, icons.bartersGrey()); registerContentTypeIcon(TYPE_BARTER, icons.bartersGrey()); registerContentTypeIconLight(TYPE_FOLDER, icons.folderWhite()); registerContentTypeIconLight(TYPE_ROOT, icons.bartersWhite()); registerContentTypeIconLight(TYPE_BARTER, icons.bartersWhite()); registerEmptyMessages( TYPE_FOLDER, i18n.t(THERE_ISN_T_ANY_BARTER + "You can create some of them here")); registerEmptyMessages(TYPE_ROOT, i18n.t(THERE_ISN_T_ANY_BARTER)); registerEmptyMessagesNotLogged(TYPE_FOLDER, i18n.t(THERE_ISN_T_ANY_BARTER)); registerEmptyMessagesNotLogged(TYPE_ROOT, i18n.t(THERE_ISN_T_ANY_BARTER)); }