Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.7.0)

E10653-08

oracle.jbo.server
Class RowAttrHintsImpl

java.lang.Object
  extended by oracle.jbo.server.RowAttrHintsImpl
All Implemented Interfaces:
AttributeHints, GenericHints
Direct Known Subclasses:
EntityAttrHintsImpl, ViewRowAttrHintsImpl

public abstract class RowAttrHintsImpl
extends java.lang.Object
implements AttributeHints

Defines access to view row Attribute's user interface hints.

Since:
JDeveloper 9.0.2
See Also:
AttributeDef

Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.jbo.AttributeHints
AttributeHints.ControlType
 
Field Summary
 
Fields inherited from interface oracle.jbo.AttributeHints
ATTRIBUTE_AUTOSUBMIT, ATTRIBUTE_BINDEDITOR_LABEL, ATTRIBUTE_CTL_CATEGORY, ATTRIBUTE_CTL_DISPLAYHEIGHT, ATTRIBUTE_CTL_DISPLAYWIDTH, ATTRIBUTE_CTL_FIELD_ORDER, ATTRIBUTE_CTL_FORMTYPE, ATTRIBUTE_CTL_TYPE, ATTRIBUTE_DISPLAY_HINT, ATTRIBUTE_DISPLAY_HINT_DISPLAY, ATTRIBUTE_DISPLAY_HINT_HIDE, ATTRIBUTE_FORM_TYPE_DETAIL, ATTRIBUTE_FORM_TYPE_SHORT, ATTRIBUTE_LABEL, ATTRIBUTE_LABEL_PLURAL, ATTRIBUTE_LOVNAME, ATTRIBUTE_TOOLTIP, CTL_CHECK_BOX, CTL_CHOICE_LIST, CTL_COMBO_BOX, CTL_COMBO_BOX_LOV, CTL_DATE, CTL_DEFAULT, CTL_DELIMITEDIDS_CHOICE, CTL_EDIT, CTL_IMAGE, CTL_INPUT_TEXT_LOV, CTL_LIST_BOX, CTL_NUMBER_EDIT, CTL_RADIO_GROUP, CTLTYPE_CHECKBOX, CTLTYPE_COMBO, CTLTYPE_COMBOLOV, CTLTYPE_DATE, CTLTYPE_DEFAULT, CTLTYPE_DELIMITEDIDS_CHOICE, CTLTYPE_EDIT, CTLTYPE_IMAGE, CTLTYPE_LIST, CTLTYPE_LISTBOX, CTLTYPE_LOV, CTLTYPE_NUMEDIT, CTLTYPE_RADIOGRP, CTLTYPE_TOGGLE, FMT_FORMAT, FMT_FORMATTER, HINT_NAME_AUTOSUBMIT, HINT_NAME_CATEGORY, HINT_NAME_CTL_TYPE, HINT_NAME_DESCRIPTION, HINT_NAME_DISPLAY_HEIGHT, HINT_NAME_DISPLAY_HINT, HINT_NAME_DISPLAY_WIDTH, HINT_NAME_FIELD_ORDER, HINT_NAME_FORMAT, HINT_NAME_LABEL, HINT_NAME_LOVNAME, HINT_NAME_MANDATORY, HINT_NAME_MAX_VALUE, HINT_NAME_MIN_LENGTH, HINT_NAME_MIN_VALUE, HINT_NAME_SECRET, HINT_NAME_TIMEZONEID, HINT_NAME_TOOLTIP, HINT_NAME_UPDATEABLE, PNAME_Button, PNAME_ButtonGroup, PNAME_ComboBox, PNAME_ComboBoxLovEdit, PNAME_DYNAMIC_LOV_SUPPORT, PNAME_EnumList, PNAME_LovButton, PNAME_TextField
 
Fields inherited from interface oracle.jbo.GenericHints
PROPERTY_LABEL, PROPERTY_LABEL_PLURAL, PROPERTY_TOOLTIP
 
Constructor Summary
protected RowAttrHintsImpl()
           
 
Method Summary
 boolean displayInShortForm(LocaleContext localeCtx)
          Returns true if the attribute is to displayed in the short(summary) form.
protected abstract  AttributeHints getAttributeHintsInternal(java.lang.String hintName, LocaleContext locale)
           
abstract  java.lang.String[][] getCompOpers(LocaleContext locale)
          Returns a Map of operators for this attribute.
 int getControlType(LocaleContext localeCtx)
          Returns the preferred control type for this attribute
 int getDisplayHeight(LocaleContext localeCtx)
          Returns the display width for this attribute
 java.lang.String getDisplayHint(LocaleContext localeCtx)
          Retrieves the displya hint that dictates whether this attributr should be visible or not.
 int getDisplayWidth(LocaleContext localeCtx)
          Returns the display width for this attribute
 java.lang.String getFormat(LocaleContext localeCtx)
          returns the format string stored in the ui hints
protected abstract  AttributeHints getFormatAttributeHintsInternal(LocaleContext locale)
           
 java.lang.String getFormattedAttribute(AttributeList attrList, LocaleContext localeCtx)
          Returns the formatted value for the attribute.
 Formatter getFormatter(LocaleContext localeCtx)
          returns the formatter object stored in the ui hints
 java.lang.String getFormatterClassName(LocaleContext localeCtx)
          returns the formatter class stored in the ui hints
 java.lang.String getHint(LocaleContext localeCtx, java.lang.String sHintName)
          Return defaulted hint value based on the hint name
 java.lang.String getHintValue(LocaleContext localeCtx, java.lang.String sHintName)
          Return hint value based on the hint name
 java.lang.String getLabel(LocaleContext localeCtx)
          Retrieves the label to be used in any attribute prompts
 java.lang.String getLabelPlural(LocaleContext localeCtx)
          Retrives the LabelPlural text to be used for this attribute
abstract  java.lang.String getLocaleName(LocaleContext locale, java.lang.String sName)
          function for retrieving the locale name of a hint
 java.lang.String getTooltip(LocaleContext localeCtx)
          Retrives the tooltip text to be used for this attribute
 boolean hasFormatInformation(LocaleContext localeCtx)
          Return true if any format hints have been defined for this attribute.
 boolean isAutoSubmit(LocaleContext localeCtx)
          Returns autoSubmit value for this attribute.
 java.lang.Object parseFormattedAttribute(java.lang.String sValue, LocaleContext localeCtx)
          Strips off the formatting from a string and constructs an instance of the attribute's domain using the 'clean' string as a parameter of the contructor.
protected  DefLocaleContext prepareDefLocaleContext(LocaleContext locale)
           
protected  void switchEvalFlagOnLocaleContext(DefLocaleContext ctx, boolean eval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowAttrHintsImpl

protected RowAttrHintsImpl()
Method Detail

prepareDefLocaleContext

protected final DefLocaleContext prepareDefLocaleContext(LocaleContext locale)

switchEvalFlagOnLocaleContext

protected final void switchEvalFlagOnLocaleContext(DefLocaleContext ctx,
                                                   boolean eval)

getFormatAttributeHintsInternal

protected abstract AttributeHints getFormatAttributeHintsInternal(LocaleContext locale)

getAttributeHintsInternal

protected abstract AttributeHints getAttributeHintsInternal(java.lang.String hintName,
                                                            LocaleContext locale)

getLocaleName

public abstract java.lang.String getLocaleName(LocaleContext locale,
                                               java.lang.String sName)
Description copied from interface: AttributeHints
function for retrieving the locale name of a hint

Specified by:
getLocaleName in interface AttributeHints

getCompOpers

public abstract java.lang.String[][] getCompOpers(LocaleContext locale)
Description copied from interface: AttributeHints
Returns a Map of operators for this attribute.

Specified by:
getCompOpers in interface AttributeHints

getLabel

public java.lang.String getLabel(LocaleContext localeCtx)
Description copied from interface: GenericHints
Retrieves the label to be used in any attribute prompts

Specified by:
getLabel in interface GenericHints

getLabelPlural

public java.lang.String getLabelPlural(LocaleContext localeCtx)
Description copied from interface: GenericHints
Retrives the LabelPlural text to be used for this attribute

Specified by:
getLabelPlural in interface GenericHints

getTooltip

public java.lang.String getTooltip(LocaleContext localeCtx)
Description copied from interface: GenericHints
Retrives the tooltip text to be used for this attribute

Specified by:
getTooltip in interface GenericHints

getDisplayHint

public java.lang.String getDisplayHint(LocaleContext localeCtx)
Description copied from interface: AttributeHints
Retrieves the displya hint that dictates whether this attributr should be visible or not. The two possible values are: ATTRIBUTE_DISPLAY_HINT_DISPLAY = "Display"; ATTRIBUTE_DISPLAY_HINT_HIDE = "Hide";

Specified by:
getDisplayHint in interface AttributeHints

getControlType

public int getControlType(LocaleContext localeCtx)
Description copied from interface: AttributeHints
Returns the preferred control type for this attribute

Specified by:
getControlType in interface AttributeHints

getDisplayWidth

public int getDisplayWidth(LocaleContext localeCtx)
Description copied from interface: AttributeHints
Returns the display width for this attribute

Specified by:
getDisplayWidth in interface AttributeHints

getDisplayHeight

public int getDisplayHeight(LocaleContext localeCtx)
Description copied from interface: AttributeHints
Returns the display width for this attribute

Specified by:
getDisplayHeight in interface AttributeHints

isAutoSubmit

public boolean isAutoSubmit(LocaleContext localeCtx)
Description copied from interface: AttributeHints
Returns autoSubmit value for this attribute.

Specified by:
isAutoSubmit in interface AttributeHints

getHint

public java.lang.String getHint(LocaleContext localeCtx,
                                java.lang.String sHintName)
Description copied from interface: AttributeHints
Return defaulted hint value based on the hint name

Specified by:
getHint in interface AttributeHints

getHintValue

public java.lang.String getHintValue(LocaleContext localeCtx,
                                     java.lang.String sHintName)
Description copied from interface: GenericHints
Return hint value based on the hint name

Specified by:
getHintValue in interface GenericHints

displayInShortForm

public boolean displayInShortForm(LocaleContext localeCtx)
Description copied from interface: AttributeHints
Returns true if the attribute is to displayed in the short(summary) form.

Specified by:
displayInShortForm in interface AttributeHints

hasFormatInformation

public boolean hasFormatInformation(LocaleContext localeCtx)
Description copied from interface: AttributeHints
Return true if any format hints have been defined for this attribute. This function should eb used to bracket any calls to the formatting api.

Specified by:
hasFormatInformation in interface AttributeHints

getFormattedAttribute

public java.lang.String getFormattedAttribute(AttributeList attrList,
                                              LocaleContext localeCtx)
Description copied from interface: AttributeHints
Returns the formatted value for the attribute. The AttributeList parameter will usually be an instance of the oracle.jbo.Row class.

Specified by:
getFormattedAttribute in interface AttributeHints

parseFormattedAttribute

public java.lang.Object parseFormattedAttribute(java.lang.String sValue,
                                                LocaleContext localeCtx)
Description copied from interface: AttributeHints
Strips off the formatting from a string and constructs an instance of the attribute's domain using the 'clean' string as a parameter of the contructor.

Specified by:
parseFormattedAttribute in interface AttributeHints

getFormat

public java.lang.String getFormat(LocaleContext localeCtx)
Description copied from interface: AttributeHints
returns the format string stored in the ui hints

Specified by:
getFormat in interface AttributeHints

getFormatter

public Formatter getFormatter(LocaleContext localeCtx)
Description copied from interface: AttributeHints
returns the formatter object stored in the ui hints

Specified by:
getFormatter in interface AttributeHints

getFormatterClassName

public java.lang.String getFormatterClassName(LocaleContext localeCtx)
Description copied from interface: AttributeHints
returns the formatter class stored in the ui hints

Specified by:
getFormatterClassName in interface AttributeHints

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.7.0)

E10653-08

Copyright © 1997, 2013, Oracle. All rights reserved.