|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.app.OwBaseComboboxRenderer
public abstract class OwBaseComboboxRenderer
Combo box renderer component.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Field Summary | |
|---|---|
protected boolean |
enabled
enabled flag |
protected static org.apache.log4j.Logger |
LOG
package logger for the class |
protected OwMainAppContext |
m_context
the context |
protected OwString |
m_description
description |
protected Map |
m_events
the event name to event handling map |
protected OwFieldDefinition |
m_fieldDefinition
the field definition |
protected String |
m_fieldId
the field id |
protected OwFieldProvider |
m_fieldProvider
the field provider |
protected boolean |
m_ignoreDefaultStylesheets
ignore default style sheets |
protected OwComboModel |
m_model
the model |
protected Set |
m_styleClasses
list of style sheet classes |
| Constructor Summary | |
|---|---|
OwBaseComboboxRenderer()
Default constructor |
|
| Method Summary | |
|---|---|
void |
addEvent(String eventName_p,
String eventHandler_p)
Add JavaScript code for the given event name |
void |
addStyleClass(String styleClass_p)
Add specified style class. |
void |
addStyleClass(String styleClass_p,
boolean ignoreDefaultStyleClasses_p)
Add specific style class. |
void |
addStyleClasses(String[] styleClasses_p)
Add a list of style classes, to be rendered with this component. |
void |
addStyleClasses(String[] styleClasses_p,
boolean ignoreDefaultStyleClasses_p)
Add a list of style classes, to be rendered with this component. |
String[] |
getAllEventsNames()
Get all event names for this combo |
protected OwMainAppContext |
getContext()
Get the context. |
protected String |
getEventHandler(String eventName_p)
Get the JavaScript code as a string for specified event. |
protected String |
renderStyleClasses(Set defaultStyleClasses_p)
Render the style classes |
void |
setContext(OwMainAppContext context_p)
Set the context. |
void |
setEnabled(boolean enabled_p)
Set the enabled status of this combobox. |
void |
setFieldDefinition(OwFieldDefinition fieldDefinition_p)
Set the field definition. |
void |
setFieldDescription(OwString description_p)
Set the description of the rendered field. |
void |
setFieldId(String fieldId_p)
Set the id of the rendered field. |
void |
setFieldProvider(OwFieldProvider fieldProvider_p)
Set the field provider. |
void |
setModel(OwComboModel model_p)
Set the combo model items. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.wewebu.ow.server.app.OwComboboxRenderer |
|---|
renderCombo |
| Field Detail |
|---|
protected OwMainAppContext m_context
protected OwComboModel m_model
protected String m_fieldId
protected OwFieldDefinition m_fieldDefinition
protected OwFieldProvider m_fieldProvider
protected boolean m_ignoreDefaultStylesheets
protected boolean enabled
protected OwString m_description
protected Map m_events
protected static final org.apache.log4j.Logger LOG
protected Set m_styleClasses
| Constructor Detail |
|---|
public OwBaseComboboxRenderer()
| Method Detail |
|---|
public void setEnabled(boolean enabled_p)
OwComboboxRenderer
setEnabled in interface OwComboboxRendererprotected String renderStyleClasses(Set defaultStyleClasses_p)
defaultStyleClasses_p - - classes that will be always rendered.
protected OwMainAppContext getContext()
public void addStyleClass(String styleClass_p)
OwComboboxRenderer
addStyleClass in interface OwComboboxRendererstyleClass_p - - thestyle class.
public void addStyleClass(String styleClass_p,
boolean ignoreDefaultStyleClasses_p)
OwComboboxRendererignoreDefaultStyleClasses_p is true the default style classes are not
rendered anymore
addStyleClass in interface OwComboboxRendererstyleClass_p - - the name of the style classignoreDefaultStyleClasses_p - - if has true value, the default style classes are not
rendered anymorepublic void addStyleClasses(String[] styleClasses_p)
OwComboboxRenderer
addStyleClasses in interface OwComboboxRendererstyleClasses_p - - the array of String objects, representing the style classes.
public void addStyleClasses(String[] styleClasses_p,
boolean ignoreDefaultStyleClasses_p)
OwComboboxRenderer
addStyleClasses in interface OwComboboxRendererstyleClasses_p - - the array of String objects, representing the style classes.ignoreDefaultStyleClasses_p - - if has true value, the default style classes are not
rendered anymore
public void addEvent(String eventName_p,
String eventHandler_p)
OwComboboxRenderer
addEvent in interface OwComboboxRenderereventName_p - - the event nameeventHandler_p - - the JavaScript event handler. Please use " for JS string delimiter.public String[] getAllEventsNames()
OwComboboxRenderer
getAllEventsNames in interface OwComboboxRendererString objects, representing the event names.protected String getEventHandler(String eventName_p)
eventName_p - the event name
String object, representing the JavaScript code associated with this event.public void setContext(OwMainAppContext context_p)
OwComboboxRenderer
setContext in interface OwComboboxRenderercontext_p - - the OwMainAppContext object.public void setModel(OwComboModel model_p)
OwComboboxRenderer
setModel in interface OwComboboxRenderermodel_p - - the OwComboModel object.public void setFieldDescription(OwString description_p)
OwComboboxRenderer
setFieldDescription in interface OwComboboxRendererdescription_p - - the OwString object representing the description of the rendered combo controls (usually as title HTML attribute values)public void setFieldId(String fieldId_p)
OwComboboxRenderer
setFieldId in interface OwComboboxRendererfieldId_p - - the String object representing the ID to be rendered as htmlid valuepublic void setFieldDefinition(OwFieldDefinition fieldDefinition_p)
OwComboboxRenderer
setFieldDefinition in interface OwComboboxRendererfieldDefinition_p - - the OwFieldDefinition object.public void setFieldProvider(OwFieldProvider fieldProvider_p)
OwComboboxRenderer
setFieldProvider in interface OwComboboxRendererfieldProvider_p - - the OwFieldProvider object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||