List of usage examples for org.apache.wicket.util.convert.converter ByteConverter INSTANCE
IConverter INSTANCE
To view the source code for org.apache.wicket.util.convert.converter ByteConverter INSTANCE.
Click Source Link
From source file:org.apache.isis.viewer.wicket.ui.components.scalars.primitive.BytePanel.java
License:Apache License
public BytePanel(final String id, final ScalarModel scalarModel) { super(id, scalarModel, Byte.class, ByteConverter.INSTANCE); }
From source file:org.apache.isis.viewer.wicket.ui.components.scalars.primitive.BytePanel.java
License:Apache License
@Override protected AbstractTextComponent<Byte> createTextFieldForRegular() { return new TextField<Byte>(ID_SCALAR_VALUE, new TextFieldValueModel<Byte>(this), Byte.class) { private static final long serialVersionUID = 1L; @SuppressWarnings("unchecked") @Override/*from ww w .j av a2s .c o m*/ public <C> IConverter<C> getConverter(Class<C> type) { return (IConverter<C>) (type == Byte.class ? ByteConverter.INSTANCE : super.getConverter(type)); } }; }