public static FormItemIcon getOrCreateRef(JavaScriptObject jsObj) { if(jsObj == null) return null; return new FormItemIcon(jsObj); }
/** * If <code>icon.neverDisable</code> 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. * * * @return Boolean */ public Boolean getNeverDisable() { return getAttributeAsBoolean("neverDisable"); }
barIcon = new FormItemIcon(); barIcon.setHeight(PrintingLayout.iconWaitHeight); barIcon.setWidth(PrintingLayout.iconWaitWidth); StaticTextItem statusText = new StaticTextItem(MESSAGES.printPrefsStatus()); statusText.setIcons(barIcon); barIcon.setSrc(PrintingLayout.iconWaitBlank);
/** * Add a formItemClick handler. * <p> * StringMethod action to fire when this icon is clicked If unset the form item's <code>iconClick</code> method will * be fired instead (if specified). * * @param handler the formItemClick handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addFormItemClickHandler(com.smartgwt.client.widgets.form.fields.events.FormItemClickHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.FormItemIconClickEvent.getType()) == 0) setupFormItemClickEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.FormItemIconClickEvent.getType()); }
private void startProgress() { barIcon.setSrc(PrintingLayout.iconWaitMoving); redraw(); }
/** * TabIndex for this formItemIcon. <P> 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. <P> Any usage other than setting to -1 is * extremely advanced in the same way as using {@link com.smartgwt.client.widgets.form.fields.FormItem#getGlobalTabIndex * globalTabIndex}. * * * @return Integer */ public Integer getTabIndex() { return getAttributeAsInt("tabIndex"); }
/** * Identifier for this form item icon. This identifier (if set) should be unique within this form item and may be used to * get a pointer to the icon object via {@link com.smartgwt.client.widgets.form.fields.FormItem#getIcon FormItem.getIcon}. * * * @return String */ public String getName() { return getAttributeAsString("name"); }
barIcon = new FormItemIcon(); barIcon.setHeight(PrintingLayout.iconWaitHeight); barIcon.setWidth(PrintingLayout.iconWaitWidth); StaticTextItem statusText = new StaticTextItem(MESSAGES.printPrefsStatus()); statusText.setIcons(barIcon); barIcon.setSrc(PrintingLayout.iconWaitBlank);
private void stopProgress() { barIcon.setSrc(PrintingLayout.iconWaitBlank); redraw(); }
/** * If set, this property determines the width of this icon in px. If unset the form item's <code>iconWidth</code> * property will be used instead. * * * @return Integer * @see com.smartgwt.client.widgets.form.fields.FormItem#getIconWidth */ public Integer getWidth() { return getAttributeAsInt("width"); }
/** * If set, this property will be displayed as a prompt (and tooltip text) for this form item icon. <P> If unset the form * item's <code>iconPrompt</code> property will be used instead. * * * @return String * @see com.smartgwt.client.widgets.form.fields.FormItem#getIconPrompt */ public String getPrompt() { return getAttributeAsString("prompt"); }
/** * Icon that launches a {@link com.smartgwt.client.widgets.DateChooser} for choosing an absolute date. * * * @return FormItemIcon */ public FormItemIcon getPickerIcon() { return new FormItemIcon(getAttributeAsJavaScriptObject("pickerIcon")); }
private void startProgress() { barIcon.setSrc(PrintingLayout.iconWaitMoving); redraw(); }
/** * Should this icon's image switch to the appropriate "focused" source when the user puts focus on the form item or icon? * * * @return Boolean * @see com.smartgwt.client.widgets.form.fields.FormItem#getShowFocusedIcons * @see com.smartgwt.client.widgets.form.fields.FormItemIcon#getShowFocusedWithItem */ public Boolean getShowFocused() { return getAttributeAsBoolean("showFocused"); }
/** * If set, this property determines the height of this icon in px. If unset the form item's <code>iconHeight</code> * property will be used instead. * * * @return Integer * @see com.smartgwt.client.widgets.form.fields.FormItem#getIconHeight */ public Integer getHeight() { return getAttributeAsInt("height"); }
/** * If set, this property determines this icon's image source. If unset the form item's <code>defaultIconSrc</code> property * will be used instead.<br> As with <code>defaultIconSrc</code> this URL will be modified by adding "_Over" or "_Disabled" * if appropriate to show the icons over or disabled state. * * * @return String * @see com.smartgwt.client.widgets.form.fields.FormItem#getDefaultIconSrc * @see <a href="http://www.smartclient.com/smartgwt/showcase/#form_details_icons" target="examples">Icons Example</a> */ public String getSrc() { return getAttributeAsString("src"); }
private void stopProgress() { barIcon.setSrc(PrintingLayout.iconWaitBlank); redraw(); }
public void onIconClick(IconClickEvent iconClickEvent) { FormItemIcon icon = iconClickEvent.getIcon(); if (GeocoderLayout.showClearIcon && clearIcon.getSrc().equals(icon.getSrc())) { presenter.clearLocation(); } else { presenter.goToLocation((String) textItem.getValue()); } } });