Forge - UI Impl 2.0.0.Alpha3

org.jboss.forge.ui.impl
Class UIInputComponentBase<IMPLTYPE extends InputComponent<IMPLTYPE,VALUETYPE>,VALUETYPE>

java.lang.Object
  extended by org.jboss.forge.facets.AbstractFaceted<HintsFacet>
      extended by 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

Constructor Summary
UIInputComponentBase(String name, Class<VALUETYPE> type)
           
 
Method Summary
 String getLabel()
           
 String getName()
           
 String getRequiredMessage()
           
 Converter<String,VALUETYPE> getValueConverter()
           
 Class<VALUETYPE> getValueType()
           
 boolean isEnabled()
           
 boolean isRequired()
           
 IMPLTYPE setEnabled(boolean enabled)
           
 IMPLTYPE setEnabled(Callable<Boolean> callback)
           
 IMPLTYPE setLabel(String label)
           
 IMPLTYPE setRequired(boolean required)
           
 IMPLTYPE setRequired(Callable<Boolean> required)
           
 IMPLTYPE setRequiredMessage(String requiredMessage)
           
 IMPLTYPE setValueConverter(Converter<String,VALUETYPE> converter)
           
 boolean supports(HintsFacet type)
           
 
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
 

Constructor Detail

UIInputComponentBase

public UIInputComponentBase(String name,
                            Class<VALUETYPE> type)
Method Detail

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>

Forge - UI Impl 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.