|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.krad.uif.util.ComponentFactory
public class ComponentFactory
Factory class for creating new UIF components from their base definitions in the dictionary
Field Summary | |
---|---|
protected static String |
LABEL_FIELD
|
protected static String |
MESSAGE_FIELD
|
protected static String |
RADIO_GROUP_CONTROL
|
protected static String |
RADIO_GROUP_CONTROL_HORIZONTAL
|
protected static String |
TEXT_CONTROL
|
Constructor Summary | |
---|---|
ComponentFactory()
|
Method Summary | |
---|---|
static void |
addComponentDefinition(String componentDictionaryId,
Component component)
Adds a component instance to the factories map of components indexed by the given dictionary id |
static Component |
getComponentById(UifFormBase form,
String id)
Gets a fresh copy of the component by the id passed in which is translated to the corresponding dictionary id |
static Component |
getComponentByIdWithLifecycle(UifFormBase form,
String id)
Gets a fresh copy of the component by the id passed in with its lifecycle performed upon it, using the form data passed in |
static LabelField |
getLabelField()
|
static MessageField |
getMessageField()
|
static Component |
getNewComponentInstance(String componentDictionaryId)
Returns a new Component instance from the given component id initialized by the
corresponding dictionary configuration |
static RadioGroupControl |
getRadioGroupControl()
|
static RadioGroupControl |
getRadioGroupControlHorizontal()
|
static TextControl |
getTextControl()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String LABEL_FIELD
protected static final String MESSAGE_FIELD
protected static final String TEXT_CONTROL
protected static final String RADIO_GROUP_CONTROL
protected static final String RADIO_GROUP_CONTROL_HORIZONTAL
Constructor Detail |
---|
public ComponentFactory()
Method Detail |
---|
public static void addComponentDefinition(String componentDictionaryId, Component component)
componentDictionaryId
- - id to index component undercomponent
- - component instance to addpublic static Component getNewComponentInstance(String componentDictionaryId)
Component
instance from the given component id initialized by the
corresponding dictionary configuration
componentDictionaryId
- - id for the component to retrieve, note this is the id initially
assigned and could be the spring generated id (if a static id was not set)
public static LabelField getLabelField()
public static MessageField getMessageField()
public static TextControl getTextControl()
public static RadioGroupControl getRadioGroupControl()
public static RadioGroupControl getRadioGroupControlHorizontal()
public static Component getComponentById(UifFormBase form, String id)
id
- - id for the component to retrieve
public static Component getComponentByIdWithLifecycle(UifFormBase form, String id)
form
- - object containing the view dataid
- - id for the component to retrieve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |