org.exoplatform.calendar.webui
Class UIFormColorPicker

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIFormInputBase<String>
              extended by org.exoplatform.calendar.webui.UIFormColorPicker
All Implemented Interfaces:
org.exoplatform.webui.form.UIFormInput<String>

public class UIFormColorPicker
extends org.exoplatform.webui.form.UIFormInputBase<String>

Created by The eXo Platform SAS Author : Pham Tuan tuan.pham@exoplatform.com Feb 29, 2008


Nested Class Summary
static class UIFormColorPicker.Colors
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String ON_BLUR
          The javascript expression executed when an client event fires
static String ON_CHANGE
          The javascript expression executed when an client onChange event fires
static String ON_CLICK
          The javascript expression executed when an client event fires
static String ON_FOCUS
          The javascript expression executed when an client event fires
static String ON_KEYDOWN
          The javascript expression executed when an client event fires
static String ON_KEYUP
          The javascript expression executed when an client event fires
 
Fields inherited from class org.exoplatform.webui.form.UIFormInputBase
bindingField, defaultValue_, DISABLE, disabled, ENABLE, enable_, name, readonly_, typeValue_, validators, value_
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIFormColorPicker(String name, String value)
           
UIFormColorPicker(String name, String bindingExpression, String value)
           
UIFormColorPicker(String name, String bindingExpression, UIFormColorPicker.Colors.Color[] colors)
           
UIFormColorPicker(String name, String bindingExpression, UIFormColorPicker.Colors.Color[] colors, Map<String,String> jsActions)
           
 
Method Summary
 void addJsActions(String action, String javaScript)
           
 void decode(Object input, org.exoplatform.webui.application.WebuiRequestContext context)
           
 Map<String,String> getJsActions()
           
protected  org.exoplatform.webui.form.UIForm getUIform()
           
 void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
           
protected  String renderOnChangeEvent(org.exoplatform.webui.form.UIForm uiForm)
           
 void setJsActions(Map<String,String> jsActions)
           
 void setNumberItemsPerLine(int numberItems)
           
 void setOnChange(String onchange)
           
 org.exoplatform.webui.form.UIFormInput setValue(String arg0)
           
 
Methods inherited from class org.exoplatform.webui.form.UIFormInputBase
addValidator, getBindingField, getDefaultValue, getHTMLAttribute, getLabel, getName, getTypeValue, getValidators, getValue, isDisabled, isEditable, isEnable, isMandatory, isReadOnly, isValid, processDecode, renderHTMLAttributes, reset, setBindingField, setDefaultValue, setDisabled, setEditable, setEnable, setHTMLAttribute, setLabel, setName, setReadOnly
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ON_CHANGE

public static final String ON_CHANGE
The javascript expression executed when an client onChange event fires


ON_BLUR

public static final String ON_BLUR
The javascript expression executed when an client event fires


ON_FOCUS

public static final String ON_FOCUS
The javascript expression executed when an client event fires


ON_KEYUP

public static final String ON_KEYUP
The javascript expression executed when an client event fires


ON_KEYDOWN

public static final String ON_KEYDOWN
The javascript expression executed when an client event fires


ON_CLICK

public static final String ON_CLICK
The javascript expression executed when an client event fires

Constructor Detail

UIFormColorPicker

public UIFormColorPicker(String name,
                         String bindingExpression,
                         String value)

UIFormColorPicker

public UIFormColorPicker(String name,
                         String bindingExpression,
                         UIFormColorPicker.Colors.Color[] colors)

UIFormColorPicker

public UIFormColorPicker(String name,
                         String bindingExpression,
                         UIFormColorPicker.Colors.Color[] colors,
                         Map<String,String> jsActions)

UIFormColorPicker

public UIFormColorPicker(String name,
                         String value)
Method Detail

setJsActions

public void setJsActions(Map<String,String> jsActions)

getJsActions

public Map<String,String> getJsActions()

addJsActions

public void addJsActions(String action,
                         String javaScript)

decode

public void decode(Object input,
                   org.exoplatform.webui.application.WebuiRequestContext context)
Specified by:
decode in class org.exoplatform.webui.form.UIFormInputBase<String>

setOnChange

public void setOnChange(String onchange)

renderOnChangeEvent

protected String renderOnChangeEvent(org.exoplatform.webui.form.UIForm uiForm)
                              throws Exception
Throws:
Exception

getUIform

protected org.exoplatform.webui.form.UIForm getUIform()

setNumberItemsPerLine

public void setNumberItemsPerLine(int numberItems)

processRender

public void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
                   throws Exception
Overrides:
processRender in class org.exoplatform.webui.core.UIComponent
Throws:
Exception

setValue

public org.exoplatform.webui.form.UIFormInput setValue(String arg0)
Specified by:
setValue in interface org.exoplatform.webui.form.UIFormInput<String>
Overrides:
setValue in class org.exoplatform.webui.form.UIFormInputBase<String>


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.