|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.form.fields.FormItemIcon
public class FormItemIcon
Form item icon descriptor objects used by Form Items to specify the appearance and behavior of icons displayed after the item in the page flow.
com.smartgwt.client.widgets.form.fields.FormItem#getIcons| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
FormItemIcon()
|
|
FormItemIcon(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
HandlerRegistration |
addFormItemClickHandler(FormItemClickHandler handler)
Add a formItemClick handler. |
boolean |
equals(Object o)
|
Boolean |
getDisableOnReadOnly()
If canEdit is set to false, should this icon be
disabled. |
Integer |
getHeight()
If set, this property determines the height of this icon in px. |
String |
getName()
Identifier for this form item icon. |
Boolean |
getNeverDisable()
If icon.neverDisable is true, when this form item is disabled, the icon will remain enabled. |
static FormItemIcon |
getOrCreateRef(JavaScriptObject jsObj)
|
String |
getPrompt()
If set, this property will be displayed as a prompt (and tooltip text) for this form item icon. |
Boolean |
getShowFocused()
Should this icon's image switch to the appropriate "focused" source when the user puts focus on the form item or icon? |
Boolean |
getShowFocusedWithItem()
If this icon will be updated to show focus (see showFocused, showFocusedIcons), this property governs whether
the focused state should be shown when the item as a whole receives focus or just if the icon receives focus. |
Boolean |
getShowOver()
Should this icon's image switch to the appropriate "over" source when the user rolls over or focuses on the icon? |
String |
getSrc()
If set, this property determines this icon's image source. |
Integer |
getTabIndex()
TabIndex for this formItemIcon. |
Integer |
getWidth()
If set, this property determines the width of this icon in px. |
int |
hashCode()
|
void |
keyPress(String keyName,
char character,
DynamicForm form,
FormItem item,
FormItemIcon icon)
StringMethod action to fire when this icon has focus and receives a keypress event. |
void |
setDisableOnReadOnly(Boolean disableOnReadOnly)
If canEdit is set to false, should this icon be
disabled. |
void |
setHeight(Integer height)
If set, this property determines the height of this icon in px. |
void |
setJavaScriptObject(JavaScriptObject jsObj)
|
void |
setName(String name)
Identifier for this form item icon. |
void |
setNeverDisable(Boolean neverDisable)
If icon.neverDisable is true, when this form item is disabled, the icon will remain enabled. |
void |
setPrompt(String prompt)
If set, this property will be displayed as a prompt (and tooltip text) for this form item icon. |
void |
setShowFocused(Boolean showFocused)
Should this icon's image switch to the appropriate "focused" source when the user puts focus on the form item or icon? |
void |
setShowFocusedWithItem(Boolean showFocusedWithItem)
If this icon will be updated to show focus (see showFocused, showFocusedIcons), this property governs whether
the focused state should be shown when the item as a whole receives focus or just if the icon receives focus. |
void |
setShowIfCondition(FormItemIfFunction showIf)
Set showIf condition. |
void |
setShowOver(Boolean showOver)
Should this icon's image switch to the appropriate "over" source when the user rolls over or focuses on the icon? |
void |
setSrc(String src)
If set, this property determines this icon's image source. |
void |
setTabIndex(Integer tabIndex)
TabIndex for this formItemIcon. |
void |
setWidth(Integer width)
If set, this property determines the width of this icon in px. |
| Methods inherited from class com.smartgwt.client.core.JsObject |
|---|
isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public FormItemIcon()
public FormItemIcon(JavaScriptObject jsObj)
| Method Detail |
|---|
public static FormItemIcon getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
public void setDisableOnReadOnly(Boolean disableOnReadOnly)
canEdit is set to false, should this icon be
disabled. If unset this is determined by disableIconsOnReadOnly. Note that if neverDisable is set to true, the icons will be
rendered enabled regardless of this setting and whether the item is editable.
Note : This is an advanced setting
disableOnReadOnly - disableOnReadOnly Default value is nullpublic Boolean getDisableOnReadOnly()
canEdit is set to false, should this icon be
disabled. If unset this is determined by disableIconsOnReadOnly. Note that if neverDisable is set to true, the icons will be
rendered enabled regardless of this setting and whether the item is editable.
public void setHeight(Integer height)
iconHeight
property will be used instead.
height - height Default value is nullFormItem.setIconHeight(int)public Integer getHeight()
iconHeight
property will be used instead.
FormItem.getIconHeight()public void setName(String name)
FormItem.getIcon.
name - . See String. Default value is nullpublic String getName()
FormItem.getIcon.
Stringpublic void setNeverDisable(Boolean neverDisable)
icon.neverDisable is true, when this form item is disabled, the icon will remain enabled. Note that
disabling the entire form will disable all items, together with their icons including those marked as neverDisable -
this property only has an effect if the form is enabled and a specific item is disabled within it. If this property
is true, the icons will also remain enabled if a form item is marked as canEdit:false. For finer grained control over whether icons
are enabled for read-only icons see disableIconsOnReadOnly and disableOnReadOnly
Note : This is an advanced setting
neverDisable - neverDisable Default value is nullpublic Boolean getNeverDisable()
icon.neverDisable is true, when this form item is disabled, the icon will remain enabled. Note that
disabling the entire form will disable all items, together with their icons including those marked as neverDisable -
this property only has an effect if the form is enabled and a specific item is disabled within it. If this property
is true, the icons will also remain enabled if a form item is marked as canEdit:false. For finer grained control over whether icons
are enabled for read-only icons see disableIconsOnReadOnly and disableOnReadOnly
public void setPrompt(String prompt)
If unset the form
item's iconPrompt property will be used instead.
Note : This is an advanced setting
prompt - . See String. Default value is nullFormItem.setIconPrompt(java.lang.String)public String getPrompt()
If unset the form
item's iconPrompt property will be used instead.
StringFormItem.getIconPrompt()public void setShowFocused(Boolean showFocused)
Note : This is an advanced setting
showFocused - showFocused Default value is nullFormItem.setShowFocusedIcons(java.lang.Boolean),
setShowFocusedWithItem(java.lang.Boolean)public Boolean getShowFocused()
FormItem.getShowFocusedIcons(),
getShowFocusedWithItem()public void setShowFocusedWithItem(Boolean showFocusedWithItem)
showFocused, showFocusedIcons), this property governs whether
the focused state should be shown when the item as a whole receives focus or just if the icon receives focus. If this
property is unset, default behavior is to show focused state when the item receives focus.
Note : This is an advanced setting
showFocusedWithItem - showFocusedWithItem Default value is nullFormItem.setShowFocusedIcons(java.lang.Boolean),
setShowFocused(java.lang.Boolean)public Boolean getShowFocusedWithItem()
showFocused, showFocusedIcons), this property governs whether
the focused state should be shown when the item as a whole receives focus or just if the icon receives focus. If this
property is unset, default behavior is to show focused state when the item receives focus.
FormItem.getShowFocusedIcons(),
getShowFocused()public void setShowOver(Boolean showOver)
Note : This is an advanced setting
showOver - showOver Default value is nullFormItem.setShowOverIcons(java.lang.Boolean)public Boolean getShowOver()
FormItem.getShowOverIcons()public void setSrc(String src)
defaultIconSrc property
will be used instead.defaultIconSrc this URL will be modified by adding "_Over" or "_Disabled"
if appropriate to show the icons over or disabled state.
src - . See String. Default value is nullFormItem.setDefaultIconSrc(java.lang.String),
Icons Examplepublic String getSrc()
defaultIconSrc property
will be used instead.defaultIconSrc this URL will be modified by adding "_Over" or "_Disabled"
if appropriate to show the icons over or disabled state.
StringFormItem.getDefaultIconSrc(),
Icons Examplepublic void setTabIndex(Integer tabIndex)
Set to -1 to remove the icon from the tab order, but be cautious doing so: if the icon triggers important application functionality that cannot otherwise be accessed via the keyboard, it would be a violation of accessibility standard to remove the icon from the tab order.
Any usage other than setting to -1 is
extremely advanced in the same way as using globalTabIndex.
Note : This is an advanced setting
tabIndex - tabIndex Default value is nullpublic Integer getTabIndex()
Set to -1 to remove the icon from the tab order, but be cautious doing so: if the icon triggers important application functionality that cannot otherwise be accessed via the keyboard, it would be a violation of accessibility standard to remove the icon from the tab order.
Any usage other than setting to -1 is
extremely advanced in the same way as using globalTabIndex.
public void setWidth(Integer width)
iconWidth
property will be used instead.
width - width Default value is nullFormItem.setIconWidth(int)public Integer getWidth()
iconWidth
property will be used instead.
FormItem.getIconWidth()public HandlerRegistration addFormItemClickHandler(FormItemClickHandler handler)
StringMethod action to fire when this icon is clicked If unset the form item's iconClick method will
be fired instead (if specified).
addFormItemClickHandler in interface HasFormItemClickHandlershandler - the formItemClick handler
HandlerRegistration used to remove this handler
public void keyPress(String keyName,
char character,
DynamicForm form,
FormItem item,
FormItemIcon icon)
iconKeyPress method will be fired instead (if specified).
keyName - Name of the key pressedcharacter - character produced by the keypressform - The Dynamic Form to which this icon's item belongs.item - The Form Item containing this iconicon - A pointer to the form item iconpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void setShowIfCondition(FormItemIfFunction showIf)
If specified, icon.showIf will be evaluated when the form item is drawn or redrawn. Return true if the icon
should be visible, or false if it should be hidden. Note that if FormItem.showIcon or FormItem.hideIcon is called, this method will be overridden.
handler - the showIf handler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||