org.apache.wicket.markup.head.CssHeaderItem Java Examples

The following examples show how to use org.apache.wicket.markup.head.CssHeaderItem. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MarkdownResourceReference.java    From onedev with MIT License 6 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new CaretResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new AtWhoResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new CodeMirrorResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new TextareaCaretPositionResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new DoneEventsResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new CookiesResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HotkeysResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new JQueryUIResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HoverResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new PerfectScrollbarResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new CommitStatusCssResourceReference()));

	dependencies.add(CssHeaderItem.forReference(
			new BaseDependentCssResourceReference(MarkdownResourceReference.class, "markdown.css")));
	dependencies.add(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/theme/eclipse.css")));
	return dependencies;
}
 
Example #2
Source File: AtWhoResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = new ArrayList<>();
	dependencies.add(JavaScriptHeaderItem.forReference(Application.get().getJavaScriptLibrarySettings().getJQueryReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(
			AtWhoResourceReference.class, "jquery.atwho-caret.js")));
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(
			AtWhoResourceReference.class, "jquery.atwho.css")));
	return dependencies;
}
 
Example #3
Source File: InputAssistResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new ScrollIntoViewResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new CaretResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HotkeysResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new TextareaCaretPositionResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			InputAssistResourceReference.class, "input-assist.css")));
	return dependencies;
}
 
Example #4
Source File: DragDropResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new JQueryUIResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new BaseDependentCssResourceReference(DragDropResourceReference.class, "dragdrop.css")));
	return dependencies;
}
 
Example #5
Source File: AvatarUploadResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new CropperResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			AvatarUploadResourceReference.class, "avatar-upload.css")));
	return dependencies;
}
 
Example #6
Source File: TextDiffResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new HoverResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new SelectionPopoverResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new ClipboardResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new ScrollIntoViewResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/theme/eclipse.css")));
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(TextDiffPanel.class, "text-diff.css")));
	return dependencies;
}
 
Example #7
Source File: Js4ResourceReferenceC.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = new ArrayList<>();
	dependencies.add(JavaScriptHeaderItem.forReference(new Js3ResourceReferenceC()));
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(Js4ResourceReferenceC.class, "4.css")));
	return dependencies;
}
 
Example #8
Source File: FolderViewResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(
			new CssResourceReference(FolderViewResourceReference.class, "folder-view.css")));
	
	// add this dependency as the lazy loaded last commits information includes avatar displaying
	dependencies.add(CssHeaderItem.forReference(new UserAvatarResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HoverResourceReference()));
	return dependencies;
}
 
Example #9
Source File: DashboardMenu.java    From inception with Apache License 2.0 5 votes vote down vote up
@Override
public void renderHead(IHeaderResponse aResponse)
{
    super.renderHead(aResponse);
    
    aResponse.render(CssHeaderItem
            .forReference(new WebjarsCssResourceReference("hover/current/css/hover.css")));
}
 
Example #10
Source File: ChartPanel.java    From inception with Apache License 2.0 5 votes vote down vote up
@Override
public void renderHead(IHeaderResponse aResponse)
{
    super.renderHead(aResponse);

    // import Js
    aResponse.render(JavaScriptHeaderItem
            .forReference(new WebjarsJavaScriptResourceReference("c3/current/c3.js")));
    aResponse.render(JavaScriptHeaderItem
            .forReference(new WebjarsJavaScriptResourceReference("d3js/current/d3.js")));

    // import Css
    aResponse.render(
            CssHeaderItem.forReference(new WebjarsCssResourceReference("c3/current/c3.css")));

    aResponse.render(JavaScriptReferenceHeaderItem.forReference(
            getApplication().getJavaScriptLibrarySettings().getJQueryReference()));

    aResponse.render(JavaScriptHeaderItem.forReference(ChartJsReference.get()));
    
    String chartTriggerJavascript = String.join("\n",
            "$(document).ready(function(){", 
            "   $.ajax({",
            "       url:'" + chartAjaxBejavior.getCallbackUrl().toString() + "',",
            "       type:'post',",
            "       contentType:'application/json',",
            "       dataType:'json',",
            "       success : function(result){",
            "           updateLearningCurveDiagram(result)",
            "       }",
            "   })",
            "})");

    aResponse.render(JavaScriptContentHeaderItem.forScript(chartTriggerJavascript, null));
}
 
Example #11
Source File: IssueDetailResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			IssueDetailResourceReference.class, "issue-detail.css")));
	return dependencies;
}
 
Example #12
Source File: BlobEditResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new CodeMirrorResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new CssResourceReference(BlobEditResourceReference.class, "blob-edit.css")));
	return dependencies;
}
 
Example #13
Source File: PullRequestChangesResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(
			PullRequestChangesResourceReference.class, "pull-request-changes.css")));
	return dependencies;
}
 
Example #14
Source File: InceptionResourcesBehavior.java    From inception with Apache License 2.0 5 votes vote down vote up
@Override
public void renderHead(Component aComponent, IHeaderResponse aResponse)
{
    // Loading WebAnno CSS here so it can override JQuery/Kendo CSS
    aResponse.render(CssHeaderItem.forReference(InceptionCssReference.get()));
    aResponse.render(JavaScriptHeaderItem.forReference(WebAnnoJavascriptReference.get()));
}
 
Example #15
Source File: StateStatsResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			StateStatsResourceReference.class, "state-stats.css")));
	return dependencies;
}
 
Example #16
Source File: BuildLogResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new PerfectScrollbarResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new MomentResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			BuildLogResourceReference.class, "build-log.css")));
	return dependencies;
}
 
Example #17
Source File: EditableResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			EditableResourceReference.class, "editable.css")));
	return dependencies;
}
 
Example #18
Source File: Js3ResourceReferenceC.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = new ArrayList<>();
	dependencies.add(JavaScriptHeaderItem.forReference(new Js1ResourceReferenceC()));
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(Js3ResourceReferenceC.class, "3.css")));
	return dependencies;
}
 
Example #19
Source File: BaseCssResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(Bootstrap.getSettings().getCssResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new FontExtResourceReference()));
	return dependencies;
}
 
Example #20
Source File: PlainEditResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new CodeMirrorResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new BaseDependentCssResourceReference(PlainEditResourceReference.class, "plain-edit.css")));
	return dependencies;
}
 
Example #21
Source File: DropzoneFieldResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new DropzoneResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new BaseDependentCssResourceReference(DropzoneField.class, "dropzone-field.css")));
	return dependencies;
}
 
Example #22
Source File: BranchSelectorResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new HotkeysResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new CssResourceReference(BranchSelectorResourceReference.class, "branch-selector.css")));
	return dependencies;
}
 
Example #23
Source File: CommitDetailResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new OnelineResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(CommitDetailResourceReference.class, "commit-detail.css")));
	return dependencies;
}
 
Example #24
Source File: Tabbable.java    From onedev with MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new TabbableCssResourceReference()));
}
 
Example #25
Source File: InvalidBuildPage.java    From onedev with MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new InvalidBuildResourceReference()));
}
 
Example #26
Source File: TabbableCssResourceReference.java    From onedev with MIT License 4 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new MenuCssResourceReference()));
	return dependencies;
}
 
Example #27
Source File: MilestoneListPage.java    From onedev with MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new MilestonesResourceReference()));
}
 
Example #28
Source File: GroovyScriptListPage.java    From onedev with MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new GroovyScriptResourceReference()));
}
 
Example #29
Source File: NewIssueEditor.java    From onedev with MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new NewIssueCssResourceReference()));
}
 
Example #30
Source File: ContributorPanel.java    From onedev with MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new ContributorResourceReference()));
}