org.scrashmeow.ojb.console.ui.control.widget
Class BaseWidget

java.lang.Object
  |
  +--org.scrashmeow.ojb.console.ui.control.widget.BaseWidget
All Implemented Interfaces:
ApplicationServiceAware, java.io.Serializable, ViewControl, Widget
Direct Known Subclasses:
CollectionDescriptorBasedWidget, FieldDescriptorBasedWidget, ObjectReferenceDescriptorBasedWidget

public abstract class BaseWidget
extends java.lang.Object
implements Widget, java.io.Serializable

Author:
Alexander_Bibighaus To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.
See Also:
Serialized Form

Field Summary
protected  ApplicationService applicationService
          Field applicationService
protected  java.util.Map attrs
          Field attrs
protected  java.lang.String definitionName
          Field definitionName
protected  org.apache.ojb.broker.metadata.XmlCapable descriptor
          Field descriptor
protected  boolean disabled
          Field disabled
protected  java.lang.String formAttributeName
          Field formAttributeName
protected  FormFieldConversion formFieldConversion
          Field formFieldConversion
protected  java.lang.String formMappedAttributeName
          Field formMappedAttributeName
protected  java.lang.String label
          Field label
protected  java.lang.String mode
          Field mode
protected  HttpServletRequest request
           
protected  boolean required
          Field required
protected  java.lang.String uid
          Field uid
protected  boolean visible
          Field visible
 
Constructor Summary
BaseWidget()
          Constructor BaseWidget
 
Method Summary
 void configureMode(java.lang.String mode)
          Method configureMode @add-javadoc!!!
 ApplicationService getApplicationService()
          Returns the applicationService.
 java.lang.Object getAttribute(java.lang.String key)
          Method getAttribute @add-javadoc!!!
 java.lang.String getDefinitionName()
          Returns the definitionName.
 org.apache.ojb.broker.metadata.XmlCapable getDescriptor()
          Returns the descriptor.
 boolean getDisabled()
          Returns the disabled.
 java.lang.String getFormAttributeName()
          Returns the formAttributeName.
 FormFieldConversion getFormFieldConversion()
          Returns the formFieldConversion.
 java.lang.String getFormMappedAttributeName()
          Returns the formMappedAttributeName.
 java.lang.String getFormName()
          Returns the formName.
 java.lang.String getLabel()
          Returns the label.
 java.lang.String getMode()
          Returns the mode.
 HttpServletRequest getRequest()
           
 boolean getRequired()
          Returns the required.
 java.lang.String getUid()
          Returns the uid.
 boolean getVisible()
          Returns the visible.
 org.apache.struts.action.ActionForward handle(org.apache.struts.action.ActionMapping mapping, ObjectEditorForm form, HttpServletRequest request, HttpServletResponse response)
          Method handle @add-javadoc!!!
 void setApplicationService(ApplicationService applicationService)
          Sets the applicationService.
 void setAttribute(java.lang.String key, java.lang.Object val)
          Method setAttribute @add-javadoc!!!
 void setDefinitionName(java.lang.String definitionName)
          Sets the definitionName.
 void setDescriptor(org.apache.ojb.broker.metadata.XmlCapable descriptor)
          Sets the descriptor.
 void setDisabled(boolean disabled)
          Sets the disabled.
 void setFormAttributeName(java.lang.String formAttributeName)
          Sets the formAttributeName.
 void setFormFieldConversion(FormFieldConversion formFieldConversion)
          Sets the formFieldConversion.
 void setFormMappedAttributeName(java.lang.String formMappedAttributeName)
          Sets the formMappedAttributeName.
 void setLabel(java.lang.String label)
          Sets the label.
 void setMode(java.lang.String mode)
          Sets the mode.
 void setRequest(HttpServletRequest request)
           
 void setRequired(boolean required)
          Sets the required.
 void setUid(java.lang.String uid)
          Sets the uid.
 void setVisible(boolean visible)
          Sets the visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.scrashmeow.ojb.console.ui.control.widget.Widget
createValidatorField, populate, transfer
 

Field Detail

definitionName

protected java.lang.String definitionName
Field definitionName


applicationService

protected ApplicationService applicationService
Field applicationService


visible

protected boolean visible
Field visible


formMappedAttributeName

protected java.lang.String formMappedAttributeName
Field formMappedAttributeName


formAttributeName

protected java.lang.String formAttributeName
Field formAttributeName


label

protected java.lang.String label
Field label


disabled

protected boolean disabled
Field disabled


required

protected boolean required
Field required


attrs

protected java.util.Map attrs
Field attrs


formFieldConversion

protected FormFieldConversion formFieldConversion
Field formFieldConversion


descriptor

protected org.apache.ojb.broker.metadata.XmlCapable descriptor
Field descriptor


mode

protected java.lang.String mode
Field mode


uid

protected java.lang.String uid
Field uid


request

protected HttpServletRequest request
Constructor Detail

BaseWidget

public BaseWidget()
Constructor BaseWidget

Method Detail

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object val)
Method setAttribute @add-javadoc!!!

Specified by:
setAttribute in interface Widget
Parameters:
key - @add-javadoc!!!
val - @add-javadoc!!!

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Method getAttribute @add-javadoc!!!

Specified by:
getAttribute in interface Widget
Parameters:
key - @add-javadoc!!!
Returns:
@add-javadoc!!!

configureMode

public void configureMode(java.lang.String mode)
Method configureMode @add-javadoc!!!

Specified by:
configureMode in interface Widget
Parameters:
mode - @add-javadoc!!!

getApplicationService

public ApplicationService getApplicationService()
Returns the applicationService.

Specified by:
getApplicationService in interface ApplicationServiceAware
Returns:
ApplicationService

getDefinitionName

public java.lang.String getDefinitionName()
Returns the definitionName.

Specified by:
getDefinitionName in interface Widget
Returns:
String

getDisabled

public boolean getDisabled()
Returns the disabled.

Specified by:
getDisabled in interface Widget
Returns:
boolean

getFormName

public java.lang.String getFormName()
Returns the formName.

Specified by:
getFormName in interface Widget
Returns:
String

getLabel

public java.lang.String getLabel()
Returns the label.

Specified by:
getLabel in interface Widget
Returns:
String

getRequired

public boolean getRequired()
Returns the required.

Specified by:
getRequired in interface Widget
Returns:
boolean

getVisible

public boolean getVisible()
Returns the visible.

Specified by:
getVisible in interface Widget
Returns:
boolean

setApplicationService

public void setApplicationService(ApplicationService applicationService)
Sets the applicationService.

Specified by:
setApplicationService in interface Widget
Parameters:
applicationService - The applicationService to set

setDefinitionName

public void setDefinitionName(java.lang.String definitionName)
Sets the definitionName.

Specified by:
setDefinitionName in interface Widget
Parameters:
definitionName - The definitionName to set

setDisabled

public void setDisabled(boolean disabled)
Sets the disabled.

Specified by:
setDisabled in interface Widget
Parameters:
disabled - The disabled to set

setLabel

public void setLabel(java.lang.String label)
Sets the label.

Specified by:
setLabel in interface Widget
Parameters:
label - The label to set

setRequired

public void setRequired(boolean required)
Sets the required.

Specified by:
setRequired in interface Widget
Parameters:
required - The required to set

setVisible

public void setVisible(boolean visible)
Sets the visible.

Parameters:
visible - The visible to set

getFormFieldConversion

public FormFieldConversion getFormFieldConversion()
Returns the formFieldConversion.

Specified by:
getFormFieldConversion in interface Widget
Returns:
FormFieldConversion

setFormFieldConversion

public void setFormFieldConversion(FormFieldConversion formFieldConversion)
Sets the formFieldConversion.

Specified by:
setFormFieldConversion in interface Widget
Parameters:
formFieldConversion - The formFieldConversion to set

getDescriptor

public org.apache.ojb.broker.metadata.XmlCapable getDescriptor()
Returns the descriptor.

Specified by:
getDescriptor in interface Widget
Returns:
XmlCapable

setDescriptor

public void setDescriptor(org.apache.ojb.broker.metadata.XmlCapable descriptor)
Sets the descriptor.

Specified by:
setDescriptor in interface Widget
Parameters:
descriptor - The descriptor to set

getMode

public java.lang.String getMode()
Returns the mode.

Specified by:
getMode in interface Widget
Returns:
String

setMode

public void setMode(java.lang.String mode)
Sets the mode.

Specified by:
setMode in interface Widget
Parameters:
mode - The mode to set

getFormAttributeName

public java.lang.String getFormAttributeName()
Returns the formAttributeName.

Returns:
String

getFormMappedAttributeName

public java.lang.String getFormMappedAttributeName()
Returns the formMappedAttributeName.

Returns:
String

setFormAttributeName

public void setFormAttributeName(java.lang.String formAttributeName)
Sets the formAttributeName.

Specified by:
setFormAttributeName in interface Widget
Parameters:
formAttributeName - The formAttributeName to set

setFormMappedAttributeName

public void setFormMappedAttributeName(java.lang.String formMappedAttributeName)
Sets the formMappedAttributeName.

Specified by:
setFormMappedAttributeName in interface Widget
Parameters:
formMappedAttributeName - The formMappedAttributeName to set

handle

public org.apache.struts.action.ActionForward handle(org.apache.struts.action.ActionMapping mapping,
                                                     ObjectEditorForm form,
                                                     HttpServletRequest request,
                                                     HttpServletResponse response)
                                              throws ServiceException
Method handle @add-javadoc!!!

Specified by:
handle in interface Widget
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
response - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

getUid

public java.lang.String getUid()
Returns the uid.

Specified by:
getUid in interface Widget
Returns:
String

setUid

public void setUid(java.lang.String uid)
Sets the uid.

Specified by:
setUid in interface Widget
Parameters:
uid - The uid to set

getRequest

public HttpServletRequest getRequest()
Returns:

setRequest

public void setRequest(HttpServletRequest request)
Specified by:
setRequest in interface Widget
Parameters:
request -


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.