
com.jwebmp.plugins.bootstrapswitch.BootstrapSwitchFeature Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-bootstrap-switch Show documentation
Show all versions of jwebmp-bootstrap-switch Show documentation
The JWebSwing implementation for Bootstrap Switch
The newest version!
package com.jwebmp.plugins.bootstrapswitch;
import com.jwebmp.core.Feature;
import com.jwebmp.core.base.html.Input;
import com.jwebmp.core.base.html.interfaces.GlobalFeatures;
import static com.jwebmp.core.utilities.StaticStrings.*;
/**
* Creates toast messages
*
* @author GedMarc
* @since 09 Jun 2017
*/
public class BootstrapSwitchFeature
extends Feature
{
/*
* Constructs a new BootstrapSwitchFeature
*/
public BootstrapSwitchFeature(BootstrapSwitchCheckBox component)
{
super("BootstrapSelectFeature", component);
}
/*
* Constructs a new BootstrapSwitchFeature
*/
public BootstrapSwitchFeature(BootstrapSwitchRadioButton component)
{
super("BootstrapSelectFeature", component);
}
@Override
protected void assignFunctionsToComponent()
{
addQuery(getComponent().getJQueryID() + "bootstrapSwitch(" + getOptions() + STRING_CLOSING_BRACKET_SEMICOLON + getNewLine());
}
/**
* Returns the options
*
* @return
*/
@Override
public BootstrapSwitchOptions getOptions()
{
if (super.getOptions() == null)
{
setOptions(new BootstrapSwitchOptions((Input) getComponent()));
}
return super.getOptions();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy