org.books.view
Class StatusConverter
java.lang.Object
org.books.common.BaseBean
org.books.view.StatusConverter
- All Implemented Interfaces:
- java.io.Serializable, javax.faces.convert.Converter
public class StatusConverter
- extends BaseBean
- implements javax.faces.convert.Converter
CAS Enterprise Application Development mit Java EE (EADJ) - 2007
Modul: Web-Tier (JSF)
Uebung: 11 (Ordering)
Beschreibung:
Diese Klasse konvertiert den Order.Status fuer die Ausgabe.
Copyright (c) 2007 bouquet dot ch, 3032 Hinterkappelen. All rights reseved.
- Version:
- 1.0 - 08.05.2007
- Author:
- Marc Bouquet ( marc at bouquet dot ch, Switzerland )
- See Also:
@link{org.books.common.BaseBean}
,
@link{javax.faces.convert.Converter}
,
Serialized Form
Method Summary |
java.lang.Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String value)
Convert string value into a object |
java.lang.String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object obj)
Convert object into a string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatusConverter
public StatusConverter()
getAsObject
public java.lang.Object getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String value)
throws javax.faces.convert.ConverterException
- Convert string value into a object
- Specified by:
getAsObject
in interface javax.faces.convert.Converter
- Parameters:
context
- FacesContext FacesContext
the faces contextcomponent
- UIComponent UIComponent
the componentvalue
- String the value to be converted
- Throws:
javax.faces.convert.ConverterException
getAsString
public java.lang.String getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object obj)
throws javax.faces.convert.ConverterException
- Convert object into a string
- Specified by:
getAsString
in interface javax.faces.convert.Converter
- Parameters:
context
- FacesContext FacesContext
the faces contextcomponent
- UIComponent UIComponent
the componentobj
- Object the value to be converted
- Throws:
javax.faces.convert.ConverterException
Copyright © 2007 - bouquet dot ch, 3032 Hinterkappelen. All Rights Reserved.