You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2015/04/23 17:40:04 UTC
svn commit: r1675647 -
/myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
Author: lofwyr
Date: Thu Apr 23 15:40:03 2015
New Revision: 1675647
URL: http://svn.apache.org/r1675647
Log:
cleanup
Modified:
myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java?rev=1675647&r1=1675646&r2=1675647&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java Thu Apr 23 15:40:03 2015
@@ -75,17 +75,7 @@ public abstract class AbstractUISheet ex
public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.Data";
- /**
- * @see org.apache.myfaces.tobago.component.Facets
- * @deprecated Please use Facets instead. Will be removed after Tobago 1.5.0 */
- @Deprecated
- public static final String FACET_SORTER = "sorter";
public static final String SORTER_ID = "sorter";
- /**
- * @see org.apache.myfaces.tobago.component.Attributes
- * @deprecated Please use Attributes instead. Will be removed after Tobago 1.5.0 */
- @Deprecated
- public static final String ATTR_SCROLL_POSITION = "attrScrollPosition";
public static final String NONE = "none";
public static final String SINGLE = "single";
@@ -299,19 +289,6 @@ public abstract class AbstractUISheet ex
}
/**
- * @deprecated The name of this method is ambiguous.
- * You may use {@link #getFirstRowIndexOfLastPage()}. Deprecated since 1.5.5.
- */
- @Deprecated
- public int getLastPageIndex() {
- if (hasRowCount()) {
- return getFirstRowIndexOfLastPage();
- } else {
- return 0;
- }
- }
-
- /**
* Determines the beginning of the last page in the model.
* If the number of rows to display on one page is unlimited, the value is 0 (there is only one page).
* @return The index of the first row of the last paging page.
@@ -341,10 +318,6 @@ public abstract class AbstractUISheet ex
private void updateSheetState(final FacesContext facesContext) {
final SheetState state = getSheetState(facesContext);
if (state != null) {
- // ensure sortActionListener
-// getSortActionListener();
-// state.setSortedColumn(sortActionListener != null ? sortActionListener.getColumn() : -1);
-// state.setAscending(sortActionListener != null && sortActionListener.isAscending());
final Map attributes = getAttributes();
//noinspection unchecked
final List<Integer> list = (List<Integer>) attributes.get(Attributes.SELECTED_LIST_STRING);
@@ -398,14 +371,6 @@ public abstract class AbstractUISheet ex
}
}
-/* public MethodBinding getSortActionListener() {
- if (sortActionListener != null) {
- return sortActionListener;
- } else {
- return new Sorter();
- }
- }*/
-
@Override
public void queueEvent(final FacesEvent facesEvent) {
final UIComponent parent = getParent();
@@ -592,7 +557,6 @@ public abstract class AbstractUISheet ex
}
getState().setFirst(first);
-// sheet.queueEvent(new SheetStateChangeEvent(sheet));
}
public List<LayoutComponent> getComponents() {