Skip to content

Commit

Permalink
UrlFragment: deprecated code is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
solomax committed Aug 3, 2017
1 parent 2d96872 commit 4de2b6a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 206 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @author Martin Knopf
*
*/
public abstract class AsyncUrlFragmentAwarePage extends WebPage implements IBookmarkableComponent
public abstract class AsyncUrlFragmentAwarePage extends WebPage
{
private static final long serialVersionUID = 1L;
private transient AjaxRequestTarget target = null;
Expand Down Expand Up @@ -115,36 +115,6 @@ protected Map<String, String> getOptions()
protected abstract void onParameterArrival(IRequestParameters requestParameters,
AjaxRequestTarget target);

@Override
@Deprecated
public void setFragmentParameter(String parameterName, Object parameterValue)
{
if (this.target != null && parameterName != "" && parameterValue != "")
{
urlFragment().putParameter(parameterName, parameterValue);
}
}

@Override
@Deprecated
public void addFragmentParameter(String parameterName, Object parameterValue, String delimiter)
{
if (this.target != null && parameterName != "" && parameterValue != "")
{
urlFragment().putParameter(parameterName, parameterValue, delimiter);
}
}

@Override
@Deprecated
public void removeFragmentParameter(String parameterName)
{
if (this.target != null && parameterName != "")
{
urlFragment().removeParameter(parameterName);
}
}

/**
* Returns a {@link UrlFragment} connected to the current {@link AjaxRequestTarget}. Use the
* {@link UrlFragment} to update the URL fragment in the browser after the current AJAX event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import java.util.Map;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.request.IRequestParameters;
Expand All @@ -42,7 +41,7 @@
* @author Martin Knopf
*
*/
public abstract class AsyncUrlFragmentAwarePanel extends Panel implements IBookmarkableComponent
public abstract class AsyncUrlFragmentAwarePanel extends Panel
{
private static final long serialVersionUID = 1L;
private transient AjaxRequestTarget target = null;
Expand Down Expand Up @@ -110,43 +109,6 @@ protected Map<String, String> getOptions()
protected abstract void onParameterIncome(IRequestParameters requestParameters,
AjaxRequestTarget target);

@Override
@Deprecated
public void setFragmentParameter(String parameterName, Object parameterValue)
{
if (this.target != null && parameterName != "" && parameterValue != "")
{
urlFragment().putParameter(parameterName, parameterValue);
}
}

@Override
@Deprecated
public void addFragmentParameter(String parameterName, Object parameterValue, String delimiter)
{
if (this.target != null && parameterName != "" && parameterValue != "")
{
urlFragment().putParameter(parameterName, parameterValue, delimiter);
}
}

@Override
@Deprecated
public void removeFragmentParameter(String parameterName)
{
if (this.target != null && parameterName != "")
{
urlFragment().removeParameter(parameterName);
}
}

@Override
public void renderHead(IHeaderResponse response)
{
super.renderHead(response);
response.render(UrlParametersReceivingBehavior.JS_REF);
}

/**
* Returns a {@link UrlFragment} connected to the current {@link AjaxRequestTarget}. Use the
* {@link UrlFragment} to update the URL fragment in the browser after the current AJAX event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
* @author Martin Knopf
*/
public abstract class BookmarkableAjaxButton extends AjaxButton implements IBookmarkableComponent
public abstract class BookmarkableAjaxButton extends AjaxButton
{
private static final long serialVersionUID = 1L;
private transient AjaxRequestTarget target = null;
Expand Down Expand Up @@ -84,36 +84,6 @@ protected void onError(AjaxRequestTarget target)
*/
protected abstract void onBookmarkableError(AjaxRequestTarget target);

@Override
@Deprecated
public void setFragmentParameter(String parameterName, Object parameterValue)
{
if (this.target != null && parameterName != "" && parameterValue != "")
{
urlFragment().putParameter(parameterName, parameterValue);
}
}

@Override
@Deprecated
public void addFragmentParameter(String parameterName, Object parameterValue, String delimiter)
{
if (this.target != null && parameterName != "" && parameterValue != "")
{
urlFragment().putParameter(parameterName, parameterValue, delimiter);
}
}

@Override
@Deprecated
public void removeFragmentParameter(String parameterName)
{
if (this.target != null && parameterName != "")
{
urlFragment().removeParameter(parameterName);
}
}

/**
* Returns a {@link UrlFragment} connected to the current {@link AjaxRequestTarget}. Use the
* {@link UrlFragment} to update the URL fragment in the browser after the current AJAX event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*
* @param <T> the type of Model object
*/
public abstract class BookmarkableAjaxLink<T> extends AjaxLink<T> implements IBookmarkableComponent
public abstract class BookmarkableAjaxLink<T> extends AjaxLink<T>
{
private static final long serialVersionUID = 1L;

Expand Down Expand Up @@ -114,36 +114,6 @@ public void onClick(AjaxRequestTarget target)
*/
public abstract void onBookmarkableClick(AjaxRequestTarget target);

@Override
@Deprecated
public void setFragmentParameter(String parameterName, Object parameterValue)
{
if (this.target != null && parameterName != "" && parameterValue != "")
{
urlFragment().putParameter(parameterName, parameterValue);
}
}

@Override
@Deprecated
public void addFragmentParameter(String parameterName, Object parameterValue, String delimiter)
{
if (this.target != null && parameterName != "" && parameterValue != "")
{
urlFragment().putParameter(parameterName, parameterValue, delimiter);
}
}

@Override
@Deprecated
public void removeFragmentParameter(String parameterName)
{
if (this.target != null && parameterName != "")
{
urlFragment().removeParameter(parameterName);
}
}

/**
* Returns a {@link UrlFragment} connected to the current {@link AjaxRequestTarget}. Use the
* {@link UrlFragment} to update the URL fragment in the browser after the current AJAX event.
Expand Down

This file was deleted.

0 comments on commit 4de2b6a

Please sign in to comment.