pt.digitalis.dif.dem.objects
Class FormFieldCustomization

java.lang.Object
  extended by pt.digitalis.dif.dem.objects.FormFieldCustomization

public class FormFieldCustomization
extends Object

The customization of a form field

Author:
Pedro Viegas pviegas@digitalis.pt
Created on:
28/01/2014

Field Summary
static String MESSAGE_HELP_ID
          the configuration id to save the help message
static String MESSAGE_HINT_ID
          the configuration id to save the hint message
static String MESSAGE_LABEL_ID
          the configuration id to save the label message
 
Constructor Summary
FormFieldCustomization(String fieldID)
           
 
Method Summary
 String getCustomMessage(String messageID, String language, String defaultValue)
          Utility method that returns the desired customized message or the default one if no customization exists
 String getFieldID()
          Inspector for the 'fieldID' attribute.
 FeatureState getMandatory()
          Inspector for the 'mandatory' attribute.
 MessageList getMessages()
          Inspector for the 'messages' attribute.
 FormFieldCustomization setFieldID(String fieldID)
          Modifier for the 'fieldID' attribute.
 FormFieldCustomization setMandatory(FeatureState mandatory)
          Modifier for the 'mandatory' attribute.
 FormFieldCustomization setMessages(MessageList messages)
          Modifier for the 'messages' attribute.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MESSAGE_HELP_ID

public static final String MESSAGE_HELP_ID
the configuration id to save the help message

See Also:
Constant Field Values

MESSAGE_HINT_ID

public static final String MESSAGE_HINT_ID
the configuration id to save the hint message

See Also:
Constant Field Values

MESSAGE_LABEL_ID

public static final String MESSAGE_LABEL_ID
the configuration id to save the label message

See Also:
Constant Field Values
Constructor Detail

FormFieldCustomization

public FormFieldCustomization(String fieldID)
Parameters:
fieldID -
Method Detail

getCustomMessage

public String getCustomMessage(String messageID,
                               String language,
                               String defaultValue)
Utility method that returns the desired customized message or the default one if no customization exists

Parameters:
messageID - the message ID to get
language - the desired language
defaultValue - the default value of not custom message exists
Returns:
the custom message or if it does not exist the given default value

getFieldID

public String getFieldID()
Inspector for the 'fieldID' attribute.

Returns:
the fieldID value

getMandatory

public FeatureState getMandatory()
Inspector for the 'mandatory' attribute.

Returns:
the mandatory value

getMessages

public MessageList getMessages()
Inspector for the 'messages' attribute.

Returns:
the messages value

setFieldID

public FormFieldCustomization setFieldID(String fieldID)
Modifier for the 'fieldID' attribute.

Parameters:
fieldID - the new fieldID value to set
Returns:
the updated object

setMandatory

public FormFieldCustomization setMandatory(FeatureState mandatory)
Modifier for the 'mandatory' attribute.

Parameters:
mandatory - the new mandatory value to set
Returns:
the updated object

setMessages

public FormFieldCustomization setMessages(MessageList messages)
Modifier for the 'messages' attribute.

Parameters:
messages - the new messages value to set
Returns:
the updated object

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.