org.jboss.forge.ui.impl
Class UIInputComponentBase<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
java.lang.Object
org.jboss.forge.facets.AbstractFaceted<HintsFacet>
org.jboss.forge.ui.impl.UIInputComponentBase<IMPLTYPE,VALUETYPE>
- Type Parameters:
VALUETYPE -
- All Implemented Interfaces:
- org.jboss.forge.facets.Faceted<HintsFacet>, InputComponent<IMPLTYPE,VALUETYPE>
- Direct Known Subclasses:
- UIInputImpl, UIInputManyImpl, UISelectInputComponentBase
@Vetoed
public abstract class UIInputComponentBase<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
- extends org.jboss.forge.facets.AbstractFaceted<HintsFacet>
- implements InputComponent<IMPLTYPE,VALUETYPE>
Implementation of a UIInput object
- Author:
- George Gastaldi
| Methods inherited from class org.jboss.forge.facets.AbstractFaceted |
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, uninstall |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.forge.facets.Faceted |
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, uninstall |
UIInputComponentBase
public UIInputComponentBase(String name,
Class<VALUETYPE> type)
getLabel
public String getLabel()
- Specified by:
getLabel in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
getName
public String getName()
- Specified by:
getName in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
getValueType
public Class<VALUETYPE> getValueType()
- Specified by:
getValueType in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
isRequired
public boolean isRequired()
- Specified by:
isRequired in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
setEnabled
public IMPLTYPE setEnabled(boolean enabled)
- Specified by:
setEnabled in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
setEnabled
public IMPLTYPE setEnabled(Callable<Boolean> callback)
- Specified by:
setEnabled in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
setLabel
public IMPLTYPE setLabel(String label)
- Specified by:
setLabel in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
setRequired
public IMPLTYPE setRequired(boolean required)
- Specified by:
setRequired in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
setRequired
public IMPLTYPE setRequired(Callable<Boolean> required)
- Specified by:
setRequired in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
supports
public boolean supports(HintsFacet type)
- Specified by:
supports in interface org.jboss.forge.facets.Faceted<HintsFacet>
getRequiredMessage
public String getRequiredMessage()
- Specified by:
getRequiredMessage in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
setRequiredMessage
public IMPLTYPE setRequiredMessage(String requiredMessage)
- Specified by:
setRequiredMessage in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
getValueConverter
public Converter<String,VALUETYPE> getValueConverter()
- Specified by:
getValueConverter in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
setValueConverter
public IMPLTYPE setValueConverter(Converter<String,VALUETYPE> converter)
- Specified by:
setValueConverter in interface InputComponent<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.