📄 tableproperties.java
字号:
} /** * The locale for which these properties are intended. * @return the locale */ public Locale getLocale() { return locale; } /** * Getter for the <code>PROPERTY_STRING_PAGING_INVALIDPAGE</code> property. * @return String */ public String getPagingInvalidPage() { return getProperty(PROPERTY_STRING_PAGING_INVALIDPAGE); } /** * Getter for the <code>PROPERTY_STRING_PAGING_ITEM_NAME</code> property. * @return String */ public String getPagingItemName() { return getProperty(PROPERTY_STRING_PAGING_ITEM_NAME); } /** * Getter for the <code>PROPERTY_STRING_PAGING_ITEMS_NAME</code> property. * @return String */ public String getPagingItemsName() { return getProperty(PROPERTY_STRING_PAGING_ITEMS_NAME); } /** * Getter for the <code>PROPERTY_STRING_PAGING_NOITEMS</code> property. * @return String */ public String getPagingFoundNoItems() { return getProperty(PROPERTY_STRING_PAGING_NOITEMS); } /** * Getter for the <code>PROPERTY_STRING_PAGING_FOUND_ONEITEM</code> property. * @return String */ public String getPagingFoundOneItem() { return getProperty(PROPERTY_STRING_PAGING_FOUND_ONEITEM); } /** * Getter for the <code>PROPERTY_STRING_PAGING_FOUND_ALLITEMS</code> property. * @return String */ public String getPagingFoundAllItems() { return getProperty(PROPERTY_STRING_PAGING_FOUND_ALLITEMS); } /** * Getter for the <code>PROPERTY_STRING_PAGING_FOUND_SOMEITEMS</code> property. * @return String */ public String getPagingFoundSomeItems() { return getProperty(PROPERTY_STRING_PAGING_FOUND_SOMEITEMS); } /** * Getter for the <code>PROPERTY_INT_PAGING_GROUPSIZE</code> property. * @return int */ public int getPagingGroupSize() { // default size is 8 return getIntProperty(PROPERTY_INT_PAGING_GROUPSIZE, 8); } /** * Getter for the <code>PROPERTY_STRING_PAGING_BANNER_ONEPAGE</code> property. * @return String */ public String getPagingBannerOnePage() { return getProperty(PROPERTY_STRING_PAGING_BANNER_ONEPAGE); } /** * Getter for the <code>PROPERTY_STRING_PAGING_BANNER_FIRST</code> property. * @return String */ public String getPagingBannerFirst() { return getProperty(PROPERTY_STRING_PAGING_BANNER_FIRST); } /** * Getter for the <code>PROPERTY_STRING_PAGING_BANNER_LAST</code> property. * @return String */ public String getPagingBannerLast() { return getProperty(PROPERTY_STRING_PAGING_BANNER_LAST); } /** * Getter for the <code>PROPERTY_STRING_PAGING_BANNER_FULL</code> property. * @return String */ public String getPagingBannerFull() { return getProperty(PROPERTY_STRING_PAGING_BANNER_FULL); } /** * Getter for the <code>PROPERTY_STRING_PAGING_PAGE_LINK</code> property. * @return String */ public String getPagingPageLink() { return getProperty(PROPERTY_STRING_PAGING_PAGE_LINK); } /** * Getter for the <code>PROPERTY_STRING_PAGING_PAGE_SELECTED</code> property. * @return String */ public String getPagingPageSelected() { return getProperty(PROPERTY_STRING_PAGING_PAGE_SELECTED); } /** * Getter for the <code>PROPERTY_STRING_PAGING_PAGE_SPARATOR</code> property. * @return String */ public String getPagingPageSeparator() { return getProperty(PROPERTY_STRING_PAGING_PAGE_SPARATOR); } /** * Is the given export option enabled? * @param exportType instance of MediaTypeEnum * @return boolean true if export is enabled */ public boolean getAddExport(MediaTypeEnum exportType) { return getBooleanProperty(PROPERTY_EXPORT_PREFIX + SEP + exportType.getName()); } /** * Should headers be included in given export type? * @param exportType instance of MediaTypeEnum * @return boolean true if export should include headers */ public boolean getExportHeader(MediaTypeEnum exportType) { return getBooleanProperty(PROPERTY_EXPORT_PREFIX + SEP + exportType.getName() + SEP + EXPORTPROPERTY_BOOLEAN_EXPORTHEADER); } /** * Returns the label for the given export option. * @param exportType instance of MediaTypeEnum * @return String label */ public String getExportLabel(MediaTypeEnum exportType) { return getProperty(PROPERTY_EXPORT_PREFIX + SEP + exportType.getName() + SEP + EXPORTPROPERTY_STRING_LABEL); } /** * Returns the file name for the given media. Can be null * @param exportType instance of MediaTypeEnum * @return String filename */ public String getExportFileName(MediaTypeEnum exportType) { return getProperty(PROPERTY_EXPORT_PREFIX + SEP + exportType.getName() + SEP + EXPORTPROPERTY_STRING_FILENAME); } /** * Getter for the <code>PROPERTY_BOOLEAN_EXPORTDECORATED</code> property. * @return boolean <code>true</code> if decorators should be used in exporting */ public boolean getExportDecorated() { return getBooleanProperty(PROPERTY_BOOLEAN_EXPORTDECORATED); } /** * Getter for the <code>PROPERTY_STRING_EXPORTBANNER</code> property. * @return String */ public String getExportBanner() { return getProperty(PROPERTY_STRING_EXPORTBANNER); } /** * Getter for the <code>PROPERTY_STRING_EXPORTBANNER_SEPARATOR</code> property. * @return String */ public String getExportBannerSeparator() { return getProperty(PROPERTY_STRING_EXPORTBANNER_SEPARATOR); } /** * Getter for the <code>PROPERTY_BOOLEAN_SHOWHEADER</code> property. * @return boolean */ public boolean getShowHeader() { return getBooleanProperty(PROPERTY_BOOLEAN_SHOWHEADER); } /** * Getter for the <code>PROPERTY_STRING_EMPTYLIST_MESSAGE</code> property. * @return String */ public String getEmptyListMessage() { return getProperty(PROPERTY_STRING_EMPTYLIST_MESSAGE); } /** * Getter for the <code>PROPERTY_STRING_EMPTYLISTROW_MESSAGE</code> property. * @return String */ public String getEmptyListRowMessage() { return getProperty(PROPERTY_STRING_EMPTYLISTROW_MESSAGE); } /** * Getter for the <code>PROPERTY_BOOLEAN_EMPTYLIST_SHOWTABLE</code> property. * @return boolean <code>true</code> if table should be displayed also if no items are found */ public boolean getEmptyListShowTable() { return getBooleanProperty(PROPERTY_BOOLEAN_EMPTYLIST_SHOWTABLE); } /** * Getter for the <code>PROPERTY_STRING_EXPORTAMOUNT</code> property. * @return boolean <code>true</code> if <code>export.amount</code> is <code>list</code> */ public boolean getExportFullList() { return "list".equals(getProperty(PROPERTY_STRING_EXPORTAMOUNT)); //$NON-NLS-1$ } /** * Getter for the <code>PROPERTY_STRING_SORTAMOUNT</code> property. * @return boolean <code>true</code> if <code>sort.amount</code> is <code>list</code> */ public boolean getSortFullList() { return "list".equals(getProperty(PROPERTY_STRING_SORTAMOUNT)); //$NON-NLS-1$ } /** * Should paging banner be added before the table? * @return boolean */ public boolean getAddPagingBannerTop() { String placement = getProperty(PROPERTY_STRING_BANNER_PLACEMENT); return "top".equals(placement) || "both".equals(placement); //$NON-NLS-1$ //$NON-NLS-2$ } /** * Should paging banner be added after the table? * @return boolean */ public boolean getAddPagingBannerBottom() { String placement = getProperty(PROPERTY_STRING_BANNER_PLACEMENT); return "bottom".equals(placement) || "both".equals(placement); //$NON-NLS-1$ //$NON-NLS-2$ } /** * Returns the appropriate css class for a table row. * @param rowNumber row number * @return the value of <code>PROPERTY_CSS_TR_EVEN</code> if rowNumber is even or <code>PROPERTY_CSS_TR_ODD</code> * if rowNumber is odd. */ public String getCssRow(int rowNumber) { return getProperty((rowNumber % 2 == 0) ? PROPERTY_CSS_TR_ODD : PROPERTY_CSS_TR_EVEN); } /** * Returns the appropriate css class for a sorted column header. * @param ascending <code>true</code> if column is sorded in ascending order. * @return the value of <code>PROPERTY_CSS_TH_SORTED_ASCENDING</code> if column is sorded in ascending order or * <code>PROPERTY_CSS_TH_SORTED_DESCENDING</code> if column is sorded in descending order. */ public String getCssOrder(boolean ascending) { return getProperty(ascending ? PROPERTY_CSS_TH_SORTED_ASCENDING : PROPERTY_CSS_TH_SORTED_DESCENDING); } /** * Returns the configured css class for a sorted column header. * @return the value of <code>PROPERTY_CSS_TH_SORTED</code> */ public String getCssSorted() { return getProperty(PROPERTY_CSS_TH_SORTED); } /** * Returns the configured css class for the main table tag. * @return the value of <code>PROPERTY_CSS_TABLE</code> */ public String getCssTable() { return getProperty(PROPERTY_CSS_TABLE); } /** * Returns the configured css class for a sortable column header. * @return the value of <code>PROPERTY_CSS_TH_SORTABLE</code> */ public String getCssSortable() { return getProperty(PROPERTY_CSS_TH_SORTABLE); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -