Skip to content
Snippets Groups Projects
Commit 85c9aabc authored by srosse's avatar srosse
Browse files

OO-347: add css class to create a preview page in a structure node

parent 9ef50ac7
No related branches found
No related tags found
No related merge requests found
...@@ -189,10 +189,15 @@ public class FileChooseCreateEditController extends BasicController{ ...@@ -189,10 +189,15 @@ public class FileChooseCreateEditController extends BasicController{
this.allowRelativeLinks = allowRelLinks == null ? false : allowRelLinks.booleanValue(); this.allowRelativeLinks = allowRelLinks == null ? false : allowRelLinks.booleanValue();
this.myContent = createVelocityContainer("chosenfile"); this.myContent = createVelocityContainer("chosenfile");
editButton = LinkFactory.createButtonSmall("command.edit", myContent, this); editButton = LinkFactory.createButtonSmall("command.edit", myContent, this);
editButton.setElementCssClass("o_sel_filechooser_edit");
deleteButton = LinkFactory.createButtonSmall("command.delete", myContent, this); deleteButton = LinkFactory.createButtonSmall("command.delete", myContent, this);
deleteButton.setElementCssClass("o_sel_filechooser_delete");
changeFileButtonOne = LinkFactory.createButtonSmall("command.changefile", myContent, this); changeFileButtonOne = LinkFactory.createButtonSmall("command.changefile", myContent, this);
changeFileButtonOne.setElementCssClass("o_sel_filechooser_change");
changeFileButtonTwo = LinkFactory.createButtonSmall("command.choosecreatefile", myContent, this); changeFileButtonTwo = LinkFactory.createButtonSmall("command.choosecreatefile", myContent, this);
changeFileButtonTwo.setElementCssClass("o_sel_filechooser_create");
previewLink = LinkFactory.createCustomLink("command.preview", "command.preview", getTranslator().translate(NLS_FOLDER_DISPLAYNAME) + chosenFile, Link.NONTRANSLATED, myContent, this); previewLink = LinkFactory.createCustomLink("command.preview", "command.preview", getTranslator().translate(NLS_FOLDER_DISPLAYNAME) + chosenFile, Link.NONTRANSLATED, myContent, this);
previewLink.setElementCssClass("o_sel_filechooser_preview");
previewLink.setCustomEnabledLinkCSS("b_preview"); previewLink.setCustomEnabledLinkCSS("b_preview");
previewLink.setTitle(getTranslator().translate("command.preview")); previewLink.setTitle(getTranslator().translate("command.preview"));
...@@ -672,7 +677,7 @@ class NewFileForm extends FormBasicController { ...@@ -672,7 +677,7 @@ class NewFileForm extends FormBasicController {
} }
@SuppressWarnings("unused")
class AllowRelativeLinksForm extends FormBasicController { class AllowRelativeLinksForm extends FormBasicController {
private SelectionElement allowRelativeLinks; private SelectionElement allowRelativeLinks;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment