Class SortComponent
- java.lang.Object
-
- net.sf.jasperreports.components.sort.SortComponent
-
- All Implemented Interfaces:
Serializable
,Component
,ContextAwareComponent
,JRChangeEventsSupport
,JREvaluation
public class SortComponent extends Object implements ContextAwareComponent, JREvaluation, Serializable, JRChangeEventsSupport
- Author:
- Narcis Marcu (narcism@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_COLUMN_NAME
static String
PROPERTY_COLUMN_TYPE
static String
PROPERTY_EVALUATION_GROUP
static String
PROPERTY_EVALUATION_TIME
static String
PROPERTY_HANDLER_COLOR
static String
PROPERTY_HANDLER_HORIZONTAL_ALIGN
static String
PROPERTY_HANDLER_VERTICAL_ALIGN
static String
PROPERTY_SYMBOL_FONT
-
Constructor Summary
Constructors Constructor Description SortComponent()
SortComponent(SortComponent component, JRBaseObjectFactory objectFactory)
-
Method Summary
-
-
-
Field Detail
-
PROPERTY_EVALUATION_TIME
public static final String PROPERTY_EVALUATION_TIME
- See Also:
- Constant Field Values
-
PROPERTY_EVALUATION_GROUP
public static final String PROPERTY_EVALUATION_GROUP
- See Also:
- Constant Field Values
-
PROPERTY_COLUMN_NAME
public static final String PROPERTY_COLUMN_NAME
- See Also:
- Constant Field Values
-
PROPERTY_COLUMN_TYPE
public static final String PROPERTY_COLUMN_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_HANDLER_COLOR
public static final String PROPERTY_HANDLER_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_HANDLER_VERTICAL_ALIGN
public static final String PROPERTY_HANDLER_VERTICAL_ALIGN
- See Also:
- Constant Field Values
-
PROPERTY_HANDLER_HORIZONTAL_ALIGN
public static final String PROPERTY_HANDLER_HORIZONTAL_ALIGN
- See Also:
- Constant Field Values
-
PROPERTY_SYMBOL_FONT
public static final String PROPERTY_SYMBOL_FONT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SortComponent
public SortComponent()
-
SortComponent
public SortComponent(SortComponent component, JRBaseObjectFactory objectFactory)
-
-
Method Detail
-
setContext
public void setContext(ComponentContext context)
- Specified by:
setContext
in interfaceContextAwareComponent
-
getContext
public ComponentContext getContext()
- Specified by:
getContext
in interfaceContextAwareComponent
-
getEvaluationTime
public EvaluationTimeEnum getEvaluationTime()
Description copied from interface:JREvaluation
Gets the evaluation time for this text field.- Specified by:
getEvaluationTime
in interfaceJREvaluation
- Returns:
- one of the evaluation time constants in
JRExpression
-
setEvaluationTime
public void setEvaluationTime(EvaluationTimeEnum evaluationTime)
- Parameters:
evaluationTime
- the evaluationTime to set
-
getEvaluationGroup
public String getEvaluationGroup()
Description copied from interface:JREvaluation
Gets the evaluation group for this text field. Used only when evaluation time is group.- Specified by:
getEvaluationGroup
in interfaceJREvaluation
- See Also:
EvaluationTimeEnum.GROUP
-
setEvaluationGroup
public void setEvaluationGroup(String evaluationGroup)
-
getSortFieldName
public String getSortFieldName()
- Returns:
- the columnName
-
setSortFieldName
public void setSortFieldName(String sortFieldName)
- Parameters:
sortFieldName
- the sort field name to set
-
getSortFieldType
public SortFieldTypeEnum getSortFieldType()
- Returns:
- the columnType
-
setSortFieldType
public void setSortFieldType(SortFieldTypeEnum sortFieldType)
- Parameters:
sortFieldType
- the sort field type to set
-
getHandlerColor
public Color getHandlerColor()
- Returns:
- the handlerColor
-
setHandlerColor
public void setHandlerColor(Color handlerColor)
- Parameters:
handlerColor
- the handlerColor to set
-
getHandlerVerticalImageAlign
public VerticalImageAlignEnum getHandlerVerticalImageAlign()
- Returns:
- the handlerVerticalImageAlign
-
setHandlerVerticalImageAlign
public void setHandlerVerticalImageAlign(VerticalImageAlignEnum handlerVerticalImageAlign)
- Parameters:
handlerVerticalImageAlign
- the handlerVerticalImageAlign to set
-
getHandlerHorizontalImageAlign
public HorizontalImageAlignEnum getHandlerHorizontalImageAlign()
- Returns:
- the handlerHorizontalImageAlign
-
setHandlerHorizontalImageAlign
public void setHandlerHorizontalImageAlign(HorizontalImageAlignEnum handlerHorizontalImageAlign)
- Parameters:
handlerHorizontalImageAlign
- the handlerHorizontalImageAlign to set
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
getSymbolFont
public JRFont getSymbolFont()
-
setSymbolFont
public void setSymbolFont(JRFont symbolFont)
-
-