com.databasesandlife.util.wicket.DisplayNoneRemover Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-common Show documentation
Show all versions of java-common Show documentation
Utility classes developed at Adrian Smith Software (A.S.S.)
package com.databasesandlife.util.wicket;
import org.apache.wicket.AttributeModifier;
/**
* Removes "display:none" from an HTML tag.
*
* @author This source is copyright Adrian Smith and licensed under the LGPL 3.
* @see Project on GitHub
*/
@SuppressWarnings("serial")
public class DisplayNoneRemover extends AttributeModifier {
public DisplayNoneRemover() { super("style", ""); }
@Override protected String newValue(final String currentValue, final String replacementValue) {
if (currentValue == null) return null;
return currentValue.replaceAll("display:\\s*none", "");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy