#include <FGrpRectangle.h>
#include <FGrpColor.h>
#include <FUiContainer.h>
+#include <FUiCtrlControlsTypes.h>
#include <FUiCtrlTableViewTypes.h>
#include <FUiCtrlScrollPanelTypes.h>
*/
bool IsContextItemOpened(int sectionIndex, int itemIndex) const;
+ /**
+ * Sets the Horizontal alignment of the text of the %SectionTableView header.
+ *
+ * @since 2.1
+ *
+ * @return An error code
+ * @param[in] sectionIndex The index of the section
+ * @param[in] alignment The horizontal alignment of the section header text
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_OUT_OF_RANGE The specified input parameter is invalid.
+ * @exception E_INVALID_OPERATION There is no header in the section.
+ * @remarks By default, the text of the section header is left aligned.
+ * @see GetSectionHeaderTextHorizontalAlignment()
+ */
+ result SetSectionHeaderTextHorizontalAlignment(int sectionIndex, HorizontalAlignment alignment);
+
+ /**
+ * Gets the Horizontal alignment of the text of the %SectionTableView header.
+ *
+ * @since 2.1
+ *
+ * @return The horizontal alignment of the text
+ * @param[in] sectionIndex The index of the section
+ * @exception E_SUCCESS The method is successful
+ * @exception E_OUT_OF_RANGE The specified input parameter is invalid.
+ * @exception E_INVALID_OPERATION There is no header in the section.
+ * @remarks The specific error code can be accessed using the GetLastResult() method.
+ * @see SetSectionHeaderTextHorizontalAlignment()
+ */
+ HorizontalAlignment GetSectionHeaderTextHorizontalAlignment(int sectionIndex);
+
+ /**
+ * Sets the Horizontal alignment of the text of the %SectionTableView footer.
+ *
+ * @since 2.1
+ *
+ * @return An error code
+ * @param[in] sectionIndex The index of the section
+ * @param[in] alignment The horizontal alignment of the section footer text
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_OUT_OF_RANGE The specified input parameter is invalid.
+ * @exception E_INVALID_OPERATION There is no footer in the section.
+ * @remarks By default, the text of the section footer is right aligned.
+ * @see GetSectionFooterTextHorizontalAlignment()
+ */
+ result SetSectionFooterTextHorizontalAlignment(int sectionIndex, HorizontalAlignment alignment);
+
+ /**
+ * Gets the Horizontal alignment of the text of the %SectionTableView footer.
+ *
+ * @since 2.1
+ *
+ * @return The horizontal alignment of the text
+ * @param[in] sectionIndex The index of the section
+ * @exception E_SUCCESS The method is successful
+ * @exception E_OUT_OF_RANGE The specified input parameter is invalid.
+ * @exception E_INVALID_OPERATION There is no footer in the section.
+ * @remarks The specific error code can be accessed using the GetLastResult() method.
+ * @see SetSectionFooterTextHorizontalAlignment()
+ */
+ HorizontalAlignment GetSectionFooterTextHorizontalAlignment(int sectionIndex);
+
private:
friend class _TableViewImpl;
return pImpl->IsContextItemOpened(sectionIndex, itemIndex);
}
+result
+SectionTableView::SetSectionHeaderTextHorizontalAlignment(int sectionIndex, HorizontalAlignment alignment)
+{
+ const _TableViewImpl* pImpl = _TableViewImpl::GetInstance(*this);
+ SysAssertf(pImpl != null, "Not-yet constructed! Construct() should be called before use.");
+
+ return E_SUCCESS;
+}
+
+HorizontalAlignment
+SectionTableView::GetSectionHeaderTextHorizontalAlignment(int sectionIndex)
+{
+ const _TableViewImpl* pImpl = _TableViewImpl::GetInstance(*this);
+ SysAssertf(pImpl != null, "Not-yet constructed! Construct() should be called before use.");
+
+ return ALIGNMENT_LEFT;
+}
+
+result
+SectionTableView::SetSectionFooterTextHorizontalAlignment(int sectionIndex, HorizontalAlignment alignment)
+{
+ const _TableViewImpl* pImpl = _TableViewImpl::GetInstance(*this);
+ SysAssertf(pImpl != null, "Not-yet constructed! Construct() should be called before use.");
+
+ return E_SUCCESS;
+}
+
+HorizontalAlignment
+SectionTableView::GetSectionFooterTextHorizontalAlignment(int sectionIndex)
+{
+ const _TableViewImpl* pImpl = _TableViewImpl::GetInstance(*this);
+ SysAssertf(pImpl != null, "Not-yet constructed! Construct() should be called before use.");
+
+ return ALIGNMENT_LEFT;
+}
}}} //Tizen::Ui::Controls