com.jwebmp.plugins.datatable.options.DataTablesDomOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-data-tables Show documentation
Show all versions of jwebmp-data-tables Show documentation
The JWebSwing implementation for Data Tables
The newest version!
package com.jwebmp.plugins.datatable.options;
import java.util.ArrayList;
import java.util.List;
/**
* The default sections for the data tables
*/
public enum DataTablesDomOptions
{
LengthChangeControl('l'),
FilteringIinputControl('f'),
DataTable('t'),
InformationSummary('i'),
PaginationControl('p'),
ProcessingDisplayElement('r'),
Buttons('B'),
Spacer(' '),
StartDiv('<'),
EndDiv('>'),
;
private char identifier;
DataTablesDomOptions(char identifier)
{
this.identifier = identifier;
}
public static List fromString(String input)
{
List returnable = new ArrayList<>();
char[] chars = input.toCharArray();
for (char aChar : chars)
{
for (DataTablesDomOptions dataTablesDomOptions : DataTablesDomOptions.values())
{
if (dataTablesDomOptions.identifier == aChar)
{
returnable.add(dataTablesDomOptions);
}
}
}
return returnable;
}
@Override
public String toString()
{
return Character.toString(identifier);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy