|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.common.ui.client.configurable.mvc.Configurer
public abstract class Configurer
A configurer defines the configuration of screens in KS, in particular this is where you add views, sections, and fields to a LayoutController preferably passed in in an configurer's implementation. This abstract class contains helper methods to do this.
Field Summary | |
---|---|
protected String |
groupName
|
protected ModelDefinition |
modelDefinition
|
protected String |
nextState
|
protected String |
state
|
protected String |
type
|
Constructor Summary | |
---|---|
Configurer()
|
Method Summary | |
---|---|
FieldDescriptor |
addField(Section section,
String fieldKey)
Adds a field with the field key specified to the passed in section. |
FieldDescriptor |
addField(Section section,
String fieldKey,
MessageKeyInfo messageKey)
Adds a field with the field key specified to the passed in section. |
FieldDescriptor |
addField(Section section,
String fieldKey,
MessageKeyInfo messageKey,
String parentPath)
Adds a field with the field key specified to the passed in section. |
FieldDescriptor |
addField(Section section,
String fieldKey,
MessageKeyInfo messageKey,
com.google.gwt.user.client.ui.Widget widget)
Adds a field with the field key specified to the passed in section. |
FieldDescriptor |
addField(Section section,
String fieldKey,
MessageKeyInfo messageKey,
com.google.gwt.user.client.ui.Widget widget,
String parentPath)
Adds a field with the field key specified to the passed in section. |
FieldDescriptor |
addReadOnlyField(Section section,
String fieldKey)
Read only variant of the corresponding addField method. |
FieldDescriptor |
addReadOnlyField(Section section,
String fieldKey,
MessageKeyInfo messageKey)
Read only variant of the corresponding addField method. |
FieldDescriptor |
addReadOnlyField(Section section,
String fieldKey,
MessageKeyInfo messageKey,
String parentPath)
Read only variant of the corresponding addField method. |
FieldDescriptor |
addReadOnlyField(Section section,
String fieldKey,
MessageKeyInfo messageKey,
com.google.gwt.user.client.ui.Widget widget)
Read only variant of the corresponding addField method. |
FieldDescriptor |
addReadOnlyField(Section section,
String fieldKey,
MessageKeyInfo messageKey,
com.google.gwt.user.client.ui.Widget widget,
String parentPath)
Read only variant of the corresponding addField method. |
protected MessageKeyInfo |
generateMessageInfo(String labelKey)
Generates a message info to be used in your field descriptor to get the label for the field. |
protected SectionTitle |
getH1Title(String labelKey)
Gets a section title which is an h1 element using the label key passed to retrieve the corresponding message |
protected SectionTitle |
getH2Title(String labelKey)
Gets a section title which is an h1 element using the label key passed to retrieve the corresponding message |
protected SectionTitle |
getH3Title(String labelKey)
Gets a section title which is an h1 element using the label key passed to retrieve the corresponding message |
protected SectionTitle |
getH4Title(String labelKey)
Gets a section title which is an h1 element using the label key passed to retrieve the corresponding message |
protected SectionTitle |
getH5Title(String labelKey)
Gets a section title which is an h1 element using the label key passed to retrieve the corresponding message |
protected String |
getLabel(String labelKey)
Gets the string corresponding to the label key passed in from the application messages |
ModelDefinition |
getModelDefinition()
|
String |
getNextState()
|
String |
getState()
The initial state of the objects for the screen |
void |
setModelDefinition(ModelDefinition modelDefinition)
Sets the modelDefinition which is the metadata backing the fields to be configured, this needs to be set before adding any fields in the configurer |
void |
setNextState(String nextState)
|
void |
setState(String state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ModelDefinition modelDefinition
protected String type
protected String state
protected String nextState
protected String groupName
Constructor Detail |
---|
public Configurer()
Method Detail |
---|
public void setModelDefinition(ModelDefinition modelDefinition)
modelDefinition
- public ModelDefinition getModelDefinition()
protected MessageKeyInfo generateMessageInfo(String labelKey)
labelKey
- key of the message - must match a message in your messages (stored in the db)
protected String getLabel(String labelKey)
labelKey
-
protected SectionTitle getH1Title(String labelKey)
labelKey
-
protected SectionTitle getH2Title(String labelKey)
labelKey
-
protected SectionTitle getH3Title(String labelKey)
labelKey
-
protected SectionTitle getH4Title(String labelKey)
labelKey
-
protected SectionTitle getH5Title(String labelKey)
labelKey
-
public FieldDescriptor addField(Section section, String fieldKey)
section
- fieldKey
-
public FieldDescriptor addField(Section section, String fieldKey, MessageKeyInfo messageKey)
section
- fieldKey
- messageKey
-
public FieldDescriptor addField(Section section, String fieldKey, MessageKeyInfo messageKey, com.google.gwt.user.client.ui.Widget widget)
section
- fieldKey
- messageKey
- widget
-
public FieldDescriptor addField(Section section, String fieldKey, MessageKeyInfo messageKey, String parentPath)
section
- fieldKey
- messageKey
- parentPath
-
public FieldDescriptor addField(Section section, String fieldKey, MessageKeyInfo messageKey, com.google.gwt.user.client.ui.Widget widget, String parentPath)
section
- fieldKey
- messageKey
- widget
- parentPath
-
public FieldDescriptor addReadOnlyField(Section section, String fieldKey)
section
- fieldKey
-
public FieldDescriptor addReadOnlyField(Section section, String fieldKey, MessageKeyInfo messageKey)
section
- fieldKey
- messageKey
-
public FieldDescriptor addReadOnlyField(Section section, String fieldKey, MessageKeyInfo messageKey, com.google.gwt.user.client.ui.Widget widget)
section
- fieldKey
- messageKey
- widget
-
public FieldDescriptor addReadOnlyField(Section section, String fieldKey, MessageKeyInfo messageKey, String parentPath)
section
- fieldKey
- messageKey
- parentPath
-
public FieldDescriptor addReadOnlyField(Section section, String fieldKey, MessageKeyInfo messageKey, com.google.gwt.user.client.ui.Widget widget, String parentPath)
section
- fieldKey
- messageKey
- widget
- parentPath
-
public String getState()
public void setState(String state)
public String getNextState()
public void setNextState(String nextState)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |