|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.pivot.table.context.SingleColumnContext
com.citra.pivot.table.context.DateColumnContext
com.citra.pivot.table.context.QuarterContext
public class QuarterContext
QuarterContext extracts quarters from Date
values.
The format used is set as: "'Q'{qtr}-yy".
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.citra.pivot.table.context.DateColumnContext |
---|
DateColumnContext.DateContext |
Field Summary | |
---|---|
protected boolean |
showYear
indicates whether year should be |
Fields inherited from class com.citra.pivot.table.context.DateColumnContext |
---|
calendar, format |
Fields inherited from class com.citra.pivot.table.context.SingleColumnContext |
---|
captionColumn, columnsByLocale, comparator, extractColumn, nameColumn |
Constructor Summary | |
---|---|
QuarterContext(int column)
Constructs a QuarterContext. |
|
QuarterContext(int column,
boolean showYear)
Constructs a QuarterContext. |
Method Summary | |
---|---|
void |
applyFormat(DateColumnContext.DateContext di,
List row,
Locale locale)
Changes the simple date format's pattern, if necessary. |
Object |
extractMemberValue(List row)
Extracts a member value from a row that corresponds to the underlying table model. |
boolean |
getShowYear()
Determines whether the year will be shown along with the quarter. |
void |
setShowYear(boolean showYear)
Determines whether the year will be shown along with the quarter. |
Methods inherited from class com.citra.pivot.table.context.DateColumnContext |
---|
compareMemberValues, getCaption, getDateFormat, getDescription, getName, hasField, setField |
Methods inherited from class com.citra.pivot.table.context.SingleColumnContext |
---|
getColumnForLocale, setColumnForLocale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean showYear
Constructor Detail |
---|
public QuarterContext(int column)
public QuarterContext(int column, boolean showYear)
Method Detail |
---|
public void applyFormat(DateColumnContext.DateContext di, List row, Locale locale)
format.applyPattern(pattern);
, when finished.
applyFormat
in class DateColumnContext
di
- the date info object which is formattedrow
- the row to the table modellocale
- the locale in which the format is appliedpublic Object extractMemberValue(List row)
extractMemberValue
in interface TableContext
extractMemberValue
in class DateColumnContext
row
- the row to the table model
public boolean getShowYear()
public void setShowYear(boolean showYear)
showYear
- true if year will be displayed, false otherwise
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |