Accessing view columns
You can access view or folder columns through getColumns in View, which returns a ViewColumn object. You can create a column with copyColumn and createColumn. You can remove a column with removeColumn.
ViewColumn gives you access to properties through the following methods:
- getAlignment returns
an int value containing the alignment (justification) of data in the
column; setAlignment sets
the alignment.
- getDateFmt returns
an int value containing the specific format of date data in the column; setDateFmt sets the format.
- getFontColor returns
an int value containing the font color of data in the column; setFontColor sets the
color.
- getFontFace returns
an int value containing the font face of data in the column; setFontFace sets the font
face.
- getFontPointSize returns
an int value containing the font point size of data in the column; setFontPointSize sets
the point size.
- getFontStyle returns
an int value containing the font style of data in the column; setFontStyle sets the
style.
- getFormula returns
a String value containing the column formula or null if the column
is the value of a field; setFormula sets
the formula.
- getHeaderAlignment returns
an int value containing the alignment (justification) of the header
in the column; setHeaderAlignment sets
the alignment.
- getHeaderFontColor returns
an int value containing the font color of data in the column; setHeaderFontColor sets
the color.
- getHeaderFontFace returns
an int value containing the font face of data in the column; setHeaderFontFace sets
the font face.
- getHeaderFontPointSize returns
an int value containing the font point size of data in the column; setHeaderFontPointSize sets
the point size.
- getHeaderFontStyle returns
an int value containing the font style of data in the column; setHeaderFontStyle sets
the style.
- isAccentSensitiveSort returns
true if the column is sorted without regard to accent; setAccentSensitiveSort sets
how accent is treated.
- isCaseSensitiveSort returns
true if the column is sorted without regard to case; setCaseSensitiveSort sets
how case is treated.
- isCategory returns true if the column is categorized.
- isField if the column value is based on a field value.
- isFontBold returns
true if the font style for a column includes bold; setFontBold sets
the font bold.
- isFontItalic returns
true if the font style for a column includes italic; setFontItalic sets
the font italic.
- isFontStrikethrough returns
true if the font style for a column includes strikethrough; setFontStrikethrough sets
the font strikethrough.
- isFontUnderline returns
true if the font style for a column includes underline; setFontUnderline sets
the font underline.
- isFormula returns true if the column value is based on a formula.
- isHeaderFontBold returns
true if the header font style for a column includes bold; setHeaderFontBold sets
the header font bold.
- isHeaderFontItalic returns
true if the header font style for a column includes italic; setHeaderFontItalic sets
the header font italic.
- isHeaderFontStrikethrough returns
true if the header font style for a column includes strikethrough; setHeaderFontStrikethrough sets
the header font strikethrough.
- isHeaderFontUnderline returns
true if the header font style for a column includes underline; setHeaderFontUnderline sets
the header font underline.
- isHidden returns
true if the column is hidden; setHidden sets
whether the column is hidden.
- isHideDetail returns
true if the details for a total column are hidden; setHideDetail sets
whether total column details are hidden.
- isIcon returns true if the column value is displayed as an icon.
- isNumberAttribParens returns
true if the number attributes for a column include parentheses for
negative numbers; setNumberAttribParens sets
parentheses.
- isNumberAttribPercent returns
true if the number attributes for a column include displaying the
number as a percentage setNumberAttribPercent sets
percent.
- isNumberAttribPunctuated returns
true if the number attributes for a column include punctuation setNumberAttribPunctuated sets
punctuation.
- isResize returns
true if the column is resizable; setResize sets whether
the column is resizable.
- isResortAscending returns
true if the column can be resorted in ascending order; setResortAscending sets
whether the column can be resorted ascending.
- isResortDescending returns
true if the column can be resorted in descending order; setResortDescending sets
whether the column can be resorted descending.
- isResortToView returns
true if the column can be resorted to another view; setResortToView sets
whether the column can be resorted to another view.
- isResponse returns true if the column contains only response documents.
- isSecondaryResort returns
true if the column is a secondary resortable column; setSecondaryResort sets
whether the column is secondary resortable.
- isSecondaryResortDescending returns
true if the secondary resort is descending; setSecondaryResortDescending sets
whether the secondary resort is descending.
- isShowTwistie returns
true if the expandable column displays a twistie; setShowTwistie sets
whether a twistie is shown.
- isSortDescending returns
true if the sorted column is descending; setSortDescending sets
whether a sorted column is descending.
- isSorted returns
true if the column is sorted; setSorted sets
whether the column is sorted.
- getItemName returns a String value containing the name of the item whose value is in the column or null if the column is a formula.
- getListSep returns
an int value containing the list (multi-value) separator for values
in the column; setListSep sets
the separator.
- getNumberAttrib returns
an int value containing the attributes for numeric values in the column; setNumberAttrib sets
the attributes.
- getNumberDigits returns
an int value containing the number of decimal places for numeric values
in the column; setNumberDigits sets
the number of places.
- getNumberFormat returns
an int value containing the format for numeric values in the column; setNumberFormat sets
the format.
- getParent returns a View object representing the view that contains the column.
- getPosition returns an int value containing the position of the column in the view.
- getResortToViewName returns
a String value containing the name of the target view for a user-sorted
column that allows the user to change to another view; setResortToViewName sets
the name.
- getSecondaryResortColumnIndex returns
an int value containing the index of the secondary sorting column
of a user-sorted column that allows a secondary sorting column; setSecondaryResortColumnIndex sets
the index.
- getTimeDateFmt returns
an int value containing the format of time-date data in the column; setTimeDateFmt sets
the format.
- getTimeFmt returns
an int value containing the format of time data in a column ; setTimeFmt sets the
format.
- getTimeZoneFmt returns
an int value containing the format of the zone in time-date data in
a column ; setTimeZoneFmt sets
the format.
- getTitle returns
a String value containing the title of the item or null if the column
has no title; setTitle sets
the title.
- getWidth returns
an int value containing the width of the column; setWidth sets the
width.