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

The following examples show how to use org.apache.wicket.markup.head.CssHeaderItem. These examples are extracted from open source projects. 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 Project: onedev   Author: theonedev   File: MarkdownResourceReference.java    License: 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 Project: inception   Author: inception-project   File: InceptionResourcesBehavior.java    License: 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 #3
Source Project: inception   Author: inception-project   File: ChartPanel.java    License: 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 #4
Source Project: inception   Author: inception-project   File: DashboardMenu.java    License: 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 #5
Source Project: onedev   Author: theonedev   File: FolderViewResourceReference.java    License: 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 #6
Source Project: onedev   Author: theonedev   File: AvatarUploadResourceReference.java    License: 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 #7
Source Project: onedev   Author: theonedev   File: InputAssistResourceReference.java    License: 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 #8
Source Project: onedev   Author: theonedev   File: DragDropResourceReference.java    License: 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 #9
Source Project: onedev   Author: theonedev   File: PullRequestChangesResourceReference.java    License: 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 #10
Source Project: onedev   Author: theonedev   File: PlainEditResourceReference.java    License: 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 #11
Source Project: onedev   Author: theonedev   File: EditableResourceReference.java    License: 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 #12
Source Project: onedev   Author: theonedev   File: BuildLogResourceReference.java    License: 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 #13
Source Project: onedev   Author: theonedev   File: StateStatsResourceReference.java    License: 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 #14
Source Project: onedev   Author: theonedev   File: BaseCssResourceReference.java    License: 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 #15
Source Project: onedev   Author: theonedev   File: CommitDetailResourceReference.java    License: 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 #16
Source Project: onedev   Author: theonedev   File: IssueDetailResourceReference.java    License: 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 #17
Source Project: onedev   Author: theonedev   File: Js4ResourceReferenceC.java    License: 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 #18
Source Project: onedev   Author: theonedev   File: BlobEditResourceReference.java    License: 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 #19
Source Project: onedev   Author: theonedev   File: DropzoneFieldResourceReference.java    License: 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 #20
Source Project: onedev   Author: theonedev   File: AtWhoResourceReference.java    License: 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 #21
Source Project: onedev   Author: theonedev   File: Js3ResourceReferenceC.java    License: 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 #22
Source Project: onedev   Author: theonedev   File: BranchSelectorResourceReference.java    License: 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 Project: onedev   Author: theonedev   File: TextDiffResourceReference.java    License: 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 #24
Source Project: onedev   Author: theonedev   File: InvalidCodeCommentPage.java    License: MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new ProjectCodeCommentsCssResourceReference()));
}
 
Example #25
Source Project: onedev   Author: theonedev   File: MarkdownReportPage.java    License: MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new MarkdownReportCssResourceReference()));
}
 
Example #26
Source Project: onedev   Author: theonedev   File: ProjectIssuesPage.java    License: MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new ProjectIssuesCssResourceReference()));
}
 
Example #27
Source Project: onedev   Author: theonedev   File: PathSelector.java    License: MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	
	response.render(CssHeaderItem.forReference(new PathSelectorResourceReference()));
}
 
Example #28
Source Project: onedev   Author: theonedev   File: MilestoneDetailPage.java    License: MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new MilestonesResourceReference()));
}
 
Example #29
Source Project: onedev   Author: theonedev   File: IssueCommitsPanel.java    License: MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new IssueCommitsCssResourceReference()));
}
 
Example #30
Source Project: onedev   Author: theonedev   File: PullRequestActivitiesPage.java    License: MIT License 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(CssHeaderItem.forReference(new PullRequestActivitiesCssResourceReference()));
}